MyGUI_LayoutData.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_LAYOUT_DATA_H_
#define MYGUI_LAYOUT_DATA_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_Common.h"
namespace MyGUI
{
struct MYGUI_EXPORT ControllerInfo
{
std::string type;
MapString properties;
};
struct MYGUI_EXPORT WidgetInfo
{
public:
WidgetInfo() :
align(Align::Default),
style(WidgetStyle::Child)
{
}
public:
std::vector<WidgetInfo> childWidgetsInfo;
// not map because there might be several properties with same name (for example List items)
VectorStringPairs properties;
MapString userStrings;
std::vector<ControllerInfo> controllers;
std::string type;
std::string skin;
Align align;
WidgetStyle style;
std::string name;
std::string layer;
enum PositionType
{
Pixels,
Relative,
None
};
PositionType positionType{None};
IntCoord intCoord;
FloatCoord floatCoord;
};
using VectorWidgetInfo = std::vector<WidgetInfo>;
} // namespace MyGUI
#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