MyGUI
3.4.3
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
src
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
(
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::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::style
WidgetStyle style
Definition
MyGUI_ChildSkinInfo.h:34
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
MyGUI::types::TCoord< int >
Generated by
1.12.0