MyGUI: MyGUI_ChildSkinInfo.cpp Source File

MyGUI 3.4.3

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
10namespace MyGUI
11{
12
13 ChildSkinInfo::ChildSkinInfo() :
14 style(WidgetStyle::Child),
15 align(Align::Default)
16 {
17 }
18
19 ChildSkinInfo::ChildSkinInfo(
20 std::string_view _type,
21 const WidgetStyle& _style,
22 std::string_view _skin,
23 const IntCoord& _coord,
24 const Align& _align,
25 std::string_view _layer,
26 std::string_view _name) :
27 type(_type),
28 skin(_skin),
29 name(_name),
30 layer(_layer),
31 style(_style),
32 coord(_coord),
33 align(_align)
34 {
35 // set Child style by default
36 if (style == WidgetStyle::MAX)
37 style = WidgetStyle::Child;
38 }
39
40 void ChildSkinInfo::addParam(std::string_view _key, std::string_view _value)
41 {
42 mapSet(params, _key, _value);
43 }
44
45} // namespace MyGUI
MyGUI_ChildSkinInfo.h
MyGUI_Precompiled.h
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::mapSet
void mapSet(Map &map, std::string_view key, const Value &value)
Definition MyGUI_Macros.h:36
MyGUI::IntCoord
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36
MyGUI::Align
Definition MyGUI_Align.h:20
MyGUI::ChildSkinInfo::params
MapString params
Definition MyGUI_ChildSkinInfo.h:37
MyGUI::ChildSkinInfo::ChildSkinInfo
ChildSkinInfo()
Definition MyGUI_ChildSkinInfo.cpp:13
MyGUI::ChildSkinInfo::addParam
void addParam(std::string_view _key, std::string_view _value)
Definition MyGUI_ChildSkinInfo.cpp:40
MyGUI::ChildSkinInfo::layer
std::string layer
Definition MyGUI_ChildSkinInfo.h:33
MyGUI::ChildSkinInfo::coord
IntCoord coord
Definition MyGUI_ChildSkinInfo.h:35
MyGUI::ChildSkinInfo::style
WidgetStyle style
Definition MyGUI_ChildSkinInfo.h:34
MyGUI::ChildSkinInfo::skin
std::string skin
Definition MyGUI_ChildSkinInfo.h:33
MyGUI::ChildSkinInfo::type
std::string type
Definition MyGUI_ChildSkinInfo.h:33
MyGUI::ChildSkinInfo::name
std::string name
Definition MyGUI_ChildSkinInfo.h:33
MyGUI::ChildSkinInfo::align
Align align
Definition MyGUI_ChildSkinInfo.h:36
MyGUI::WidgetStyle
Definition MyGUI_WidgetStyle.h:19
MyGUI::WidgetStyle::Child
@ Child
Definition MyGUI_WidgetStyle.h:22
MyGUI::WidgetStyle::MAX
@ MAX
Definition MyGUI_WidgetStyle.h:25