TDME2 1.9.121
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
GUIVerticalScrollbarInternalController Class Reference

GUI vertical scroll bar internal controller. More...

#include <tdme/gui/nodes/GUIVerticalScrollbarInternalController.h>

Inheritance diagram for GUIVerticalScrollbarInternalController:
Inheritance graph
Collaboration diagram for GUIVerticalScrollbarInternalController:
Collaboration graph

Public Types

enum  State { STATE_NONE , STATE_MOUSEOVER , STATE_DRAGGING }
 

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...
 
void onSubTreeChange () override
 On sub tree change. More...
 
virtual State getState ()
 
- 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

 GUIVerticalScrollbarInternalController (GUINode *node)
 Private constructor. More...
 
virtual float getBarHeight ()
 
virtual float getBarTop ()
 
virtual void setDraggedY (float draggedY)
 Set dragged y. More...
 

Private Attributes

GUILayoutNodecontentNode { nullptr }
 
float contentHeight
 
State state
 
int mouseYOffset
 
MutableString value
 

Friends

class GUIVerticalScrollbarInternalNode
 

Additional Inherited Members

- Protected Member Functions inherited from GUINodeController
 GUINodeController (GUINode *node)
 Private constructor. More...
 
- Protected Attributes inherited from GUINodeController
GUINodenode { nullptr }
 

Detailed Description

GUI vertical scroll bar internal controller.

Author
Andreas Drewke
Version
$Id$

Definition at line 22 of file GUIVerticalScrollbarInternalController.h.

Member Enumeration Documentation

◆ State

enum State
Enumerator
STATE_NONE 
STATE_MOUSEOVER 
STATE_DRAGGING 

Definition at line 27 of file GUIVerticalScrollbarInternalController.h.

Constructor & Destructor Documentation

◆ GUIVerticalScrollbarInternalController()

Private constructor.

Parameters
nodenode

Definition at line 25 of file GUIVerticalScrollbarInternalController.cpp.

Member Function Documentation

◆ dispose()

void dispose ( )
overridevirtual

Dispose controller.

Implements GUINodeController.

Definition at line 47 of file GUIVerticalScrollbarInternalController.cpp.

◆ getBarHeight()

float getBarHeight ( )
privatevirtual
Returns
bar height

Definition at line 61 of file GUIVerticalScrollbarInternalController.cpp.

◆ getBarTop()

float getBarTop ( )
privatevirtual
Returns
bar top

Definition at line 71 of file GUIVerticalScrollbarInternalController.cpp.

◆ getState()

Returns
state

Definition at line 56 of file GUIVerticalScrollbarInternalController.cpp.

◆ getValue()

const MutableString & getValue ( )
overridevirtual
Returns
value

Implements GUINodeController.

Definition at line 163 of file GUIVerticalScrollbarInternalController.cpp.

◆ handleKeyboardEvent()

void handleKeyboardEvent ( GUIKeyboardEvent event)
overridevirtual

Handle keyboard event.

Parameters
eventevent

Implements GUINodeController.

Definition at line 142 of file GUIVerticalScrollbarInternalController.cpp.

◆ handleMouseEvent()

void handleMouseEvent ( GUINode node,
GUIMouseEvent event 
)
overridevirtual

Handle mouse event.

Parameters
nodenode
eventevent

Implements GUINodeController.

Definition at line 96 of file GUIVerticalScrollbarInternalController.cpp.

◆ hasValue()

bool hasValue ( )
overridevirtual
Returns
has value

Implements GUINodeController.

Definition at line 158 of file GUIVerticalScrollbarInternalController.cpp.

◆ initialize()

void initialize ( )
overridevirtual

Initialize controller after element has been created.

Implements GUINodeController.

Definition at line 43 of file GUIVerticalScrollbarInternalController.cpp.

◆ isDisabled()

bool isDisabled ( )
overridevirtual
Returns
is disabled

Implements GUINodeController.

Definition at line 34 of file GUIVerticalScrollbarInternalController.cpp.

◆ onFocusGained()

void onFocusGained ( )
overridevirtual

On focus gained.

Implements GUINodeController.

Definition at line 150 of file GUIVerticalScrollbarInternalController.cpp.

◆ onFocusLost()

void onFocusLost ( )
overridevirtual

On focus lost.

Implements GUINodeController.

Definition at line 154 of file GUIVerticalScrollbarInternalController.cpp.

◆ onSubTreeChange()

void onSubTreeChange ( )
overridevirtual

On sub tree change.

Implements GUINodeController.

Definition at line 172 of file GUIVerticalScrollbarInternalController.cpp.

◆ postLayout()

void postLayout ( )
overridevirtual

Post layout event.

Implements GUINodeController.

Definition at line 51 of file GUIVerticalScrollbarInternalController.cpp.

◆ setDisabled()

void setDisabled ( bool  disabled)
overridevirtual

Set disabled.

Parameters
disableddisabled

Implements GUINodeController.

Definition at line 39 of file GUIVerticalScrollbarInternalController.cpp.

◆ setDraggedY()

void setDraggedY ( float  draggedY)
privatevirtual

Set dragged y.

Parameters
draggedYdragged y

Definition at line 83 of file GUIVerticalScrollbarInternalController.cpp.

◆ setValue()

void setValue ( const MutableString value)
overridevirtual

Set value.

Parameters
valuevalue

Implements GUINodeController.

Definition at line 168 of file GUIVerticalScrollbarInternalController.cpp.

◆ tick()

void tick ( )
overridevirtual

Tick method will be executed once per frame.

Implements GUINodeController.

Definition at line 146 of file GUIVerticalScrollbarInternalController.cpp.

Friends And Related Function Documentation

◆ GUIVerticalScrollbarInternalNode

friend class GUIVerticalScrollbarInternalNode
friend

Definition at line 25 of file GUIVerticalScrollbarInternalController.h.

Member Data Documentation

◆ contentHeight

float contentHeight
private

Definition at line 31 of file GUIVerticalScrollbarInternalController.h.

◆ contentNode

GUILayoutNode* contentNode { nullptr }
private

Definition at line 30 of file GUIVerticalScrollbarInternalController.h.

◆ mouseYOffset

int mouseYOffset
private

Definition at line 33 of file GUIVerticalScrollbarInternalController.h.

◆ state

State state
private

Definition at line 32 of file GUIVerticalScrollbarInternalController.h.

◆ value

MutableString value
private

Definition at line 34 of file GUIVerticalScrollbarInternalController.h.


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