TDME2  1.9.200
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GUISelectorHOptionController.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
11 
12 using std::string;
13 
21 
22 /**
23  * GUI selector horizontal option controller
24  * @author Andreas Drewke
25  */
27  : public GUIElementController
28 {
29  friend class GUISelectorHOption;
30  friend class GUISelectorHController;
31 
32 private:
36  bool selected;
37  bool hidden;
39 
40  // forbid class copy
42 
43  /**
44  * Private constructor
45  * @param node node
46  */
48 
49  /**
50  * @return is selected
51  */
52  inline bool isSelected() {
53  return selected;
54  }
55 
56  /**
57  * @return is hidden
58  */
59  inline bool isHidden() {
60  return hidden;
61  }
62 
63  /**
64  * Select
65  */
66  void select();
67 
68  /**
69  * Unselect
70  */
71  void unselect();
72 
73 public:
74  // overridden methods
75  void setDisabled(bool disabled) override;
76  void initialize() override;
77  void postLayout() override;
78  void dispose() override;
79  void handleMouseEvent(GUINode* node, GUIMouseEvent* event) override;
80  void handleKeyboardEvent(GUIKeyboardEvent* event) override;
81  void tick() override;
82  void onFocusGained() override;
83  void onFocusLost() override;
84  bool hasValue() override;
85  const MutableString& getValue() override;
86  void setValue(const MutableString& value) override;
87 
88 };
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:64
GUI parent node base class thats supporting child nodes.
Definition: GUIParentNode.h:42
Mutable utf8 aware string class.
Definition: MutableString.h:23
#define STATIC_DLL_IMPEXT
Definition: tdme.h:15
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6