#include <eventhandler.h>
Inheritance diagram for MWidgets::EventHandler< T >:
Public Types | |
typedef void(T::*) | EventCallBack (Widget *sender) |
Objects callback methods type. | |
Public Member Functions | |
EventHandler (T *parent, EventCallBack callback) | |
Constructor. | |
void | Call (Widget *sender) |
Method call real handler. | |
Protected Attributes | |
T * | m_pParent |
pointer to object. | |
EventCallBack | m_pCallBack |
pointer to objects method. |
Definition at line 38 of file eventhandler.h.
typedef void(T::*) MWidgets::EventHandler< T >::EventCallBack(Widget *sender) |
MWidgets::EventHandler< T >::EventHandler | ( | T * | parent, | |
EventCallBack | callback | |||
) | [inline] |
Constructor.
parent | pointer to object. | |
callback | pointer to objects method. |
Definition at line 50 of file eventhandler.h.
References MWidgets::EventHandler< T >::m_pCallBack, and MWidgets::EventHandler< T >::m_pParent.
void MWidgets::EventHandler< T >::Call | ( | Widget * | sender | ) | [inline, virtual] |
Method call real handler.
sender | poiter to sender object. |
Reimplemented from MWidgets::BaseEventHandler.
Definition at line 57 of file eventhandler.h.
References MWidgets::EventHandler< T >::m_pCallBack, and MWidgets::EventHandler< T >::m_pParent.
EventCallBack MWidgets::EventHandler< T >::m_pCallBack [protected] |
pointer to objects method.
Definition at line 45 of file eventhandler.h.
Referenced by MWidgets::EventHandler< T >::Call(), and MWidgets::EventHandler< T >::EventHandler().
T* MWidgets::EventHandler< T >::m_pParent [protected] |
pointer to object.
Definition at line 44 of file eventhandler.h.
Referenced by MWidgets::EventHandler< T >::Call(), and MWidgets::EventHandler< T >::EventHandler().