TDME2 1.9.121
GUITabContentController.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include <tdme/tdme.h>
11
12using std::string;
13
20
21/**
22 * GUI tab content controller
23 * @author Andreas Drewke
24 * @version $Id$
25 */
27 : public GUINodeController
28{
29 friend class GUITabContent;
30 friend class GUITabsController;
31
32private:
38
39 /**
40 * Private constructor
41 * @param node node
42 */
44
45 /**
46 * @return is checked
47 */
48 bool isSelected();
49
50 /**
51 * Set checked
52 * @param selected selected
53 */
54 void setSelected(bool selected);
55
56public:
57 // overridden methods
58 bool isDisabled() override;
59 void setDisabled(bool disabled) override;
60 void initialize() override;
61 void dispose() override;
62 void postLayout() override;
63 void handleMouseEvent(GUINode* node, GUIMouseEvent* event) override;
64 void handleKeyboardEvent(GUIKeyboardEvent* event) override;
65 void tick() override;
66 void onFocusGained() override;
67 void onFocusLost() override;
68 bool hasValue() override;
69 const MutableString& getValue() override;
70 void setValue(const MutableString& value) override;
71 void onSubTreeChange() override;
72
73};
void initialize() override
Initialize controller after element has been created.
void handleKeyboardEvent(GUIKeyboardEvent *event) override
Handle keyboard event.
GUITabContentController(GUINode *node)
Private constructor.
void setValue(const MutableString &value) override
Set value.
void handleMouseEvent(GUINode *node, GUIMouseEvent *event) override
Handle mouse event.
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 tab content element.
Definition: GUITabContent.h:28
GUI node controller base class.
GUI node base class.
Definition: GUINode.h:63
Mutable string class.
Definition: MutableString.h:16