MyGUI: MyGUI_LayoutData.h Source File

MyGUI 3.4.3

MyGUI_LayoutData.h
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#ifndef MYGUI_LAYOUT_DATA_H_
8#define MYGUI_LAYOUT_DATA_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_Common.h"
12
13namespace MyGUI
14{
15
16 struct MYGUI_EXPORT ControllerInfo
17 {
18 std::string type;
19 MapString properties;
20 };
21
22 struct MYGUI_EXPORT WidgetInfo
23 {
24 public:
25 WidgetInfo() :
26 align(Align::Default),
27 style(WidgetStyle::Child)
28 {
29 }
30
31 public:
32 std::vector<WidgetInfo> childWidgetsInfo;
33 // not map because there might be several properties with same name (for example List items)
34 VectorStringPairs properties;
35 MapString userStrings;
36 std::vector<ControllerInfo> controllers;
37 std::string type;
38 std::string skin;
39 Align align;
40 WidgetStyle style;
41 std::string name;
42 std::string layer;
43
44 enum PositionType
45 {
46 Pixels,
47 Relative,
48 None
49 };
50 PositionType positionType{None};
51 IntCoord intCoord;
52 FloatCoord floatCoord;
53 };
54
55 using VectorWidgetInfo = std::vector<WidgetInfo>;
56
57} // namespace MyGUI
58
59#endif // MYGUI_LAYOUT_DATA_H_
MyGUI_Common.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::FloatCoord
types::TCoord< float > FloatCoord
Definition MyGUI_Types.h:37
MyGUI::MapString
std::map< std::string, std::string, std::less<> > MapString
Definition MyGUI_Types.h:40
MyGUI::VectorWidgetInfo
std::vector< WidgetInfo > VectorWidgetInfo
Definition MyGUI_LayoutData.h:55
MyGUI::VectorStringPairs
std::vector< PairString > VectorStringPairs
Definition MyGUI_Types.h:43
MyGUI::IntCoord
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36
MyGUI::Align
Definition MyGUI_Align.h:20
MyGUI::ControllerInfo
Definition MyGUI_LayoutData.h:17
MyGUI::ControllerInfo::type
std::string type
Definition MyGUI_LayoutData.h:18
MyGUI::ControllerInfo::properties
MapString properties
Definition MyGUI_LayoutData.h:19
MyGUI::WidgetInfo::layer
std::string layer
Definition MyGUI_LayoutData.h:42
MyGUI::WidgetInfo::floatCoord
FloatCoord floatCoord
Definition MyGUI_LayoutData.h:52
MyGUI::WidgetInfo::WidgetInfo
WidgetInfo()
Definition MyGUI_LayoutData.h:25
MyGUI::WidgetInfo::type
std::string type
Definition MyGUI_LayoutData.h:37
MyGUI::WidgetInfo::style
WidgetStyle style
Definition MyGUI_LayoutData.h:40
MyGUI::WidgetInfo::userStrings
MapString userStrings
Definition MyGUI_LayoutData.h:35
MyGUI::WidgetInfo::properties
VectorStringPairs properties
Definition MyGUI_LayoutData.h:34
MyGUI::WidgetInfo::name
std::string name
Definition MyGUI_LayoutData.h:41
MyGUI::WidgetInfo::intCoord
IntCoord intCoord
Definition MyGUI_LayoutData.h:51
MyGUI::WidgetInfo::positionType
PositionType positionType
Definition MyGUI_LayoutData.h:50
MyGUI::WidgetInfo::PositionType
PositionType
Definition MyGUI_LayoutData.h:45
MyGUI::WidgetInfo::Pixels
@ Pixels
Definition MyGUI_LayoutData.h:46
MyGUI::WidgetInfo::None
@ None
Definition MyGUI_LayoutData.h:48
MyGUI::WidgetInfo::Relative
@ Relative
Definition MyGUI_LayoutData.h:47
MyGUI::WidgetInfo::controllers
std::vector< ControllerInfo > controllers
Definition MyGUI_LayoutData.h:36
MyGUI::WidgetInfo::childWidgetsInfo
std::vector< WidgetInfo > childWidgetsInfo
Definition MyGUI_LayoutData.h:32
MyGUI::WidgetInfo::skin
std::string skin
Definition MyGUI_LayoutData.h:38
MyGUI::WidgetInfo::align
Align align
Definition MyGUI_LayoutData.h:39
MyGUI::WidgetStyle
Definition MyGUI_WidgetStyle.h:19