TDME2 1.9.121
FontTabView.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include <tdme/tdme.h>
15
16using std::string;
17
26
27/**
28 * Font tab view
29 * @author Andreas Drewke
30 * @version $Id$
31 */
33 : public TabView
34{
35protected:
36 Engine* engine { nullptr };
37
38private:
39 EditorView* editorView { nullptr };
40 string tabId;
41 PopUps* popUps { nullptr };
44
45public:
46 /**
47 * Public constructor
48 * @param editorView editor view
49 * @param tabId tab id
50 * @param screenNode screenNode
51 */
52 FontTabView(EditorView* editorView, const string& tabId, GUIScreenNode* screenNode);
53
54 /**
55 * Destructor
56 */
58
59 /**
60 * @return editor view
61 */
63 return editorView;
64 }
65
66 /**
67 * @return associated tab controller
68 */
69 inline TabController* getTabController() override {
70 return fontTabController;
71 }
72
73 /**
74 * @return pop up views
75 */
76 inline PopUps* getPopUps() {
77 return popUps;
78 }
79
80 // overridden methods
81 void handleInputEvents() override;
82 void display() override;
83 inline const string& getTabId() override {
84 return tabId;
85 }
86 void initialize() override;
87 void dispose() override;
88 Engine* getEngine() override;
89 void activate() override;
90 void deactivate() override;
91 void reloadOutliner() override;
92 void updateRendering() override;
93 inline bool hasFixedSize() override{ return false; };
94
95};
Engine main class.
Definition: Engine.h:122
Frame buffer class.
Definition: FrameBuffer.h:21
GUI screen node that represents a screen that can be rendered via GUI system.
Definition: GUIScreenNode.h:57
Pop ups controller accessor class.
Definition: PopUps.h:19
void dispose() override
Disposes the view.
Definition: FontTabView.cpp:69
bool hasFixedSize() override
If this viewport framebuffer has a fixed size.
Definition: FontTabView.h:93
void display() override
Renders the view.
Definition: FontTabView.cpp:50
void reloadOutliner() override
Reload outliner.
Definition: FontTabView.cpp:92
TabController * getTabController() override
Definition: FontTabView.h:69
void initialize() override
Initiates the view.
Definition: FontTabView.cpp:56
void deactivate() override
Deactivate.
Definition: FontTabView.cpp:88
void handleInputEvents() override
Handle input events that have not yet been processed.
Definition: FontTabView.cpp:45
const string & getTabId() override
Definition: FontTabView.h:83
void updateRendering() override
Update rendering.
Definition: FontTabView.cpp:74
FontTabView(EditorView *editorView, const string &tabId, GUIScreenNode *screenNode)
Public constructor.
Definition: FontTabView.cpp:29
Tab controller, which connects UI with logic.
Definition: TabController.h:23