MyGUI
3.2.1
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
mygui
MyGUIEngine
include
MyGUI_ResourceLayout.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_RESOURCE_LAYOUT_H__
8
#define __MYGUI_RESOURCE_LAYOUT_H__
9
10
#include "
MyGUI_Prerequest.h
"
11
#include "
MyGUI_IResource.h
"
12
#include "
MyGUI_LayoutData.h
"
13
14
namespace
MyGUI
15
{
16
18
class
MYGUI_EXPORT
ResourceLayout
:
19
public
IResource
20
{
21
MYGUI_RTTI_DERIVED
(
ResourceLayout
)
22
23
public:
24
ResourceLayout
();
25
26
ResourceLayout(xml::
ElementPtr
_node, const std::
string
& _file);
27
28
virtual
void
deserialization(xml::
ElementPtr
_node,
Version
_version);
29
30
const
VectorWidgetInfo
& getLayoutData() const;
31
33
VectorWidgetPtr
createLayout(const std::
string
& _prefix = "",
Widget
* _parent =
nullptr
);
34
35
// widget info -> Widget
36
Widget
* createWidget(const
WidgetInfo
& _widgetInfo, const std::
string
& _prefix = "",
Widget
* _parent =
nullptr
,
bool
_template = false);
37
38
protected:
39
// xml -> widget info
40
WidgetInfo
parseWidget(xml::ElementEnumerator& _widget);
41
42
protected:
43
VectorWidgetInfo
mLayoutData;
44
};
45
46
}
// namespace MyGUI
47
48
#endif // __MYGUI_RESOURCE_LAYOUT_H__
Generated on Wed Aug 20 2014 00:03:33 for MyGUI by
1.8.3.1