xoreos
0.0.5
src
engines
aurora
kotorjadegui
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
30
#include "
src/engines/aurora/kotorjadegui/kotorjadewidget.h
"
31
32
namespace
Engines
{
33
34
class
WidgetCheckBox
:
public
KotORJadeWidget
{
35
public
:
36
WidgetCheckBox
(
GUI
&gui,
const
Common::UString
&tag);
37
~WidgetCheckBox
();
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
:
55
Common::UString
_selected
,
_unselected
;
56
Common::UString
_selectedHighlighted
,
_unselectedHighlighted
;
57
bool
_state
;
58
59
Sound::ChannelHandle
_sound
;
60
float
_unselectedR
,
_unselectedG
,
_unselectedB
,
_unselectedA
;
61
62
void
setTextHighlighting
(
Graphics::Aurora::Highlightable
*highlightable);
63
void
setQuadHighlighting
(
Graphics::Aurora::Highlightable
*highlightable);
64
};
65
66
}
// End of namespace Engines
67
68
#endif // ENGINES_AURORA_KOTORJADEGUI_CHECKBOX_H
Engines::WidgetCheckBox::setQuadHighlighting
void setQuadHighlighting(Graphics::Aurora::Highlightable *highlightable)
Definition:
checkbox.cpp:198
Engines::WidgetCheckBox::setSelected
void setSelected(const Common::UString &selected)
Definition:
checkbox.cpp:175
Engines::WidgetCheckBox::_unselectedHighlighted
Common::UString _unselectedHighlighted
Definition:
checkbox.h:56
Graphics::Aurora::Highlightable
Definition:
highlightable.h:30
Engines::WidgetCheckBox::_unselectedB
float _unselectedB
Definition:
checkbox.h:60
Common::UString
A class holding an UTF-8 string.
Definition:
ustring.h:48
Engines::WidgetCheckBox::_state
bool _state
Definition:
checkbox.h:57
uint8
uint8_t uint8
Definition:
types.h:200
Engines::WidgetCheckBox::_selectedHighlighted
Common::UString _selectedHighlighted
Definition:
checkbox.h:56
types.h
Basic sound types.
Engines::WidgetCheckBox
Definition:
checkbox.h:34
Engines::KotORJadeWidget
Definition:
kotorjadewidget.h:43
Engines::WidgetCheckBox::setUnselectedHighlighted
void setUnselectedHighlighted(const Common::UString &unselectedHighlighted)
Definition:
checkbox.cpp:187
Engines::WidgetCheckBox::_unselectedA
float _unselectedA
Definition:
checkbox.h:60
Engines::GUI
A GUI.
Definition:
gui.h:43
Engines::WidgetCheckBox::~WidgetCheckBox
~WidgetCheckBox()
Definition:
checkbox.cpp:54
Engines::WidgetCheckBox::_unselectedR
float _unselectedR
Definition:
checkbox.h:60
Engines::WidgetCheckBox::_selected
Common::UString _selected
Definition:
checkbox.h:55
Engines::WidgetCheckBox::WidgetCheckBox
WidgetCheckBox(GUI &gui, const Common::UString &tag)
Definition:
checkbox.cpp:45
Engines::WidgetCheckBox::setState
void setState(bool state)
Definition:
checkbox.cpp:99
Engines::WidgetCheckBox::_unselectedG
float _unselectedG
Definition:
checkbox.h:60
Engines
Definition:
console.cpp:69
Engines::WidgetCheckBox::setUnselected
void setUnselected(const Common::UString &unselected)
Definition:
checkbox.cpp:179
Engines::WidgetCheckBox::mouseUp
void mouseUp(uint8 state, float x, float y)
A mouse button was released on the widget.
Definition:
checkbox.cpp:166
kotorjadewidget.h
Common base for Star Wars: Knights of the Old Republic and Jade Empire widgets.
Engines::WidgetCheckBox::leave
void leave()
The mouse left the widget.
Definition:
checkbox.cpp:150
Engines::WidgetCheckBox::load
void load(const Aurora::GFF3Struct &gff)
Definition:
checkbox.cpp:57
Engines::WidgetCheckBox::_unselected
Common::UString _unselected
Definition:
checkbox.h:55
Aurora::GFF3Struct
A struct within a GFF3.
Definition:
gff3file.h:164
Engines::WidgetCheckBox::enter
void enter()
The mouse entered the widget.
Definition:
checkbox.cpp:128
Sound::ChannelHandle
A handle to a sound channel.
Definition:
types.h:35
Engines::WidgetCheckBox::setSelectedHighlighted
void setSelectedHighlighted(const Common::UString &selectedHighlighted)
Definition:
checkbox.cpp:183
Engines::WidgetCheckBox::setTextHighlighting
void setTextHighlighting(Graphics::Aurora::Highlightable *highlightable)
Definition:
checkbox.cpp:191
Engines::WidgetCheckBox::getState
bool getState() const
Definition:
checkbox.cpp:124
Engines::WidgetCheckBox::_sound
Sound::ChannelHandle _sound
Definition:
checkbox.h:59
Generated on Sun Nov 18 2018 15:13:39 for xoreos by
1.8.14