#include <GUIButton.h>
|
void | setTooltip (const string &tooltipText) override |
|
void | setText (const std::string_view &text) const |
|
void | setFont (const string &fontName, const string &fontFileName, U32 size) const |
|
void | active (bool active) noexcept override |
|
void | visible (bool visible) noexcept override |
|
void | setEventCallback (Event event, const ButtonCallback &callback) |
|
void | setEventSound (Event event, Handle< AudioDescriptor > sound) |
|
void | setEventCallback (Event event, const ButtonCallback &callback, Handle< AudioDescriptor > sound) |
|
| GUIElementBase (const string &name, CEGUI::Window *const parent) |
|
GUIType | type () const noexcept override |
|
| GUIElement (string name, CEGUI::Window *parent) noexcept |
|
virtual void | setTooltip (const string &tooltipText) |
|
| PROPERTY_RW (string, name, "") |
|
| VIRTUAL_PROPERTY_RW (bool, visible, true) |
|
| VIRTUAL_PROPERTY_RW (bool, active, false) |
|
virtual GUIType | type () const noexcept |
|
| GUIDWrapper () noexcept |
|
| GUIDWrapper (const GUIDWrapper &old) noexcept |
|
| GUIDWrapper (GUIDWrapper &&old) noexcept |
|
virtual | ~GUIDWrapper ()=default |
|
FORCE_INLINE I64 | getGUID () const noexcept |
|
GUIDWrapper & | operator= (const GUIDWrapper &old)=delete |
|
GUIDWrapper & | operator= (GUIDWrapper &&other)=delete |
|
Definition at line 49 of file GUIButton.h.
◆ AudioCallback
◆ ButtonCallback
◆ Event
Enumerator |
---|
HoverEnter | |
HoverLeave | |
MouseDown | |
MouseUp | |
MouseMove | |
MouseClick | |
MouseDoubleClick | |
MouseTripleClick | |
COUNT | |
Definition at line 57 of file GUIButton.h.
◆ GUIButton()
◆ ~GUIButton()
Divide::GUIButton::~GUIButton |
( |
| ) |
|
|
overrideprotected |
◆ active()
void Divide::GUIButton::active |
( |
bool |
active | ) |
|
|
overridenoexcept |
◆ onEvent()
bool Divide::GUIButton::onEvent |
( |
Event |
event, |
|
|
const CEGUI::EventArgs & |
|
|
) |
| |
|
protected |
◆ setEventCallback() [1/2]
◆ setEventCallback() [2/2]
◆ setEventSound()
◆ setFont()
void Divide::GUIButton::setFont |
( |
const string & |
fontName, |
|
|
const string & |
fontFileName, |
|
|
U32 |
size |
|
) |
| const |
◆ setText()
void Divide::GUIButton::setText |
( |
const std::string_view & |
text | ) |
const |
◆ setTooltip()
void Divide::GUIButton::setTooltip |
( |
const string & |
tooltipText | ) |
|
|
overridevirtual |
◆ soundCallback()
bool Divide::GUIButton::soundCallback |
( |
const AudioCallback & |
cbk | ) |
|
|
static |
◆ visible()
void Divide::GUIButton::visible |
( |
bool |
visible | ) |
|
|
overridenoexcept |
◆ GUIInterface
◆ SceneGUIElements
◆ _btnWindow
CEGUI::Window* Divide::GUIButton::_btnWindow |
|
protected |
◆ _callbackFunction
A pointer to a function to call if the button is pressed.
Definition at line 97 of file GUIButton.h.
◆ _connections
◆ _eventSound
◆ s_soundCallback
The documentation for this class was generated from the following files: