MyGUI  3.2.0
Public Member Functions
MyGUI::ControllerManager Class Reference

#include <MyGUI_ControllerManager.h>

+ Inheritance diagram for MyGUI::ControllerManager:

Public Member Functions

 ControllerManager ()
void initialise ()
void shutdown ()
ControllerItemcreateItem (const std::string &_type)
void addItem (Widget *_widget, ControllerItem *_item)
void removeItem (Widget *_widget)

Detailed Description

Definition at line 35 of file MyGUI_ControllerManager.h.


Constructor & Destructor Documentation

Definition at line 38 of file MyGUI_ControllerManager.cpp.


Member Function Documentation

void MyGUI::ControllerManager::addItem ( Widget _widget,
ControllerItem _item 
)

Add controller over widget. If specified widget already have controller with same type previous controller removed.

Parameters:
_widgetto be controlled
_itemcontroller created through createItem(const std::string& _type)
Note:
_item will be deleted automatically at end of controller lifetime (if not removed by removeItem(Widget* _widget) before)

Definition at line 93 of file MyGUI_ControllerManager.cpp.

ControllerItem * MyGUI::ControllerManager::createItem ( const std::string &  _type)

Create controller.

Parameters:
_typeController type name. Should be on of internal controllers or registered by user.

Definition at line 87 of file MyGUI_ControllerManager.cpp.

Definition at line 43 of file MyGUI_ControllerManager.cpp.

Stop and remove all controllers over specified widget.

Parameters:
_widgetPointer to widget for removing control from.

Definition at line 120 of file MyGUI_ControllerManager.cpp.

Definition at line 60 of file MyGUI_ControllerManager.cpp.


The documentation for this class was generated from the following files: