MyGUI 3.4.1
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"
16
17namespace MyGUI
18{
19
22
24 public MemberObsolete<LayoutManager>
25 {
27 public:
29
30 void initialise();
31 void shutdown();
32
39 VectorWidgetPtr loadLayout(const std::string& _file, const std::string& _prefix = "", Widget* _parent = nullptr);
40
42 void unloadLayout(VectorWidgetPtr& _widgets);
43
45 ResourceLayout* getByName(const std::string& _name, bool _throw = true) const;
46
48 bool isExist(const std::string& _name) const;
49
58
67
68 const std::string& getCurrentLayout() const;
69
70 private:
71 void _load(xml::ElementPtr _node, const std::string& _file, Version _version);
72
73 private:
74 bool mIsInitialise;
75 std::string mCurrentLayoutName;
76 std::string mXmlLayoutTagName;
77 };
78
79} // namespace MyGUI
80
81#endif // MYGUI_LAYOUT_MANAGER_H_
#define MYGUI_EXPORT
#define MYGUI_SINGLETON_DECLARATION(ClassName)
EventHandle_AddUserStringDelegate eventAddUserString
EventHandle_CreateWidgetDelegate eventCreateWidget
widget description should be here.
Definition: MyGUI_Widget.h:37
delegates::CMultiDelegate3< Widget *, const std::string &, const std::string & > EventHandle_AddUserStringDelegate
delegates::CMultiDelegate2< Widget *, const WidgetInfo & > EventHandle_CreateWidgetDelegate
std::vector< Widget * > VectorWidgetPtr