TDME2 1.9.121
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
GUISelectorHOptionController Class Referencefinal

GUI selector horizontal option controller. More...

#include <tdme/gui/elements/GUISelectorHOptionController.h>

Inheritance diagram for GUISelectorHOptionController:
Inheritance graph
Collaboration diagram for GUISelectorHOptionController:
Collaboration graph

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 MutableStringgetValue () override
 
void setValue (const MutableString &value) override
 Set value. More...
 
- Public Member Functions inherited from GUIElementController
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 MutableStringgetValue () override
 
void setValue (const MutableString &value) override
 Set value. More...
 
void onSubTreeChange () override
 On sub tree change. More...
 
- Public Member Functions inherited from GUINodeController
virtual ~GUINodeController ()
 Destructor. More...
 
virtual GUINodegetNode ()
 
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 MutableStringgetValue ()=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

 GUISelectorHOptionController (GUINode *node)
 Private constructor. More...
 
bool isSelected ()
 
bool isHidden ()
 
void select ()
 Select. More...
 
void unselect ()
 Unselect. More...
 

Private Attributes

GUIParentNodeselectorHNode { nullptr }
 
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"
 

Friends

class GUISelectorHOption
 
class GUISelectorHController
 

Additional Inherited Members

- Protected Member Functions inherited from GUIElementController
 GUIElementController (GUINode *node)
 Constructor. More...
 
- Protected Member Functions inherited from GUINodeController
 GUINodeController (GUINode *node)
 Private constructor. More...
 
- Protected Attributes inherited from GUINodeController
GUINodenode { nullptr }
 
- Static Protected Attributes inherited from GUIElementController
static STATIC_DLL_IMPEXT string CONDITION_DISABLED = "disabled"
 
static STATIC_DLL_IMPEXT string CONDITION_ENABLED = "enabled"
 

Detailed Description

GUI selector horizontal option controller.

Author
Andreas Drewke
Version
$Id$

Definition at line 27 of file GUISelectorHOptionController.h.

Constructor & Destructor Documentation

◆ GUISelectorHOptionController()

Private constructor.

Parameters
nodenode

Definition at line 39 of file GUISelectorHOptionController.cpp.

Member Function Documentation

◆ dispose()

void dispose ( )
overridevirtual

Dispose controller.

Implements GUINodeController.

Definition at line 92 of file GUISelectorHOptionController.cpp.

◆ getValue()

const MutableString & getValue ( )
overridevirtual
Returns
value

Implements GUINodeController.

Definition at line 125 of file GUISelectorHOptionController.cpp.

◆ handleKeyboardEvent()

void handleKeyboardEvent ( GUIKeyboardEvent event)
overridevirtual

Handle keyboard event.

Parameters
eventevent

Implements GUINodeController.

Definition at line 102 of file GUISelectorHOptionController.cpp.

◆ handleMouseEvent()

void handleMouseEvent ( GUINode node,
GUIMouseEvent event 
)
overridevirtual

Handle mouse event.

Parameters
nodenode
eventevent

Implements GUINodeController.

Definition at line 97 of file GUISelectorHOptionController.cpp.

◆ hasValue()

bool hasValue ( )
overridevirtual
Returns
has value

Implements GUINodeController.

Definition at line 120 of file GUISelectorHOptionController.cpp.

◆ initialize()

void initialize ( )
overridevirtual

Initialize controller after element has been created.

Implements GUINodeController.

Definition at line 68 of file GUISelectorHOptionController.cpp.

◆ isHidden()

bool isHidden ( )
inlineprivate
Returns
is hidden

Definition at line 57 of file GUISelectorHOptionController.h.

◆ isSelected()

bool isSelected ( )
inlineprivate
Returns
is selected

Definition at line 50 of file GUISelectorHOptionController.h.

◆ onFocusGained()

void onFocusGained ( )
overridevirtual

On focus gained.

Implements GUINodeController.

Definition at line 112 of file GUISelectorHOptionController.cpp.

◆ onFocusLost()

void onFocusLost ( )
overridevirtual

On focus lost.

Implements GUINodeController.

Definition at line 116 of file GUISelectorHOptionController.cpp.

◆ postLayout()

void postLayout ( )
overridevirtual

Post layout event.

Implements GUINodeController.

Definition at line 88 of file GUISelectorHOptionController.cpp.

◆ select()

void select ( )
private

Select.

Definition at line 52 of file GUISelectorHOptionController.cpp.

◆ setDisabled()

void setDisabled ( bool  disabled)
overridevirtual

Set disabled.

Parameters
disableddisabled

Implements GUINodeController.

Definition at line 46 of file GUISelectorHOptionController.cpp.

◆ setValue()

void setValue ( const MutableString value)
overridevirtual

Set value.

Parameters
valuevalue

Implements GUINodeController.

Definition at line 130 of file GUISelectorHOptionController.cpp.

◆ tick()

void tick ( )
overridevirtual

Tick method will be executed once per frame.

Implements GUINodeController.

Definition at line 107 of file GUISelectorHOptionController.cpp.

◆ unselect()

void unselect ( )
private

Unselect.

Definition at line 60 of file GUISelectorHOptionController.cpp.

Friends And Related Function Documentation

◆ GUISelectorHController

friend class GUISelectorHController
friend

Definition at line 31 of file GUISelectorHOptionController.h.

◆ GUISelectorHOption

friend class GUISelectorHOption
friend

Definition at line 30 of file GUISelectorHOptionController.h.

Member Data Documentation

◆ CONDITION_SELECTED

string CONDITION_SELECTED = "selected"
staticprivate

Definition at line 34 of file GUISelectorHOptionController.h.

◆ CONDITION_UNSELECTED

string CONDITION_UNSELECTED = "unselected"
staticprivate

Definition at line 35 of file GUISelectorHOptionController.h.

◆ hidden

bool hidden
private

Definition at line 38 of file GUISelectorHOptionController.h.

◆ selected

bool selected
private

Definition at line 37 of file GUISelectorHOptionController.h.

◆ selectorHNode

GUIParentNode* selectorHNode { nullptr }
private

Definition at line 36 of file GUISelectorHOptionController.h.

◆ value

MutableString value
private

Definition at line 39 of file GUISelectorHOptionController.h.


The documentation for this class was generated from the following files: