TDME2 1.9.121
|
GUI node controller base class. More...
#include <tdme/gui/nodes/GUINodeController.h>
Public Member Functions | |
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... | |
Protected Member Functions | |
GUINodeController (GUINode *node) | |
Private constructor. More... | |
Protected Attributes | |
GUINode * | node { nullptr } |
|
protected |
Private constructor.
Definition at line 9 of file GUINodeController.cpp.
|
virtual |
Destructor.
Definition at line 14 of file GUINodeController.cpp.
|
pure virtual |
Dispose controller.
Implemented in GUICheckboxController, GUIContextMenuController, GUIContextMenuItemController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIMenuItemController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxController, GUISelectBoxOptionController, GUISelectBoxParentOptionController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
virtual |
Definition at line 17 of file GUINodeController.cpp.
|
pure virtual |
Implemented in GUICheckboxController, GUIContextMenuController, GUIContextMenuItemController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIMenuItemController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxController, GUISelectBoxOptionController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
Handle keyboard event.
event | event |
Implemented in GUICheckboxController, GUIContextMenuController, GUIContextMenuItemController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIMenuItemController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxController, GUISelectBoxOptionController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
Handle mouse event.
node | node |
event | event |
Implemented in GUICheckboxController, GUIContextMenuController, GUIContextMenuItemController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIMenuItemController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxController, GUISelectBoxOptionController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
Implemented in GUICheckboxController, GUIContextMenuController, GUIContextMenuItemController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIMenuItemController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxController, GUISelectBoxOptionController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
Initialize controller after element has been created.
Implemented in GUICheckboxController, GUIContextMenuController, GUIContextMenuItemController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIMenuItemController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxController, GUISelectBoxOptionController, GUISelectBoxParentOptionController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
Implemented in GUICheckboxController, GUIDropDownController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectorHController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
On focus gained.
Implemented in GUICheckboxController, GUIContextMenuController, GUIContextMenuItemController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIMenuItemController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxController, GUISelectBoxOptionController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
On focus lost.
Implemented in GUICheckboxController, GUIContextMenuController, GUIContextMenuItemController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIMenuItemController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxController, GUISelectBoxOptionController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
On sub tree change.
Implemented in GUIContextMenuController, GUIDropDownController, GUIInputController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIScrollAreaController, GUISelectBoxController, GUISelectorHController, GUITabContentController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
Post layout event.
Implemented in GUICheckboxController, GUIContextMenuController, GUIContextMenuItemController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIMenuItemController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxController, GUISelectBoxOptionController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
Set disabled.
disabled | disabled |
Implemented in GUICheckboxController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxOptionController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
Set value.
value | value |
Implemented in GUICheckboxController, GUIContextMenuController, GUIContextMenuItemController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIMenuItemController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxController, GUISelectBoxOptionController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
pure virtual |
Tick method will be executed once per frame.
Implemented in GUICheckboxController, GUIContextMenuController, GUIContextMenuItemController, GUIDropDownController, GUIDropDownOptionController, GUIInputController, GUIKnobController, GUIMenuHeaderController, GUIMenuHeaderItemController, GUIMenuItemController, GUIProgressBarController, GUIRadioButtonController, GUIScrollAreaController, GUISelectBoxController, GUISelectorHController, GUISelectorHOptionController, GUISliderHController, GUISliderVController, GUITabContentController, GUITabController, GUITabsController, GUITabsHeaderController, GUIElementController, GUIElementIgnoreEventsController, GUIHorizontalScrollbarInternalController, GUIInputInternalController, GUIVerticalScrollbarInternalController, and ColorPickerImageController.
|
protected |
Definition at line 21 of file GUINodeController.h.