TDME2  1.9.200
TabController.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
13 
14 using std::string;
15 
23 
24 /**
25  * Tab controller, which connects UI with logic
26  * @author Andreas Drewke
27  */
29  public GUIActionListener,
30  public GUIChangeListener,
31  public GUIFocusListener,
34 {
36 
37  /**
38  * Destructor
39  */
40  virtual ~TabController() {}
41 
42  /**
43  * Init
44  */
45  virtual void initialize(GUIScreenNode* screenNode) = 0;
46 
47  /**
48  * Dispose
49  */
50  virtual void dispose() = 0;
51 
52  // ???
53  virtual GUIScreenNode* getScreenNode() = 0;
54 
55  /**
56  * On command
57  * @param command command
58  */
59  virtual void onCommand(TabControllerCommand command) = 0;
60 
61  /**
62  * On drop
63  * @param payload payload
64  * @param mouseX mouse X
65  * @param mouseY mouse Y
66  */
67  virtual void onDrop(const string& payload, int mouseX, int mouseY) = 0;
68 
69 };
GUI screen node that represents a screen that can be rendered via GUI system.
Definition: GUIScreenNode.h:72
GUI action listener interface.
GUI change listener interface.
GUI focus listener interface.
Tab controller, which connects UI with logic.
Definition: TabController.h:34
virtual void onDrop(const string &payload, int mouseX, int mouseY)=0
On drop.
virtual void initialize(GUIScreenNode *screenNode)=0
Init.
virtual void onCommand(TabControllerCommand command)=0
On command.