Debian Codegraph @

utils/fgpanel/FGPanelInstrument.cxx

raw symbols SCIP
1 // SPDX-FileCopyrightText: 2000 David Megginson
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #include "FGPanelInstrument.hxx"
5
6 FGPanelInstrument::FGPanelInstrument () {
7 setPosition (0, 0);
8 setSize (0, 0);
9 }
10
11 FGPanelInstrument::FGPanelInstrument (const int x, const int y, const int w, const int h) {
12 setPosition (x, y);
13 setSize (w, h);
14 }
15
16 FGPanelInstrument::~FGPanelInstrument () {
17 }
18
19 void
20 FGPanelInstrument::setPosition (const int x, const int y) {
21 m_x = x;
22 m_y = y;
23 }
24
25 void
26 FGPanelInstrument::setSize (const int w, const int h) {
27 m_w = w;
28 m_h = h;
29 }
30
31 int
32 FGPanelInstrument::getXPos () const {
33 return m_x;
34 }
35
36 int
37 FGPanelInstrument::getYPos () const {
38 return m_y;
39 }
40
41 int
42 FGPanelInstrument::getWidth () const {
43 return m_w;
44 }
45
46 int
47 FGPanelInstrument::getHeight () const {
48 return m_h;
49 }