MyGUI_ChildSkinInfo.cpp
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)
*/
#include "MyGUI_Precompiled.h"
#include "MyGUI_ChildSkinInfo.h"
namespace MyGUI
{
ChildSkinInfo::ChildSkinInfo() :
style(WidgetStyle::Child),
align(Align::Default)
{
}
ChildSkinInfo::ChildSkinInfo(
std::string_view _type,
const WidgetStyle& _style,
std::string_view _skin,
const IntCoord& _coord,
const Align& _align,
std::string_view _layer,
std::string_view _name) :
type(_type),
skin(_skin),
name(_name),
layer(_layer),
style(_style),
coord(_coord),
align(_align)
{
// set Child style by default
if (style == WidgetStyle::MAX)
style = WidgetStyle::Child;
}
void ChildSkinInfo::addParam(std::string_view _key, std::string_view _value)
{
mapSet(params, _key, _value);
}
} // 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