TDME2 1.9.121
|
GUI drop down option controller. More...
#include <tdme/gui/elements/GUIDropDownOptionController.h>
Public Member Functions | |
void | setDisabled (bool disabled) override |
Set disabled. More... | |
void | initialize () override |
Initialize controller after element has been created. More... | |
void | postLayout () override |
Post layout event. More... | |
void | dispose () override |
Dispose controller. 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 | |
GUIDropDownOptionController (GUINode *node) | |
Private constructor. More... | |
bool | isSelected () |
void | select () |
Select. More... | |
void | unselect () |
Unselect. More... | |
bool | search (const string &value) |
Search by string. More... | |
bool | isHidden () |
Private Attributes | |
GUIParentNode * | dropDownNode { nullptr } |
GUIParentNode * | dropDownContainerNode { nullptr } |
bool | initialPostLayout |
bool | selected |
bool | hidden |
MutableString | value |
Static Private Attributes | |
static STATIC_DLL_IMPEXT string | CONDITION_SELECTED = "selected" |
static STATIC_DLL_IMPEXT string | CONDITION_UNSELECTED = "unselected" |
static STATIC_DLL_IMPEXT string | CONDITION_HIDDEN = "hidden" |
Friends | |
class | GUIDropDownOption |
class | GUIDropDownController |
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" |
GUI drop down option controller.
Definition at line 27 of file GUIDropDownOptionController.h.
|
private |
Private constructor.
node | node |
Definition at line 40 of file GUIDropDownOptionController.cpp.
|
overridevirtual |
Dispose controller.
Implements GUINodeController.
Definition at line 126 of file GUIDropDownOptionController.cpp.
|
overridevirtual |
Implements GUINodeController.
Definition at line 168 of file GUIDropDownOptionController.cpp.
|
overridevirtual |
Handle keyboard event.
event | event |
Implements GUINodeController.
Definition at line 145 of file GUIDropDownOptionController.cpp.
|
overridevirtual |
Handle mouse event.
node | node |
event | event |
Implements GUINodeController.
Definition at line 131 of file GUIDropDownOptionController.cpp.
|
overridevirtual |
Implements GUINodeController.
Definition at line 163 of file GUIDropDownOptionController.cpp.
|
overridevirtual |
Initialize controller after element has been created.
Implements GUINodeController.
Definition at line 95 of file GUIDropDownOptionController.cpp.
|
inlineprivate |
Definition at line 77 of file GUIDropDownOptionController.h.
|
inlineprivate |
Definition at line 53 of file GUIDropDownOptionController.h.
|
overridevirtual |
On focus gained.
Implements GUINodeController.
Definition at line 155 of file GUIDropDownOptionController.cpp.
|
overridevirtual |
On focus lost.
Implements GUINodeController.
Definition at line 159 of file GUIDropDownOptionController.cpp.
|
overridevirtual |
Post layout event.
Implements GUINodeController.
Definition at line 116 of file GUIDropDownOptionController.cpp.
|
private |
Search by string.
value | value |
Definition at line 75 of file GUIDropDownOptionController.cpp.
|
private |
Select.
Definition at line 54 of file GUIDropDownOptionController.cpp.
|
overridevirtual |
Set disabled.
disabled | disabled |
Implements GUINodeController.
Definition at line 48 of file GUIDropDownOptionController.cpp.
|
overridevirtual |
Set value.
value | value |
Implements GUINodeController.
Definition at line 173 of file GUIDropDownOptionController.cpp.
|
overridevirtual |
Tick method will be executed once per frame.
Implements GUINodeController.
Definition at line 150 of file GUIDropDownOptionController.cpp.
|
private |
Unselect.
Definition at line 67 of file GUIDropDownOptionController.cpp.
|
friend |
Definition at line 31 of file GUIDropDownOptionController.h.
|
friend |
Definition at line 30 of file GUIDropDownOptionController.h.
|
staticprivate |
Definition at line 36 of file GUIDropDownOptionController.h.
|
staticprivate |
Definition at line 34 of file GUIDropDownOptionController.h.
|
staticprivate |
Definition at line 35 of file GUIDropDownOptionController.h.
|
private |
Definition at line 38 of file GUIDropDownOptionController.h.
|
private |
Definition at line 37 of file GUIDropDownOptionController.h.
|
private |
Definition at line 41 of file GUIDropDownOptionController.h.
|
private |
Definition at line 39 of file GUIDropDownOptionController.h.
|
private |
Definition at line 40 of file GUIDropDownOptionController.h.
|
private |
Definition at line 42 of file GUIDropDownOptionController.h.