MyGUI: MyGUI_ControllerManager.h Source File

MyGUI 3.4.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

MyGUI_ControllerManager.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_CONTROLLER_MANAGER_H_
8#define MYGUI_CONTROLLER_MANAGER_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_Singleton.h"
12#include "MyGUI_ControllerItem.h"
13#include "MyGUI_IUnlinkWidget.h"
14#include "MyGUI_WidgetDefines.h"
15#include "MyGUI_ActionController.h"
16
17namespace MyGUI
18{
19
20 class MYGUI_EXPORT ControllerManager :
21 public IUnlinkWidget
22 {
23 MYGUI_SINGLETON_DECLARATION(ControllerManager);
24 public:
25 ControllerManager();
26
27 void initialise();
28 void shutdown();
29
33 ControllerItem* createItem(const std::string& _type);
34
42 void addItem(Widget* _widget, ControllerItem* _item);
43
47 void removeItem(Widget* _widget);
48
49 const std::string& getCategoryName() const;
50
51 private:
52 void _unlinkWidget(Widget* _widget) override;
53 void frameEntered(float _time);
54 void clear();
55
56 private:
57 typedef std::pair<Widget*, ControllerItem*> PairControllerItem;
58 typedef std::list<PairControllerItem> ListControllerItem;
59 ListControllerItem mListItem;
60
61 bool mIsInitialise;
62 std::string mCategoryName;
63 };
64
65} // namespace MyGUI
66
67#endif // MYGUI_CONTROLLER_MANAGER_H_
MyGUI_ActionController.h
MyGUI_ControllerItem.h
MyGUI_IUnlinkWidget.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_Singleton.h
MYGUI_SINGLETON_DECLARATION
#define MYGUI_SINGLETON_DECLARATION(ClassName)
Definition MyGUI_Singleton.h:111
MyGUI_WidgetDefines.h
MyGUI::ControllerItem
Definition MyGUI_ControllerItem.h:27
MyGUI::ControllerManager
Definition MyGUI_ControllerManager.h:22
MyGUI::IUnlinkWidget
Definition MyGUI_IUnlinkWidget.h:17
MyGUI::Widget
widget description should be here.
Definition MyGUI_Widget.h:37
MyGUI
Definition MyGUI_ActionController.h:15