MyGUI  3.2.1
MyGUI_ChildSkinInfo.cpp
Go to the documentation of this file.
00001 /*
00002  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
00003  * Distributed under the MIT License
00004  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
00005  */
00006 
00007 #include "MyGUI_Precompiled.h"
00008 #include "MyGUI_ChildSkinInfo.h"
00009 
00010 namespace MyGUI
00011 {
00012 
00013     ChildSkinInfo::ChildSkinInfo() :
00014         style(WidgetStyle::Child),
00015         align(Align::Default)
00016     {
00017     }
00018 
00019     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) :
00020         type(_type),
00021         skin(_skin),
00022         name(_name),
00023         layer(_layer),
00024         style(_style),
00025         coord(_coord),
00026         align(_align)
00027     {
00028         // set Child style by default
00029         if (style == WidgetStyle::MAX)
00030             style = WidgetStyle::Child;
00031     }
00032 
00033     void ChildSkinInfo::addParam(const std::string& _key, const std::string& _value)
00034     {
00035         params[_key] = _value;
00036     }
00037 
00038 } // namespace MyGUI