TDME2 1.9.121
GUISelectorHOptionController.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
21
22/**
23 * GUI selector horizontal option controller
24 * @author Andreas Drewke
25 * @version $Id$
26 */
29{
30 friend class GUISelectorHOption;
32
33private:
38 bool hidden;
40
41 /**
42 * Private constructor
43 * @param node node
44 */
46
47 /**
48 * @return is selected
49 */
50 inline bool isSelected() {
51 return selected;
52 }
53
54 /**
55 * @return is hidden
56 */
57 inline bool isHidden() {
58 return hidden;
59 }
60
61 /**
62 * Select
63 */
64 void select();
65
66 /**
67 * Unselect
68 */
69 void unselect();
70
71public:
72 // overridden methods
73 void setDisabled(bool disabled) override;
74 void initialize() override;
75 void postLayout() override;
76 void dispose() override;
77 void handleMouseEvent(GUINode* node, GUIMouseEvent* event) override;
78 void handleKeyboardEvent(GUIKeyboardEvent* event) override;
79 void tick() override;
80 void onFocusGained() override;
81 void onFocusLost() override;
82 bool hasValue() override;
83 const MutableString& getValue() override;
84 void setValue(const MutableString& value) override;
85
86};
GUI selector horizontal controller.
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.
void tick() override
Tick method will be executed once per frame.
void setDisabled(bool disabled) override
Set disabled.
GUI selector horizontal option element.
GUI node controller base class.
GUI node base class.
Definition: GUINode.h:63
GUI parent node base class thats supporting child nodes.
Definition: GUIParentNode.h:43
Mutable string class.
Definition: MutableString.h:16
#define STATIC_DLL_IMPEXT
Definition: tdme.h:11