TDME2 1.9.121
GUIScrollAreaController.h
Go to the documentation of this file.
1#pragma once
2
3#include <tdme/tdme.h>
9
16
17/**
18 * GUI scroll area controller
19 * @author Andreas Drewke
20 * @version $Id$
21 */
23{
24 friend class GUIScrollArea;
25
26private:
29
30 /**
31 * Private constructor
32 * @param node node
33 */
35
36public:
37 // overridden methods
38 bool isDisabled() override;
39 void setDisabled(bool disabled) override;
40 void initialize() override;
41 void dispose() override;
42 void postLayout() override;
43 void handleMouseEvent(GUINode* node, GUIMouseEvent* event) override;
44 void handleKeyboardEvent(GUIKeyboardEvent* event) override;
45 void tick() override;
46 void onFocusGained() override;
47 void onFocusLost() override;
48 bool hasValue() override;
49 const MutableString& getValue() override;
50 void setValue(const MutableString& value) override;
51 void onSubTreeChange() override;
52
53};
void initialize() override
Initialize controller after element has been created.
void handleKeyboardEvent(GUIKeyboardEvent *event) override
Handle keyboard event.
void setValue(const MutableString &value) override
Set value.
void handleMouseEvent(GUINode *node, GUIMouseEvent *event) override
Handle mouse event.
GUIScrollAreaController(GUINode *node)
Private constructor.
void tick() override
Tick method will be executed once per frame.
void setDisabled(bool disabled) override
Set disabled.
void onSubTreeChange() override
On sub tree change.
GUI scroll area element.
Definition: GUIScrollArea.h:28
GUI node controller base class.
GUI node base class.
Definition: GUINode.h:63
Mutable string class.
Definition: MutableString.h:16
GUI action listener interface.