xoreos
0.0.5
src
engines
aurora
kotorjadegui
button.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_BUTTON_H
26
#define ENGINES_AURORA_KOTORJADEGUI_BUTTON_H
27
28
#include "
src/sound/types.h
"
29
30
#include "
src/engines/aurora/kotorjadegui/kotorjadewidget.h
"
31
32
namespace
Engines
{
33
34
class
WidgetButton
:
public
KotORJadeWidget
{
35
public
:
36
WidgetButton
(
GUI
&gui,
const
Common::UString
&tag);
37
~WidgetButton
();
38
39
virtual
void
load
(
const
Aurora::GFF3Struct
&gff);
40
41
void
setPermanentHighlight
(
bool
);
42
void
setStaticHighlight
();
43
void
setDisableHighlight
(
bool
);
44
void
setDisableHoverSound
(
bool
);
45
46
bool
isHovered
()
const
;
47
48
void
enter
();
49
void
leave
();
50
51
void
mouseUp
(
uint8
state,
float
x,
float
y);
52
53
private
:
54
bool
_permanentHighlight
;
55
bool
_disableHighlight
;
56
bool
_disableHoverSound
;
57
58
Sound::ChannelHandle
_sound
;
59
60
bool
_hovered
;
61
62
void
setDefaultHighlighting
(
Graphics::Aurora::Highlightable
*highlightable);
63
};
64
65
}
// End of namespace Engines
66
67
#endif // ENGINES_AURORA_KOTORJADEGUI_BUTTON_H
Engines::WidgetButton::setDisableHighlight
void setDisableHighlight(bool)
Definition:
button.cpp:75
Engines::WidgetButton::leave
void leave()
The mouse left the widget.
Definition:
button.cpp:105
Graphics::Aurora::Highlightable
Definition:
highlightable.h:30
Common::UString
A class holding an UTF-8 string.
Definition:
ustring.h:48
Engines::WidgetButton::_permanentHighlight
bool _permanentHighlight
Definition:
button.h:54
Engines::WidgetButton::isHovered
bool isHovered() const
Definition:
button.cpp:90
uint8
uint8_t uint8
Definition:
types.h:200
Engines::WidgetButton::_sound
Sound::ChannelHandle _sound
Definition:
button.h:58
types.h
Basic sound types.
Engines::WidgetButton::_disableHighlight
bool _disableHighlight
Definition:
button.h:55
Engines::KotORJadeWidget
Definition:
kotorjadewidget.h:43
Engines::WidgetButton::mouseUp
void mouseUp(uint8 state, float x, float y)
A mouse button was released on the widget.
Definition:
button.cpp:116
Engines::GUI
A GUI.
Definition:
gui.h:43
Engines::WidgetButton::~WidgetButton
~WidgetButton()
Definition:
button.cpp:49
Engines::WidgetButton::setDefaultHighlighting
void setDefaultHighlighting(Graphics::Aurora::Highlightable *highlightable)
Definition:
button.cpp:124
Engines::WidgetButton::_disableHoverSound
bool _disableHoverSound
Definition:
button.h:56
Engines::WidgetButton
Definition:
button.h:34
Engines
Definition:
console.cpp:69
Engines::WidgetButton::enter
void enter()
The mouse entered the widget.
Definition:
button.cpp:94
kotorjadewidget.h
Common base for Star Wars: Knights of the Old Republic and Jade Empire widgets.
Engines::WidgetButton::setDisableHoverSound
void setDisableHoverSound(bool)
Definition:
button.cpp:86
Engines::WidgetButton::_hovered
bool _hovered
Definition:
button.h:60
Aurora::GFF3Struct
A struct within a GFF3.
Definition:
gff3file.h:164
Sound::ChannelHandle
A handle to a sound channel.
Definition:
types.h:35
Engines::WidgetButton::setPermanentHighlight
void setPermanentHighlight(bool)
Definition:
button.cpp:64
Engines::WidgetButton::load
virtual void load(const Aurora::GFF3Struct &gff)
Definition:
button.cpp:52
Engines::WidgetButton::WidgetButton
WidgetButton(GUI &gui, const Common::UString &tag)
Definition:
button.cpp:41
Engines::WidgetButton::setStaticHighlight
void setStaticHighlight()
Definition:
button.cpp:69
Generated on Sun Nov 18 2018 15:13:39 for xoreos by
1.8.14