MyGUI  3.0.1
Public Types | Public Member Functions | Static Public Member Functions | Data Fields
MyGUI::ControllerItem Class Reference

#include <MyGUI_ControllerItem.h>

+ Inheritance diagram for MyGUI::ControllerItem:

Public Types

typedef RTTIBase Base
typedef ControllerItem RTTIBase
- Public Types inherited from MyGUI::IObject
typedef IObject RTTIBase

Public Member Functions

virtual const std::string & getTypeName () const
virtual bool isType (const std::type_info &_type) const
template<typename Type >
bool isType () const
virtual ~ControllerItem ()
virtual void prepareItem (Widget *_widget)=0
virtual bool addTime (Widget *_widget, float _time)=0
virtual void setProperty (const std::string &_key, const std::string &_value)
- Public Member Functions inherited from MyGUI::IObject
template<typename Type >
Type * castType (bool _throw=true)
template<typename Type >
const Type * castType (bool _throw=true) const
virtual ~IObject ()

Static Public Member Functions

static const std::string & getClassTypeName ()

Data Fields

delegates::CDelegate1< Widget * > eventPreAction
delegates::CDelegate1< Widget * > eventUpdateAction
delegates::CDelegate1< Widget * > eventPostAction

Detailed Description

Base interface for controllers

Definition at line 35 of file MyGUI_ControllerItem.h.

Member Typedef Documentation

Definition at line 38 of file MyGUI_ControllerItem.h.

Definition at line 38 of file MyGUI_ControllerItem.h.

Constructor & Destructor Documentation

virtual MyGUI::ControllerItem::~ControllerItem ( )
inlinevirtual

Definition at line 41 of file MyGUI_ControllerItem.h.

Member Function Documentation

virtual bool MyGUI::ControllerItem::addTime ( Widget _widget,
float  _time 
)
pure virtual
static const std::string& MyGUI::ControllerItem::getClassTypeName ( )
inlinestatic

Reimplemented from MyGUI::IObject.

Reimplemented in MyGUI::ControllerEdgeHide, MyGUI::ControllerPosition, and MyGUI::ControllerFadeAlpha.

Definition at line 38 of file MyGUI_ControllerItem.h.

virtual const std::string& MyGUI::ControllerItem::getTypeName ( ) const
inlinevirtual

Get type name as string

Reimplemented from MyGUI::IObject.

Reimplemented in MyGUI::ControllerEdgeHide, MyGUI::ControllerPosition, and MyGUI::ControllerFadeAlpha.

Definition at line 38 of file MyGUI_ControllerItem.h.

template<typename Type >
bool MyGUI::ControllerItem::isType ( ) const
inline

Compare with selected type

Reimplemented from MyGUI::IObject.

Reimplemented in MyGUI::ControllerEdgeHide, MyGUI::ControllerPosition, and MyGUI::ControllerFadeAlpha.

Definition at line 38 of file MyGUI_ControllerItem.h.

virtual bool MyGUI::ControllerItem::isType ( const std::type_info &  _type) const
inlinevirtual

Compare with selected type

Reimplemented from MyGUI::IObject.

Reimplemented in MyGUI::ControllerEdgeHide, MyGUI::ControllerPosition, and MyGUI::ControllerFadeAlpha.

Definition at line 38 of file MyGUI_ControllerItem.h.

virtual void MyGUI::ControllerItem::prepareItem ( Widget _widget)
pure virtual
virtual void MyGUI::ControllerItem::setProperty ( const std::string &  _key,
const std::string &  _value 
)
inlinevirtual

Field Documentation

delegates::CDelegate1<Widget*> MyGUI::ControllerItem::eventPostAction

Event : After controller finished working.
signature : void method(MyGUI::Widget* _sender)

Parameters
_senderwidget under control

Definition at line 67 of file MyGUI_ControllerItem.h.

delegates::CDelegate1<Widget*> MyGUI::ControllerItem::eventPreAction

Event : Before controller started working.
signature : void method(MyGUI::Widget* _sender)

Parameters
_senderwidget under control

Definition at line 53 of file MyGUI_ControllerItem.h.

delegates::CDelegate1<Widget*> MyGUI::ControllerItem::eventUpdateAction

Event : Controller updated (called every frame).
signature : void method(MyGUI::Widget* _sender)

Parameters
_senderwidget under control

Definition at line 60 of file MyGUI_ControllerItem.h.


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