Debian Codegraph @

utils/fgpanel/FGPanelInstrument.hxx

raw symbols SCIP
1 // SPDX-FileCopyrightText: 2000 David Megginson
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <simgear/props/condition.hxx>
7
8
9 /**
10 * Abstract base class for a panel instrument.
11 *
12 * A panel instrument consists of zero or more actions, associated
13 * with mouse clicks in rectangular areas. Currently, the only
14 * concrete class derived from this is FGLayeredInstrument, but others
15 * may show up in the future (some complex instruments could be
16 * entirely hand-coded, for example).
17 */
18 class FGPanelInstrument : public SGConditional {
19 public:
20 FGPanelInstrument ();
21 FGPanelInstrument (const int x, const int y, const int w, const int h);
22 virtual ~FGPanelInstrument ();
23
24 virtual void draw () = 0;
25
26 virtual void setPosition (const int x, const int y);
27 virtual void setSize (const int w, const int h);
28
29 virtual int getXPos () const;
30 virtual int getYPos () const;
31 virtual int getWidth () const;
32 virtual int getHeight () const;
33
34 private:
35 int m_x, m_y, m_w, m_h;
36 };