MyGUI 3.5.3
MyGUI_SubWidgetBinding.h
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#ifndef MYGUI_SUB_WIDGET_BINDING_H_
8#define MYGUI_SUB_WIDGET_BINDING_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_ISubWidget.h"
12
13namespace MyGUI
14{
15
16 // Helper class
17 class MYGUI_EXPORT SubWidgetBinding
18 {
19 friend class ResourceSkin;
20
21 public:
22 SubWidgetBinding();
23 SubWidgetBinding(const IntCoord& _coord, Align _aligin, std::string_view _type);
24
25 void create(const IntCoord& _coord, Align _aligin, std::string_view _type);
26
27 void clear();
28
29 void add(std::string_view _name, IStateInfo* _data, std::string_view _skin);
30
31 private:
32 IntCoord mOffset;
33 Align mAlign;
34 std::string mType;
35 MapStateInfo mStates;
36 };
37
38} // namespace MyGUI
39
40
41#endif // MYGUI_SUB_WIDGET_BINDING_H_
#define MYGUI_EXPORT
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:35
std::map< std::string, IStateInfo *, std::less<> > MapStateInfo