MyGUI 3.2.2

MyGUI_ChildSkinInfo.cpp
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 #include "MyGUI_Precompiled.h"
8 #include "MyGUI_ChildSkinInfo.h"
9
10 namespace MyGUI
11 {
12
13 ChildSkinInfo::ChildSkinInfo() :
14 style(WidgetStyle::Child),
15 align(Align::Default)
16 {
17 }
18
19 ChildSkinInfo::ChildSkinInfo(const std::string& _type, const WidgetStyle& _style, const std::string& _skin, const IntCoord& _coord, const Align& _align, const std::string& _layer, const std::string& _name) :
20 type(_type),
21 skin(_skin),
22 name(_name),
23 layer(_layer),
24 style(_style),
25 coord(_coord),
26 align(_align)
27 {
28 // set Child style by default
29 if (style == WidgetStyle::MAX)
30 style = WidgetStyle::Child;
31 }
32
33 void ChildSkinInfo::addParam(const std::string& _key, const std::string& _value)
34 {
35 params[_key] = _value;
36 }
37
38 } // namespace MyGUI
MyGUI::types::TCoord< int >
MyGUI::ChildSkinInfo::align
Align align
Definition: MyGUI_ChildSkinInfo.h:28
MyGUI_Precompiled.h
MyGUI::ChildSkinInfo::style
WidgetStyle style
Definition: MyGUI_ChildSkinInfo.h:26
MyGUI::ChildSkinInfo::skin
std::string skin
Definition: MyGUI_ChildSkinInfo.h:25
MyGUI::ChildSkinInfo::name
std::string name
Definition: MyGUI_ChildSkinInfo.h:25
MyGUI::ChildSkinInfo::coord
IntCoord coord
Definition: MyGUI_ChildSkinInfo.h:27
MyGUI::WidgetStyle::MAX
Definition: MyGUI_WidgetStyle.h:23
MyGUI::ChildSkinInfo::params
MapString params
Definition: MyGUI_ChildSkinInfo.h:29
MyGUI::ChildSkinInfo::type
std::string type
Definition: MyGUI_ChildSkinInfo.h:25
MyGUI
Definition: MyGUI_ActionController.h:14
MyGUI::WidgetStyle::Child
Definition: MyGUI_WidgetStyle.h:20
MyGUI_ChildSkinInfo.h
MyGUI::WidgetStyle
Definition: MyGUI_WidgetStyle.h:16
MyGUI::ChildSkinInfo::addParam
void addParam(const std::string &_key, const std::string &_value)
Definition: MyGUI_ChildSkinInfo.cpp:33
MyGUI::Align
Definition: MyGUI_Align.h:19
MyGUI::ChildSkinInfo::layer
std::string layer
Definition: MyGUI_ChildSkinInfo.h:25
MyGUI::ChildSkinInfo::ChildSkinInfo
ChildSkinInfo()
Definition: MyGUI_ChildSkinInfo.cpp:13