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"
9
10namespace MyGUI
11{
12
14 style(WidgetStyle::Child),
15 align(Align::Default)
16 {
17 }
18
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
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
void mapSet(Map &map, std::string_view key, const Value &value)
void addParam(std::string_view _key, std::string_view _value)