#include <eventhandler.h>
Inheritance diagram for MWidgets::MouseEventHandler< T >:
Public Types | |
typedef void(T::*) | MouseEventCallBack (Widget *sender, int x, int y, DWORD buttonMask) |
Objects callback methods type. | |
Public Member Functions | |
MouseEventHandler (T *parent, MouseEventCallBack callback) | |
Constructor. | |
void | Call (Widget *sender, int x, int y, DWORD buttonMask) |
Method call real handler. | |
Protected Attributes | |
T * | m_pParent |
pointer to object. | |
MouseEventCallBack | m_pCallBack |
pointer to objects method. |
Definition at line 64 of file eventhandler.h.
typedef void(T::*) MWidgets::MouseEventHandler< T >::MouseEventCallBack(Widget *sender, int x, int y, DWORD buttonMask) |
MWidgets::MouseEventHandler< T >::MouseEventHandler | ( | T * | parent, | |
MouseEventCallBack | callback | |||
) | [inline] |
Constructor.
parent | pointer to object. | |
callback | pointer to objects method. |
Definition at line 77 of file eventhandler.h.
References MWidgets::MouseEventHandler< T >::m_pCallBack, and MWidgets::MouseEventHandler< T >::m_pParent.
void MWidgets::MouseEventHandler< T >::Call | ( | Widget * | sender, | |
int | x, | |||
int | y, | |||
DWORD | buttonMask | |||
) | [inline, virtual] |
Method call real handler.
sender | poiter to sender object. | |
x | x-coordinate of the cursor. | |
y | y-coordinate of the cursor. | |
buttonMask | Indicates whether various virtual keys are down,see WM_LBUTTONDOWN. |
Reimplemented from MWidgets::BaseEventHandler.
Definition at line 87 of file eventhandler.h.
References MWidgets::MouseEventHandler< T >::m_pCallBack, and MWidgets::MouseEventHandler< T >::m_pParent.
MouseEventCallBack MWidgets::MouseEventHandler< T >::m_pCallBack [protected] |
pointer to objects method.
Definition at line 72 of file eventhandler.h.
Referenced by MWidgets::MouseEventHandler< T >::Call(), and MWidgets::MouseEventHandler< T >::MouseEventHandler().
T* MWidgets::MouseEventHandler< T >::m_pParent [protected] |
pointer to object.
Definition at line 71 of file eventhandler.h.
Referenced by MWidgets::MouseEventHandler< T >::Call(), and MWidgets::MouseEventHandler< T >::MouseEventHandler().