TDME2 1.9.121
|
GUI selector horizontal controller. More...
#include <tdme/gui/elements/GUISelectorHController.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... | |
void | onSubTreeChange () override |
On sub tree change. 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 | |
GUISelectorHController (GUINode *node) | |
Private constructor. More... | |
void | unselect () |
Unselect. More... | |
void | select (int idx) |
Select by index. More... | |
void | select (GUIElementNode *selectedSelectorHOptionElementNode) |
Select by option element node. More... | |
void | determineSelectorHOptionControllers () |
Determine drop down option controllers. More... | |
void | selectNext () |
Select next node. More... | |
void | selectPrevious () |
Select previous. More... | |
Private Attributes | |
vector< GUISelectorHOptionController * > | selectorHOptionControllers |
bool | disabled |
MutableString | value |
string | search |
int | selectedHOptionControllerIdx { -1 } |
GUIActionListener * | actionListener { nullptr } |
GUIParentNode * | innerNode { nullptr } |
Static Private Attributes | |
static STATIC_DLL_IMPEXT string | CONDITION_DISABLED = "disabled" |
static STATIC_DLL_IMPEXT string | CONDITION_ENABLED = "enabled" |
Friends | |
class | GUISelectorH |
class | GUISelectorHOptionController |
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 selector horizontal controller.
Definition at line 31 of file GUISelectorHController.h.
|
private |
|
private |
Determine drop down option controllers.
Definition at line 155 of file GUISelectorHController.cpp.
|
overridevirtual |
Dispose controller.
Implements GUINodeController.
Definition at line 112 of file GUISelectorHController.cpp.
|
overridevirtual |
Implements GUINodeController.
Definition at line 268 of file GUISelectorHController.cpp.
|
overridevirtual |
Handle keyboard event.
event | event |
Implements GUINodeController.
Definition at line 228 of file GUISelectorHController.cpp.
|
overridevirtual |
Handle mouse event.
node | node |
event | event |
Implements GUINodeController.
Definition at line 213 of file GUISelectorHController.cpp.
|
overridevirtual |
Implements GUINodeController.
Definition at line 263 of file GUISelectorHController.cpp.
|
overridevirtual |
Initialize controller after element has been created.
Public constructor
selectorHController | selector horizontal Controller |
leftArrowNode | left arrow node |
rightArrowNode | right arrow node |
Implements GUINodeController.
Definition at line 63 of file GUISelectorHController.cpp.
|
overridevirtual |
Implements GUINodeController.
Definition at line 50 of file GUISelectorHController.cpp.
|
overridevirtual |
On focus gained.
Implements GUINodeController.
Definition at line 255 of file GUISelectorHController.cpp.
|
overridevirtual |
On focus lost.
Implements GUINodeController.
Definition at line 259 of file GUISelectorHController.cpp.
|
overridevirtual |
On sub tree change.
Implements GUINodeController.
Definition at line 289 of file GUISelectorHController.cpp.
|
overridevirtual |
Post layout event.
Implements GUINodeController.
Definition at line 125 of file GUISelectorHController.cpp.
|
private |
Select by option element node.
selectedSelectorHOptionElementNode | selected selector horizontal option element node |
Definition at line 142 of file GUISelectorHController.cpp.
|
private |
|
private |
Select next node.
Definition at line 167 of file GUISelectorHController.cpp.
|
private |
Select previous.
Definition at line 188 of file GUISelectorHController.cpp.
|
overridevirtual |
Set disabled.
disabled | disabled |
Implements GUINodeController.
Definition at line 55 of file GUISelectorHController.cpp.
|
overridevirtual |
Set value.
value | value |
Implements GUINodeController.
Definition at line 275 of file GUISelectorHController.cpp.
|
overridevirtual |
Tick method will be executed once per frame.
Implements GUINodeController.
Definition at line 250 of file GUISelectorHController.cpp.
|
private |
Unselect.
Definition at line 129 of file GUISelectorHController.cpp.
|
friend |
Definition at line 34 of file GUISelectorHController.h.
|
friend |
Definition at line 35 of file GUISelectorHController.h.
|
private |
Definition at line 45 of file GUISelectorHController.h.
|
staticprivate |
Definition at line 38 of file GUISelectorHController.h.
|
staticprivate |
Definition at line 39 of file GUISelectorHController.h.
|
private |
Definition at line 41 of file GUISelectorHController.h.
|
private |
Definition at line 46 of file GUISelectorHController.h.
|
private |
Definition at line 43 of file GUISelectorHController.h.
|
private |
Definition at line 44 of file GUISelectorHController.h.
|
private |
Definition at line 40 of file GUISelectorHController.h.
|
private |
Definition at line 42 of file GUISelectorHController.h.