00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __MYGUI_CHILD_SKIN_INFO_H__
00024 #define __MYGUI_CHILD_SKIN_INFO_H__
00025
00026 #include "MyGUI_Prerequest.h"
00027 #include "MyGUI_WidgetStyle.h"
00028
00029 namespace MyGUI
00030 {
00031
00032 struct MYGUI_EXPORT ChildSkinInfo
00033 {
00034 ChildSkinInfo() : style(WidgetStyle::Child), align(Align::Default) { }
00035
00036 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) :
00037 type(_type),
00038 skin(_skin),
00039 name(_name),
00040 layer(_layer),
00041 style(_style),
00042 coord(_coord),
00043 align(_align)
00044 {
00045
00046 if (style == WidgetStyle::MAX) style = WidgetStyle::Child;
00047 }
00048
00049 void addParam(const std::string& _key, const std::string& _value)
00050 {
00051 params[_key] = _value;
00052 }
00053
00054 std::string findValue(const std::string& _key) const
00055 {
00056 MapString::const_iterator iter = params.find(_key);
00057 if (iter != params.end()) return iter->second;
00058 return "";
00059 }
00060
00061 std::string type, skin, name, layer;
00062 WidgetStyle style;
00063 IntCoord coord;
00064 Align align;
00065 MapString params;
00066 };
00067
00068 typedef std::vector<ChildSkinInfo> VectorChildSkinInfo;
00069
00070 }
00071
00072
00073 #endif // __MYGUI_CHILD_SKIN_INFO_H__