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

GUI tab controller. More...

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

Inheritance diagram for GUITabController:
Inheritance graph
Collaboration diagram for GUITabController:
Collaboration graph

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 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

 GUITabController (GUINode *node)
 Private constructor. More...
 
bool isSelected ()
 
void setSelected (bool selected)
 Set checked. More...
 

Private Attributes

GUINodetabsNode { nullptr }
 
GUINodetabsHeaderNode { nullptr }
 
bool selected
 
GUIColor unfocussedNodeBorderLeftColor
 
GUIColor unfocussedNodeBorderRightColor
 
GUIColor unfocussedNodeBorderTopColor
 
GUIColor unfocussedNodeBorderBottomColor
 
bool disabled
 
MutableString value
 

Static Private Attributes

static STATIC_DLL_IMPEXT string CONDITION_DISABLED = "disabled"
 
static STATIC_DLL_IMPEXT string CONDITION_ENABLED = "enabled"
 
static STATIC_DLL_IMPEXT string CONDITION_SELECTED = "selected"
 
static STATIC_DLL_IMPEXT string CONDITION_UNSELECTED = "unselected"
 

Friends

class GUITab
 
class GUITabsController
 
class GUITabsHeaderController
 

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 tab controller.

Author
Andreas Drewke
Version
$Id$

Definition at line 28 of file GUITabController.h.

Constructor & Destructor Documentation

◆ GUITabController()

GUITabController ( GUINode node)
private

Private constructor.

Definition at line 38 of file GUITabController.cpp.

Member Function Documentation

◆ dispose()

void dispose ( )
overridevirtual

Dispose controller.

Implements GUINodeController.

Definition at line 110 of file GUITabController.cpp.

◆ getValue()

const MutableString & getValue ( )
overridevirtual
Returns
value

Implements GUINodeController.

Definition at line 156 of file GUITabController.cpp.

◆ handleKeyboardEvent()

void handleKeyboardEvent ( GUIKeyboardEvent event)
overridevirtual

Handle keyboard event.

Parameters
eventevent

Implements GUINodeController.

Definition at line 133 of file GUITabController.cpp.

◆ handleMouseEvent()

void handleMouseEvent ( GUINode node,
GUIMouseEvent event 
)
overridevirtual

Handle mouse event.

Parameters
nodenode
eventevent

Implements GUINodeController.

Definition at line 119 of file GUITabController.cpp.

◆ hasValue()

bool hasValue ( )
overridevirtual
Returns
has value

Implements GUINodeController.

Definition at line 151 of file GUITabController.cpp.

◆ initialize()

void initialize ( )
overridevirtual

Initialize controller after element has been created.

Implements GUINodeController.

Definition at line 95 of file GUITabController.cpp.

◆ isDisabled()

bool isDisabled ( )
overridevirtual
Returns
is disabled

Implements GUINodeController.

Definition at line 47 of file GUITabController.cpp.

◆ isSelected()

bool isSelected ( )
private
Returns
is checked

Definition at line 60 of file GUITabController.cpp.

◆ onFocusGained()

void onFocusGained ( )
overridevirtual

On focus gained.

Implements GUINodeController.

Definition at line 143 of file GUITabController.cpp.

◆ onFocusLost()

void onFocusLost ( )
overridevirtual

On focus lost.

Implements GUINodeController.

Definition at line 147 of file GUITabController.cpp.

◆ postLayout()

void postLayout ( )
overridevirtual

Post layout event.

Implements GUINodeController.

Definition at line 115 of file GUITabController.cpp.

◆ setDisabled()

void setDisabled ( bool  disabled)
overridevirtual

Set disabled.

Parameters
disableddisabled

Implements GUINodeController.

Definition at line 52 of file GUITabController.cpp.

◆ setSelected()

void setSelected ( bool  selected)
private

Set checked.

Parameters
selectedselected

Definition at line 65 of file GUITabController.cpp.

◆ setValue()

void setValue ( const MutableString value)
overridevirtual

Set value.

Parameters
valuevalue

Implements GUINodeController.

Definition at line 161 of file GUITabController.cpp.

◆ tick()

void tick ( )
overridevirtual

Tick method will be executed once per frame.

Implements GUINodeController.

Definition at line 138 of file GUITabController.cpp.

Friends And Related Function Documentation

◆ GUITab

friend class GUITab
friend

Definition at line 30 of file GUITabController.h.

◆ GUITabsController

friend class GUITabsController
friend

Definition at line 31 of file GUITabController.h.

◆ GUITabsHeaderController

friend class GUITabsHeaderController
friend

Definition at line 32 of file GUITabController.h.

Member Data Documentation

◆ CONDITION_DISABLED

string CONDITION_DISABLED = "disabled"
staticprivate

Definition at line 35 of file GUITabController.h.

◆ CONDITION_ENABLED

string CONDITION_ENABLED = "enabled"
staticprivate

Definition at line 36 of file GUITabController.h.

◆ CONDITION_SELECTED

string CONDITION_SELECTED = "selected"
staticprivate

Definition at line 37 of file GUITabController.h.

◆ CONDITION_UNSELECTED

string CONDITION_UNSELECTED = "unselected"
staticprivate

Definition at line 38 of file GUITabController.h.

◆ disabled

bool disabled
private

Definition at line 46 of file GUITabController.h.

◆ selected

bool selected
private

Definition at line 41 of file GUITabController.h.

◆ tabsHeaderNode

GUINode* tabsHeaderNode { nullptr }
private

Definition at line 40 of file GUITabController.h.

◆ tabsNode

GUINode* tabsNode { nullptr }
private

Definition at line 39 of file GUITabController.h.

◆ unfocussedNodeBorderBottomColor

GUIColor unfocussedNodeBorderBottomColor
private

Definition at line 45 of file GUITabController.h.

◆ unfocussedNodeBorderLeftColor

GUIColor unfocussedNodeBorderLeftColor
private

Definition at line 42 of file GUITabController.h.

◆ unfocussedNodeBorderRightColor

GUIColor unfocussedNodeBorderRightColor
private

Definition at line 43 of file GUITabController.h.

◆ unfocussedNodeBorderTopColor

GUIColor unfocussedNodeBorderTopColor
private

Definition at line 44 of file GUITabController.h.

◆ value

MutableString value
private

Definition at line 47 of file GUITabController.h.


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