TDME2  1.9.200
TabView.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <tdme/tdme.h>
5 
6 #include <string>
7 #include <vector>
8 
9 #include <tdme/engine/fwd-tdme.h>
13 
14 using std::string;
15 using std::vector;
16 
21 
22 /**
23  * Tab view interface
24  * @author Andreas Drewke
25  */
27 {
28  struct OutlinerState {
31  float renderOffsetX { 0.0f };
32  float renderOffsetY { 0.0f };
33  };
34 
35  /**
36  * @return tab id
37  */
38  virtual const string& getTabId() = 0;
39 
40  /**
41  * Initiates the view
42  */
43  virtual void initialize() = 0;
44 
45  /**
46  * Renders the view
47  */
48  virtual void display() = 0;
49 
50  /**
51  * Disposes the view
52  */
53  virtual void dispose() = 0;
54 
55  /**
56  * Activate
57  */
58  virtual void activate() = 0;
59 
60  /**
61  * Deactivate
62  */
63  virtual void deactivate() = 0;
64 
65  /**
66  * @return engine
67  */
68  virtual Engine* getEngine() = 0;
69 
70  /**
71  * @return associated tab controller
72  */
74 
75  /**
76  * Update rendering
77  * @deprecated This should be removed
78  */
79  virtual void updateRendering() = 0;
80 
81  /**
82  * Reload outliner
83  * @param newSelectionValue new selection value
84  *
85  */
86  virtual void reloadOutliner() = 0;
87 
88  /**
89  * If this viewport framebuffer has a fixed size
90  */
91  virtual bool hasFixedSize() = 0;
92 
93  /**
94  * Destructor
95  */
96  virtual ~TabView() {}
97 
98 };
Engine main class.
Definition: Engine.h:131
Mutable utf8 aware string class.
Definition: MutableString.h:23
GUI input event handler interface.
Tab controller, which connects UI with logic.
Definition: TabController.h:34
virtual void deactivate()=0
Deactivate.
virtual bool hasFixedSize()=0
If this viewport framebuffer has a fixed size.
virtual ~TabView()
Destructor.
Definition: TabView.h:96
virtual void activate()=0
Activate.
virtual void updateRendering()=0
Update rendering.
virtual const string & getTabId()=0
virtual void display()=0
Renders the view.
virtual void reloadOutliner()=0
Reload outliner.
virtual void initialize()=0
Initiates the view.
virtual void dispose()=0
Disposes the view.
virtual TabController * getTabController()=0