MyGUI_SubWidgetBinding.h
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)
*/
#ifndef MYGUI_SUB_WIDGET_BINDING_H_
#define MYGUI_SUB_WIDGET_BINDING_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_ISubWidget.h"
namespace MyGUI
{
// вспомогательный класс для инициализации сабскинов
class MYGUI_EXPORT SubWidgetBinding
{
// для доступа к внутренним членам
friend class ResourceSkin;
public:
SubWidgetBinding();
SubWidgetBinding(const IntCoord& _coord, Align _aligin, std::string_view _type);
void create(const IntCoord& _coord, Align _aligin, std::string_view _type);
void clear();
void add(std::string_view _name, IStateInfo* _data, std::string_view _skin);
private:
IntCoord mOffset;
Align mAlign;
std::string mType;
MapStateInfo mStates;
};
} // namespace MyGUI
#endif // MYGUI_SUB_WIDGET_BINDING_H_
MyGUI_ISubWidget.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI::IStateInfo
Definition MyGUI_IStateInfo.h:17
MyGUI::SubWidgetBinding::clear
void clear()
Definition MyGUI_SubWidgetBinding.cpp:31
MyGUI::SubWidgetBinding::create
void create(const IntCoord &_coord, Align _aligin, std::string_view _type)
Definition MyGUI_SubWidgetBinding.cpp:23
MyGUI::SubWidgetBinding::SubWidgetBinding
SubWidgetBinding()
Definition MyGUI_SubWidgetBinding.cpp:13
MyGUI::SubWidgetBinding::add
void add(std::string_view _name, IStateInfo *_data, std::string_view _skin)
Definition MyGUI_SubWidgetBinding.cpp:38
MyGUI::SubWidgetBinding::ResourceSkin
friend class ResourceSkin
Definition MyGUI_SubWidgetBinding.h:20
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::IntCoord
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36
MyGUI::MapStateInfo
std::map< std::string, IStateInfo *, std::less<> > MapStateInfo
Definition MyGUI_IStateInfo.h:22
MyGUI::Align
Definition MyGUI_Align.h:20