xoreos  0.0.5
checkbox.h
Go to the documentation of this file.
1 /* xoreos - A reimplementation of BioWare's Aurora engine
2  *
3  * xoreos is the legal property of its developers, whose names
4  * can be found in the AUTHORS file distributed with this source
5  * distribution.
6  *
7  * xoreos is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 3
10  * of the License, or (at your option) any later version.
11  *
12  * xoreos is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with xoreos. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
25 #ifndef ENGINES_AURORA_KOTORJADEGUI_CHECKBOX_H
26 #define ENGINES_AURORA_KOTORJADEGUI_CHECKBOX_H
27 
28 #include "src/sound/types.h"
29 
31 
32 namespace Engines {
33 
35 public:
36  WidgetCheckBox(GUI &gui, const Common::UString &tag);
38 
39  void load(const Aurora::GFF3Struct &gff);
40 
41  void setState(bool state);
42  bool getState() const;
43 
44  void enter();
45  void leave();
46 
47  void mouseUp(uint8 state, float x, float y);
48 
49  void setSelected(const Common::UString &selected);
50  void setUnselected(const Common::UString &unselected);
51  void setSelectedHighlighted(const Common::UString &selectedHighlighted);
52  void setUnselectedHighlighted(const Common::UString &unselectedHighlighted);
53 
54 private:
57  bool _state;
58 
61 
64 };
65 
66 } // End of namespace Engines
67 
68 #endif // ENGINES_AURORA_KOTORJADEGUI_CHECKBOX_H
void setQuadHighlighting(Graphics::Aurora::Highlightable *highlightable)
Definition: checkbox.cpp:198
void setSelected(const Common::UString &selected)
Definition: checkbox.cpp:175
Common::UString _unselectedHighlighted
Definition: checkbox.h:56
A class holding an UTF-8 string.
Definition: ustring.h:48
uint8_t uint8
Definition: types.h:200
Common::UString _selectedHighlighted
Definition: checkbox.h:56
Basic sound types.
void setUnselectedHighlighted(const Common::UString &unselectedHighlighted)
Definition: checkbox.cpp:187
A GUI.
Definition: gui.h:43
Common::UString _selected
Definition: checkbox.h:55
WidgetCheckBox(GUI &gui, const Common::UString &tag)
Definition: checkbox.cpp:45
void setState(bool state)
Definition: checkbox.cpp:99
void setUnselected(const Common::UString &unselected)
Definition: checkbox.cpp:179
void mouseUp(uint8 state, float x, float y)
A mouse button was released on the widget.
Definition: checkbox.cpp:166
Common base for Star Wars: Knights of the Old Republic and Jade Empire widgets.
void leave()
The mouse left the widget.
Definition: checkbox.cpp:150
void load(const Aurora::GFF3Struct &gff)
Definition: checkbox.cpp:57
Common::UString _unselected
Definition: checkbox.h:55
A struct within a GFF3.
Definition: gff3file.h:164
void enter()
The mouse entered the widget.
Definition: checkbox.cpp:128
A handle to a sound channel.
Definition: types.h:35
void setSelectedHighlighted(const Common::UString &selectedHighlighted)
Definition: checkbox.cpp:183
void setTextHighlighting(Graphics::Aurora::Highlightable *highlightable)
Definition: checkbox.cpp:191
bool getState() const
Definition: checkbox.cpp:124
Sound::ChannelHandle _sound
Definition: checkbox.h:59