MyGUI 3.2.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

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
13 namespace 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 positionType(None)
29 {
30 }
31
32 public:
33 std::vector<WidgetInfo> childWidgetsInfo;
34 // not map because there might be several properties with same name (for example List items)
35 VectorStringPairs properties;
36 MapString userStrings;
37 std::vector<ControllerInfo> controllers;
38 std::string type;
39 std::string skin;
40 Align align;
41 WidgetStyle style;
42 std::string name;
43 std::string layer;
44
45 enum PositionType { Pixels, Relative, None };
46 PositionType positionType;
47 IntCoord intCoord;
48 FloatCoord floatCoord;
49 };
50
51 typedef std::vector<WidgetInfo> VectorWidgetInfo;
52
53 } // namespace MyGUI
54
55 #endif // MYGUI_LAYOUT_DATA_H_
MyGUI::types::TCoord< int >
MyGUI::WidgetInfo::align
Align align
Definition: MyGUI_LayoutData.h:40
MyGUI::WidgetInfo::childWidgetsInfo
std::vector< WidgetInfo > childWidgetsInfo
Definition: MyGUI_LayoutData.h:33
MyGUI_Prerequest.h
MyGUI::WidgetInfo::positionType
PositionType positionType
Definition: MyGUI_LayoutData.h:46
MyGUI::WidgetInfo::style
WidgetStyle style
Definition: MyGUI_LayoutData.h:41
MyGUI::WidgetInfo::intCoord
IntCoord intCoord
Definition: MyGUI_LayoutData.h:47
MyGUI::WidgetInfo::Relative
Definition: MyGUI_LayoutData.h:45
MyGUI_Common.h
MyGUI::ControllerInfo
Definition: MyGUI_LayoutData.h:16
MyGUI::WidgetInfo::PositionType
PositionType
Definition: MyGUI_LayoutData.h:45
MyGUI
Definition: MyGUI_ActionController.h:14
MyGUI::WidgetInfo::skin
std::string skin
Definition: MyGUI_LayoutData.h:39
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:103
MyGUI::VectorStringPairs
std::vector< PairString > VectorStringPairs
Definition: MyGUI_Types.h:41
MyGUI::ControllerInfo::type
std::string type
Definition: MyGUI_LayoutData.h:18
MyGUI::MapString
std::map< std::string, std::string > MapString
Definition: MyGUI_Types.h:38
MyGUI::WidgetInfo
Definition: MyGUI_LayoutData.h:22
MyGUI::WidgetInfo::layer
std::string layer
Definition: MyGUI_LayoutData.h:43
MyGUI::WidgetInfo::WidgetInfo
WidgetInfo()
Definition: MyGUI_LayoutData.h:25
MyGUI::WidgetInfo::floatCoord
FloatCoord floatCoord
Definition: MyGUI_LayoutData.h:48
MyGUI::WidgetInfo::userStrings
MapString userStrings
Definition: MyGUI_LayoutData.h:36
MyGUI::WidgetStyle
Definition: MyGUI_WidgetStyle.h:16
MyGUI::WidgetInfo::type
std::string type
Definition: MyGUI_LayoutData.h:38
MyGUI::Align
Definition: MyGUI_Align.h:19
MyGUI::VectorWidgetInfo
std::vector< WidgetInfo > VectorWidgetInfo
Definition: MyGUI_LayoutData.h:51
MyGUI::WidgetInfo::controllers
std::vector< ControllerInfo > controllers
Definition: MyGUI_LayoutData.h:37
MyGUI::WidgetInfo::name
std::string name
Definition: MyGUI_LayoutData.h:42
MyGUI::ControllerInfo::properties
MapString properties
Definition: MyGUI_LayoutData.h:19
MyGUI::WidgetInfo::properties
VectorStringPairs properties
Definition: MyGUI_LayoutData.h:35