TDME2  1.9.200
AboutDialogScreenController.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
14 
15 using std::string;
16 
26 
27 /**
28  * About dialog screen controller
29  * @author Andreas Drewke
30  */
32  : public ScreenController
33  , public virtual GUIActionListener
34  , public virtual GUIFocusListener
35  , public virtual GUITooltipRequestListener
36 {
37 
38 private:
39  PopUps* popUps { nullptr };
40  GUIScreenNode* screenNode { nullptr };
41 
42 public:
43  // forbid class copy
45 
46  /**
47  * Public constructor
48  * @param popUps pop ups
49  */
51 
52  /**
53  * Destructor
54  */
56 
57  // overridden methods
58  GUIScreenNode* getScreenNode() override;
59  void initialize() override;
60  void dispose() override;
61  void onAction(GUIActionListenerType type, GUIElementNode* node) override;
62  void onFocus(GUIElementNode* node) override;
63  void onUnfocus(GUIElementNode* node) override;
64  void onTooltipShowRequest(GUINode* node, int mouseX, int mouseY) override;
65  void onTooltipCloseRequest() override;
66 
67  /**
68  * Shows the pop up
69  */
70  void show();
71  /**
72  * Closes the pop up
73  */
74  void close();
75 
76 };
GUI node base class.
Definition: GUINode.h:64
GUI screen node that represents a screen that can be rendered via GUI system.
Definition: GUIScreenNode.h:72
void onAction(GUIActionListenerType type, GUIElementNode *node) override
void onTooltipShowRequest(GUINode *node, int mouseX, int mouseY) override
On tooltip show request.
Pop ups controller accessor class.
Definition: PopUps.h:29
Mutable utf8 aware string class.
Definition: MutableString.h:23
GUI action listener interface.
GUI focus listener interface.
Screen controller, which connects GUI screen definition with code.
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6