MyGUI::DelegateManager Class Reference

#include <MyGUI_DelegateManager.h>

Public Types

typedef delegates::CDelegate3
< WidgetPtr, const std::string
&, const std::string & > 
HandleEvent
typedef std::map< std::string,
HandleEvent
MapDelegate

Public Member Functions

void initialise ()
void shutdown ()
void addDelegate (const std::string &_key, HandleEvent::IDelegate *_delegate)
void removeDelegate (const std::string &_key)
void addDefaultDelegate (HandleEvent::IDelegate *_delegate)
void eventMouseLostFocus (MyGUI::WidgetPtr _sender, MyGUI::WidgetPtr _new)
void eventMouseSetFocus (MyGUI::WidgetPtr _sender, MyGUI::WidgetPtr _new)
void eventMouseDrag (MyGUI::WidgetPtr _sender, int _left, int _top)
void eventMouseMove (MyGUI::WidgetPtr _sender, int _left, int _top)
void eventMouseWheel (MyGUI::WidgetPtr _sender, int _rel)
void eventMouseButtonPressed (MyGUI::WidgetPtr _sender, int _left, int _top, MyGUI::MouseButton _id)
void eventMouseButtonReleased (MyGUI::WidgetPtr _sender, int _left, int _top, MyGUI::MouseButton _id)
void eventMouseButtonClick (MyGUI::WidgetPtr _sender)
void eventMouseButtonDoubleClick (MyGUI::WidgetPtr _sender)
**void eventToolTip (MyGUI::WidgetPtr _sender, const MyGUI::ToolTipInfo &_info)

Data Fields

signature: void method(MyGUI::WidgetPtr _sender
const std::string & _key
const std::string const
std::string & 
_value
*** signature: void method(MyGUI::WidgetPtr _sender
MyGUI::WidgetPtr_list
MyGUI::WidgetPtr size_t & _index
MapDelegate mDelegates
HandleEvent mDefaultDelegate

Detailed Description

Manager for handling delegates by names.

Definition at line 46 of file MyGUI_DelegateManager.h.


Member Typedef Documentation

typedef delegates::CDelegate3<WidgetPtr, const std::string&, const std::string&> MyGUI::DelegateManager::HandleEvent

Definition at line 50 of file MyGUI_DelegateManager.h.

typedef std::map<std::string, HandleEvent> MyGUI::DelegateManager::MapDelegate

Definition at line 51 of file MyGUI_DelegateManager.h.


Member Function Documentation

void MyGUI::DelegateManager::addDefaultDelegate ( HandleEvent::IDelegate _delegate  ) 

Add delegate that called by default if there's no delegate by called key

Note:
If there's no default delegate and was called event with uregistered key

Definition at line 73 of file MyGUI_DelegateManager.cpp.

void MyGUI::DelegateManager::addDelegate ( const std::string &  _key,
HandleEvent::IDelegate _delegate 
)

Definition at line 53 of file MyGUI_DelegateManager.cpp.

void MyGUI::DelegateManager::eventMouseButtonClick ( MyGUI::WidgetPtr  _sender  )  [inline]

Definition at line 84 of file MyGUI_DelegateManager.h.

void MyGUI::DelegateManager::eventMouseButtonDoubleClick ( MyGUI::WidgetPtr  _sender  )  [inline]

Definition at line 85 of file MyGUI_DelegateManager.h.

void MyGUI::DelegateManager::eventMouseButtonPressed ( MyGUI::WidgetPtr  _sender,
int  _left,
int  _top,
MyGUI::MouseButton  _id 
) [inline]

Definition at line 82 of file MyGUI_DelegateManager.h.

void MyGUI::DelegateManager::eventMouseButtonReleased ( MyGUI::WidgetPtr  _sender,
int  _left,
int  _top,
MyGUI::MouseButton  _id 
) [inline]

Definition at line 83 of file MyGUI_DelegateManager.h.

void MyGUI::DelegateManager::eventMouseDrag ( MyGUI::WidgetPtr  _sender,
int  _left,
int  _top 
) [inline]

Definition at line 79 of file MyGUI_DelegateManager.h.

void MyGUI::DelegateManager::eventMouseLostFocus ( MyGUI::WidgetPtr  _sender,
MyGUI::WidgetPtr  _new 
) [inline]

Definition at line 77 of file MyGUI_DelegateManager.h.

void MyGUI::DelegateManager::eventMouseMove ( MyGUI::WidgetPtr  _sender,
int  _left,
int  _top 
) [inline]

Definition at line 80 of file MyGUI_DelegateManager.h.

void MyGUI::DelegateManager::eventMouseSetFocus ( MyGUI::WidgetPtr  _sender,
MyGUI::WidgetPtr  _new 
) [inline]

Definition at line 78 of file MyGUI_DelegateManager.h.

void MyGUI::DelegateManager::eventMouseWheel ( MyGUI::WidgetPtr  _sender,
int  _rel 
) [inline]

Definition at line 81 of file MyGUI_DelegateManager.h.

* * void MyGUI::DelegateManager::eventToolTip ( MyGUI::WidgetPtr  _sender,
const MyGUI::ToolTipInfo _info 
) [inline]

Definition at line 158 of file MyGUI_DelegateManager.h.

void MyGUI::DelegateManager::initialise (  ) 

Definition at line 31 of file MyGUI_DelegateManager.cpp.

void MyGUI::DelegateManager::removeDelegate ( const std::string &  _key  ) 

Remove delegate

Definition at line 63 of file MyGUI_DelegateManager.cpp.

void MyGUI::DelegateManager::shutdown (  ) 

Definition at line 42 of file MyGUI_DelegateManager.cpp.


Field Documentation

Definition at line 135 of file MyGUI_DelegateManager.h.

const std::string& MyGUI::DelegateManager::_key

Definition at line 85 of file MyGUI_DelegateManager.h.

Definition at line 135 of file MyGUI_DelegateManager.h.

const std::string const std::string& MyGUI::DelegateManager::_value

Definition at line 85 of file MyGUI_DelegateManager.h.

Definition at line 161 of file MyGUI_DelegateManager.h.

Definition at line 158 of file MyGUI_DelegateManager.h.

Definition at line 135 of file MyGUI_DelegateManager.h.

Event : Widget lost keyboard focus.
signature : void method(MyGUI::WidgetPtr _sender, MyGUI::WidgetPtr _new)

Parameters:
_new widget with keyboard focus or nullptr Event : Widget got keyboard focus.
signature : void method(MyGUI::WidgetPtr _sender, MyGUI::WidgetPtr _old)
_old widget with keyboard focus or nullptr Event : Key pressed.
signature : void method(MyGUI::WidgetPtr _sender, MyGUI::KeyCode _key, MyGUI::Char _char)
_key code
_char of pressed symbol (for multilanguage applications) Event : Key released.
signature : void method(MyGUI::WidgetPtr _sender, MyGUI::KeyCode _key)
_key code Event : Root widget changed mouse focus.
info : this event sends only to root widget
signature : void method(MyGUI::WidgetPtr _sender, bool _focus);
_focus Is widget got mouse focus. Event : Root widget changed keyboard focus.
info : this event sends only to root widget
signature : void method(MyGUI::WidgetPtr _sender, bool _focus);
_focus Is widget got keyboard focus. Event : Extendeble event for special cases or plugins.
signature : void method(MyGUI::WidgetPtr _sender, const std::string& _key, const std::string& _value);

Definition at line 85 of file MyGUI_DelegateManager.h.


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

Generated on 5 Dec 2009 for MyGUI by  doxygen 1.6.1