MyGUI
3.4.3
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
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
17
namespace
MyGUI
18
{
19
20
class
MYGUI_EXPORT
ControllerManager
:
public
IUnlinkWidget
21
{
22
MYGUI_SINGLETON_DECLARATION
(
ControllerManager
);
23
24
public
:
25
ControllerManager
();
26
27
void
initialise
();
28
void
shutdown
();
29
33
ControllerItem
*
createItem
(std::string_view _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
using
PairControllerItem = std::pair<Widget*, ControllerItem*>;
58
using
ListControllerItem = std::list<PairControllerItem>;
59
ListControllerItem mListItem;
60
61
bool
mIsInitialise{
false
};
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:112
MyGUI_WidgetDefines.h
MyGUI::ControllerItem
Definition
MyGUI_ControllerItem.h:26
MyGUI::ControllerManager::createItem
ControllerItem * createItem(std::string_view _type)
Definition
MyGUI_ControllerManager.cpp:71
MyGUI::ControllerManager::shutdown
void shutdown()
Definition
MyGUI_ControllerManager.cpp:45
MyGUI::ControllerManager::getCategoryName
const std::string & getCategoryName() const
Definition
MyGUI_ControllerManager.cpp:142
MyGUI::ControllerManager::ControllerManager
ControllerManager(const ControllerManager &)=delete
MyGUI::ControllerManager::removeItem
void removeItem(Widget *_widget)
Definition
MyGUI_ControllerManager.cpp:102
MyGUI::ControllerManager::addItem
void addItem(Widget *_widget, ControllerItem *_item)
Definition
MyGUI_ControllerManager.cpp:77
MyGUI::ControllerManager::initialise
void initialise()
Definition
MyGUI_ControllerManager.cpp:29
MyGUI::IUnlinkWidget
Definition
MyGUI_IUnlinkWidget.h:17
MyGUI::Widget
widget description should be here.
Definition
MyGUI_Widget.h:40
MyGUI
Definition
MyGUI_ActionController.h:15
Generated by
1.13.2