MyGUI
3.2.1
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
mygui
MyGUIEngine
include
MyGUI_LayoutManager.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_LAYOUT_MANAGER_H__
8
#define __MYGUI_LAYOUT_MANAGER_H__
9
10
#include "
MyGUI_Prerequest.h
"
11
#include "
MyGUI_Singleton.h
"
12
#include "
MyGUI_XmlDocument.h
"
13
#include "
MyGUI_WidgetDefines.h
"
14
#include "
MyGUI_ResourceLayout.h
"
15
#include "
MyGUI_BackwardCompatibility.h
"
16
17
namespace
MyGUI
18
{
19
20
typedef
delegates::CMultiDelegate3<Widget*, const std::string&, const std::string&>
EventHandle_AddUserStringDelegate
;
21
22
class
MYGUI_EXPORT
LayoutManager
:
23
public
Singleton
<LayoutManager>,
24
public
MemberObsolete
<LayoutManager>
25
{
26
public
:
27
LayoutManager
();
28
29
void
initialise();
30
void
shutdown();
31
38
VectorWidgetPtr
loadLayout(
const
std::string& _file,
const
std::string& _prefix =
""
,
Widget
* _parent =
nullptr
);
39
41
void
unloadLayout(
VectorWidgetPtr
& _widgets);
42
44
ResourceLayout
* getByName(
const
std::string& _name,
bool
_throw =
true
)
const
;
45
47
bool
isExist(
const
std::string& _name)
const
;
48
56
EventHandle_AddUserStringDelegate
eventAddUserString
;
57
58
const
std::string& getCurrentLayout()
const
;
59
60
private
:
61
void
_load(
xml::ElementPtr
_node,
const
std::string& _file,
Version
_version);
62
63
private
:
64
bool
mIsInitialise;
65
std::string mCurrentLayoutName;
66
std::string mXmlLayoutTagName;
67
};
68
69
}
// namespace MyGUI
70
71
#endif // __MYGUI_LAYOUT_MANAGER_H__
Generated on Wed Aug 20 2014 00:03:32 for MyGUI by
1.8.3.1