MyGUI
3.4.1
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
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
13
namespace
MyGUI
14
{
15
16
// вспомогательный класс для инициализации сабскинов
17
class
MYGUI_EXPORT
SubWidgetBinding
18
{
19
// для доступа к внутренним членам
20
friend
class
ResourceSkin
;
21
22
public
:
23
SubWidgetBinding
();
24
SubWidgetBinding
(
const
IntCoord
& _coord,
Align
_aligin,
const
std::string& _type);
25
26
void
create(
const
IntCoord
& _coord,
Align
_aligin,
const
std::string& _type);
27
28
void
clear();
29
30
void
add(
const
std::string& _name,
IStateInfo
* _data,
const
std::string& _skin);
31
32
private
:
33
IntCoord
mOffset;
34
Align
mAlign;
35
std::string mType;
36
MapStateInfo
mStates;
37
};
38
39
}
// namespace MyGUI
40
41
42
#endif
// MYGUI_SUB_WIDGET_BINDING_H_
MyGUI_ISubWidget.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition:
MyGUI_Platform.h:89
MyGUI_Prerequest.h
MyGUI::IStateInfo
Definition:
MyGUI_IStateInfo.h:18
MyGUI::ResourceSkin
Definition:
MyGUI_ResourceSkin.h:23
MyGUI::SubWidgetBinding
Definition:
MyGUI_SubWidgetBinding.h:18
MyGUI
Definition:
MyGUI_ActionController.h:15
MyGUI::MapStateInfo
std::map< std::string, IStateInfo * > MapStateInfo
Definition:
MyGUI_IStateInfo.h:23
MyGUI::Align
Definition:
MyGUI_Align.h:20
MyGUI::types::TCoord< int >
Generated by
1.9.4