TDME2
1.9.200
src
tdme
tools
editor
tabviews
TabView.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
tdme/tdme.h
>
4
#include <
tdme/tools/editor/tabviews/fwd-tdme.h
>
5
6
#include <string>
7
#include <vector>
8
9
#include <
tdme/engine/fwd-tdme.h
>
10
#include <
tdme/gui/events/GUIInputEventHandler.h
>
11
#include <
tdme/tools/editor/tabcontrollers/TabController.h
>
12
#include <
tdme/utilities/MutableString.h
>
13
14
using
std::string;
15
using
std::vector;
16
17
using
tdme::engine::Engine
;
18
using
tdme::gui::events::GUIInputEventHandler
;
19
using
tdme::tools::editor::tabcontrollers::TabController
;
20
using
tdme::utilities::MutableString
;
21
22
/**
23
* Tab view interface
24
* @author Andreas Drewke
25
*/
26
struct
tdme::tools::editor::tabviews::TabView
:
public
GUIInputEventHandler
27
{
28
struct
OutlinerState
{
29
vector<string>
expandedOutlinerParentOptionValues
;
30
MutableString
value
;
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
*/
73
virtual
TabController
*
getTabController
() = 0;
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
};
GUIInputEventHandler.h
MutableString.h
TabController.h
tdme::engine::Engine
Engine main class.
Definition:
Engine.h:131
tdme::utilities::MutableString
Mutable utf8 aware string class.
Definition:
MutableString.h:23
fwd-tdme.h
tdme::gui::events::GUIInputEventHandler
GUI input event handler interface.
Definition:
GUIInputEventHandler.h:11
tdme::tools::editor::tabcontrollers::TabController
Tab controller, which connects UI with logic.
Definition:
TabController.h:34
tdme::tools::editor::tabviews::TabView::OutlinerState
Definition:
TabView.h:28
tdme::tools::editor::tabviews::TabView::OutlinerState::renderOffsetX
float renderOffsetX
Definition:
TabView.h:31
tdme::tools::editor::tabviews::TabView::OutlinerState::value
MutableString value
Definition:
TabView.h:30
tdme::tools::editor::tabviews::TabView::OutlinerState::expandedOutlinerParentOptionValues
vector< string > expandedOutlinerParentOptionValues
Definition:
TabView.h:29
tdme::tools::editor::tabviews::TabView::OutlinerState::renderOffsetY
float renderOffsetY
Definition:
TabView.h:32
tdme::tools::editor::tabviews::TabView
Tab view interface.
Definition:
TabView.h:27
tdme::tools::editor::tabviews::TabView::deactivate
virtual void deactivate()=0
Deactivate.
tdme::tools::editor::tabviews::TabView::hasFixedSize
virtual bool hasFixedSize()=0
If this viewport framebuffer has a fixed size.
tdme::tools::editor::tabviews::TabView::~TabView
virtual ~TabView()
Destructor.
Definition:
TabView.h:96
tdme::tools::editor::tabviews::TabView::activate
virtual void activate()=0
Activate.
tdme::tools::editor::tabviews::TabView::updateRendering
virtual void updateRendering()=0
Update rendering.
tdme::tools::editor::tabviews::TabView::getTabId
virtual const string & getTabId()=0
tdme::tools::editor::tabviews::TabView::display
virtual void display()=0
Renders the view.
tdme::tools::editor::tabviews::TabView::reloadOutliner
virtual void reloadOutliner()=0
Reload outliner.
tdme::tools::editor::tabviews::TabView::initialize
virtual void initialize()=0
Initiates the view.
tdme::tools::editor::tabviews::TabView::dispose
virtual void dispose()=0
Disposes the view.
tdme::tools::editor::tabviews::TabView::getEngine
virtual Engine * getEngine()=0
tdme::tools::editor::tabviews::TabView::getTabController
virtual TabController * getTabController()=0
tdme.h
fwd-tdme.h
Generated by
1.9.1