TDME2 1.9.121
|
GUI vertical slider controller. More...
#include <tdme/gui/elements/GUISliderVController.h>
Public Member Functions | |
bool | isDisabled () override |
void | setDisabled (bool disabled) override |
Set disabled. More... | |
void | initialize () override |
Initialize controller after element has been created. More... | |
void | dispose () override |
Dispose controller. More... | |
void | postLayout () override |
Post layout event. More... | |
void | handleMouseEvent (GUINode *node, GUIMouseEvent *event) override |
Handle mouse event. More... | |
void | handleKeyboardEvent (GUIKeyboardEvent *event) override |
Handle keyboard event. More... | |
void | tick () override |
Tick method will be executed once per frame. More... | |
void | onFocusGained () override |
On focus gained. More... | |
void | onFocusLost () override |
On focus lost. More... | |
bool | hasValue () override |
const MutableString & | getValue () override |
void | setValue (const MutableString &value) override |
Set value. More... | |
![]() | |
bool | isDisabled () override |
void | setDisabled (bool disabled) override |
Set disabled. More... | |
void | initialize () override |
Initialize controller after element has been created. More... | |
void | dispose () override |
Dispose controller. More... | |
void | postLayout () override |
Post layout event. More... | |
void | handleMouseEvent (GUINode *node, GUIMouseEvent *event) override |
Handle mouse event. More... | |
void | handleKeyboardEvent (GUIKeyboardEvent *event) override |
Handle keyboard event. More... | |
void | tick () override |
Tick method will be executed once per frame. More... | |
void | onFocusGained () override |
On focus gained. More... | |
void | onFocusLost () override |
On focus lost. More... | |
bool | hasValue () override |
const MutableString & | getValue () override |
void | setValue (const MutableString &value) override |
Set value. More... | |
void | onSubTreeChange () override |
On sub tree change. More... | |
![]() | |
virtual | ~GUINodeController () |
Destructor. More... | |
virtual GUINode * | getNode () |
virtual void | initialize ()=0 |
Initialize controller after element has been created. More... | |
virtual void | dispose ()=0 |
Dispose controller. More... | |
virtual void | postLayout ()=0 |
Post layout event. More... | |
virtual void | handleMouseEvent (GUINode *node, GUIMouseEvent *event)=0 |
Handle mouse event. More... | |
virtual void | handleKeyboardEvent (GUIKeyboardEvent *event)=0 |
Handle keyboard event. More... | |
virtual void | tick ()=0 |
Tick method will be executed once per frame. More... | |
virtual void | onFocusGained ()=0 |
On focus gained. More... | |
virtual void | onFocusLost ()=0 |
On focus lost. More... | |
virtual bool | hasValue ()=0 |
virtual const MutableString & | getValue ()=0 |
virtual void | setValue (const MutableString &value)=0 |
Set value. More... | |
virtual bool | isDisabled ()=0 |
virtual void | setDisabled (bool disabled)=0 |
Set disabled. More... | |
virtual void | onSubTreeChange ()=0 |
On sub tree change. More... | |
Private Member Functions | |
GUISliderVController (GUINode *node) | |
Public constructor. More... | |
void | updateSlider () |
Update slider. More... | |
Private Attributes | |
GUINode * | sliderNode { nullptr } |
bool | disabled { false } |
float | valueFloat { 0.0f } |
MutableString | value { } |
Friends | |
class | GUISliderV |
Additional Inherited Members | |
![]() | |
GUIElementController (GUINode *node) | |
Constructor. More... | |
![]() | |
GUINodeController (GUINode *node) | |
Private constructor. More... | |
![]() | |
GUINode * | node { nullptr } |
![]() | |
static STATIC_DLL_IMPEXT string | CONDITION_DISABLED = "disabled" |
static STATIC_DLL_IMPEXT string | CONDITION_ENABLED = "enabled" |
|
private |
|
overridevirtual |
Dispose controller.
Implements GUINodeController.
Definition at line 59 of file GUISliderVController.cpp.
|
overridevirtual |
|
overridevirtual |
Handle keyboard event.
event | event |
Implements GUINodeController.
Definition at line 91 of file GUISliderVController.cpp.
|
overridevirtual |
Handle mouse event.
node | node |
event | event |
Implements GUINodeController.
Definition at line 67 of file GUISliderVController.cpp.
|
overridevirtual |
Implements GUINodeController.
Definition at line 125 of file GUISliderVController.cpp.
|
overridevirtual |
Initialize controller after element has been created.
Implements GUINodeController.
Definition at line 51 of file GUISliderVController.cpp.
|
overridevirtual |
Implements GUINodeController.
Definition at line 43 of file GUISliderVController.cpp.
|
overridevirtual |
On focus gained.
Implements GUINodeController.
Definition at line 119 of file GUISliderVController.cpp.
|
overridevirtual |
On focus lost.
Implements GUINodeController.
Definition at line 122 of file GUISliderVController.cpp.
|
overridevirtual |
Post layout event.
Implements GUINodeController.
Definition at line 63 of file GUISliderVController.cpp.
|
overridevirtual |
Set disabled.
disabled | disabled |
Implements GUINodeController.
Definition at line 47 of file GUISliderVController.cpp.
|
overridevirtual |
Set value.
value | value |
Implements GUINodeController.
Definition at line 133 of file GUISliderVController.cpp.
|
overridevirtual |
Tick method will be executed once per frame.
Implements GUINodeController.
Definition at line 115 of file GUISliderVController.cpp.
|
private |
Update slider.
Definition at line 139 of file GUISliderVController.cpp.
|
friend |
Definition at line 23 of file GUISliderVController.h.
|
private |
Definition at line 27 of file GUISliderVController.h.
|
private |
Definition at line 26 of file GUISliderVController.h.
|
private |
Definition at line 29 of file GUISliderVController.h.
|
private |
Definition at line 28 of file GUISliderVController.h.