TDME2  1.9.200
GUISelectBoxParentOptionController.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <string>
5 
6 #include <tdme/tdme.h>
11 
12 using std::string;
13 
14 using std::unique_ptr;
15 
20 
21 /**
22  * GUI select box parent option controller
23  * @author Andreas Drewke
24  */
26 {
27  friend class GUISelectBoxController;
30 
31 private:
34 
35  GUIElementNode* arrowNode { nullptr };
36  bool expanded;
37  unique_ptr<GUIActionListener> arrowNodeActionListener;
38 
39  // forbid class copy
41 
42  /**
43  * Private constructor
44  * @param node node
45  */
47 
48  /**
49  * @return is expanded
50  */
51  bool isExpanded();
52 
53  /**
54  * Toggle expand state
55  */
56  void toggleExpandState();
57 
58 public:
59  // overridden methods
60  void initialize() override;
61  void dispose() override;
62 };
void initialize() override
Initialize controller after element has been created.
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
GUI action listener interface.
#define STATIC_DLL_IMPEXT
Definition: tdme.h:15
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6