MyGUI 3.5.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_
#define MYGUI_EXPORT
types::TCoord< float > FloatCoord
Definition MyGUI_Types.h:36
std::map< std::string, std::string, std::less<> > MapString
Definition MyGUI_Types.h:39
std::vector< WidgetInfo > VectorWidgetInfo
std::vector< PairString > VectorStringPairs
Definition MyGUI_Types.h:42
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:35