TDME2 1.9.121
|
GUI menu header item controller. More...
#include <tdme/gui/elements/GUIMenuHeaderItemController.h>
Public Member Functions | |
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 | |
GUIMenuHeaderItemController (GUINode *node) | |
Private constructor. More... | |
bool | isOpen () |
bool | isSelected () |
void | select () |
Select. More... | |
void | unselect () |
Unselect. More... | |
void | toggleOpenState () |
Toggle open state. More... | |
void | determineMenuItemControllers () |
Determine menu item controllers. More... | |
void | unselectSelection () |
Unselect selection. More... | |
void | selectFirst () |
Select first menu item. More... | |
void | selectNext () |
Select next menu item. More... | |
void | selectPrevious () |
Select previous menu item. More... | |
void | handleCurrentMenuItemKeyboardEvent (GUIKeyboardEvent *event) |
Handle current menu item keyboard event. More... | |
Private Attributes | |
GUIElementNode * | menuHeaderNode { nullptr } |
vector< GUIMenuItemController * > | menuItemControllers |
bool | open |
bool | selected |
MutableString | value |
int | selectedMenuItemControllerIdx { -1 } |
Static Private Attributes | |
static STATIC_DLL_IMPEXT string | CONDITION_OPENED = "opened" |
static STATIC_DLL_IMPEXT string | CONDITION_CLOSED = "closed" |
static STATIC_DLL_IMPEXT string | CONDITION_SELECTED = "selected" |
static STATIC_DLL_IMPEXT string | CONDITION_UNSELECTED = "unselected" |
Friends | |
class | GUIMenuHeaderController |
class | GUIMenuHeaderItem |
class | GUIMenuHeaderItemOptionController |
class | GUIMenuItemController |
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 menu header item controller.
Definition at line 30 of file GUIMenuHeaderItemController.h.
|
private |
Private constructor.
node | node |
Definition at line 48 of file GUIMenuHeaderItemController.cpp.
|
private |
Determine menu item controllers.
Definition at line 118 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
Dispose controller.
Implements GUINodeController.
Definition at line 96 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
Implements GUINodeController.
Definition at line 266 of file GUIMenuHeaderItemController.cpp.
|
private |
Handle current menu item keyboard event.
event | event |
Definition at line 192 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
Handle keyboard event.
event | event |
Implements GUINodeController.
Definition at line 242 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
Handle mouse event.
node | node |
event | event |
Implements GUINodeController.
Definition at line 199 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
Implements GUINodeController.
Definition at line 261 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
Initialize controller after element has been created.
Implements GUINodeController.
Definition at line 76 of file GUIMenuHeaderItemController.cpp.
|
private |
Definition at line 105 of file GUIMenuHeaderItemController.cpp.
|
private |
Definition at line 55 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
On focus gained.
Implements GUINodeController.
Definition at line 253 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
On focus lost.
Implements GUINodeController.
Definition at line 257 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
On sub tree change.
Implements GUINodeController.
Definition at line 277 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
Post layout event.
Implements GUINodeController.
Definition at line 101 of file GUIMenuHeaderItemController.cpp.
|
private |
Select.
Definition at line 60 of file GUIMenuHeaderItemController.cpp.
|
private |
Select first menu item.
Definition at line 140 of file GUIMenuHeaderItemController.cpp.
|
private |
Select next menu item.
Definition at line 148 of file GUIMenuHeaderItemController.cpp.
|
private |
Select previous menu item.
Definition at line 170 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
Set value.
value | value |
Implements GUINodeController.
Definition at line 272 of file GUIMenuHeaderItemController.cpp.
|
overridevirtual |
Tick method will be executed once per frame.
Implements GUINodeController.
Definition at line 247 of file GUIMenuHeaderItemController.cpp.
|
private |
Toggle open state.
Definition at line 110 of file GUIMenuHeaderItemController.cpp.
|
private |
Unselect.
Definition at line 68 of file GUIMenuHeaderItemController.cpp.
|
private |
Unselect selection.
Definition at line 133 of file GUIMenuHeaderItemController.cpp.
|
friend |
Definition at line 33 of file GUIMenuHeaderItemController.h.
|
friend |
Definition at line 34 of file GUIMenuHeaderItemController.h.
|
friend |
Definition at line 35 of file GUIMenuHeaderItemController.h.
|
friend |
Definition at line 36 of file GUIMenuHeaderItemController.h.
|
staticprivate |
Definition at line 40 of file GUIMenuHeaderItemController.h.
|
staticprivate |
Definition at line 39 of file GUIMenuHeaderItemController.h.
|
staticprivate |
Definition at line 41 of file GUIMenuHeaderItemController.h.
|
staticprivate |
Definition at line 42 of file GUIMenuHeaderItemController.h.
|
private |
Definition at line 43 of file GUIMenuHeaderItemController.h.
|
private |
Definition at line 44 of file GUIMenuHeaderItemController.h.
|
private |
Definition at line 45 of file GUIMenuHeaderItemController.h.
|
private |
Definition at line 46 of file GUIMenuHeaderItemController.h.
|
private |
Definition at line 48 of file GUIMenuHeaderItemController.h.
|
private |
Definition at line 47 of file GUIMenuHeaderItemController.h.