xoreos  0.0.5
label.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_LABEL_H
26 #define ENGINES_AURORA_KOTORJADEGUI_LABEL_H
27 
29 
30 namespace Engines {
31 
32 class WidgetLabel : public KotORJadeWidget {
33 public:
34  WidgetLabel(GUI &gui, const Common::UString &tag);
35  ~WidgetLabel();
36 
37  void load(const Aurora::GFF3Struct &gff);
38 
39  bool isHovered() const;
40 
41  void enter();
42  void leave();
43 
44  void mouseUp(uint8 state, float x, float y);
45 private:
46  bool _hovered;
47 };
48 
49 } // End of namespace Engines
50 
51 #endif // ENGINES_AURORA_KOTORJADEGUI_LABEL_H
void enter()
The mouse entered the widget.
Definition: label.cpp:49
bool isHovered() const
Definition: label.cpp:45
A class holding an UTF-8 string.
Definition: ustring.h:48
void load(const Aurora::GFF3Struct &gff)
Definition: label.cpp:41
uint8_t uint8
Definition: types.h:200
A GUI.
Definition: gui.h:43
void mouseUp(uint8 state, float x, float y)
A mouse button was released on the widget.
Definition: label.cpp:57
Common base for Star Wars: Knights of the Old Republic and Jade Empire widgets.
WidgetLabel(GUI &gui, const Common::UString &tag)
Definition: label.cpp:33
A struct within a GFF3.
Definition: gff3file.h:164
void leave()
The mouse left the widget.
Definition: label.cpp:53