MWidgets::MouseEventHandler< T > Class Template Reference

Template class for creating specific to object event handler. More...

#include <eventhandler.h>

Inheritance diagram for MWidgets::MouseEventHandler< T >:

MWidgets::BaseEventHandler List of all members.

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.

Detailed Description

template<class T>
class MWidgets::MouseEventHandler< T >

Template class for creating specific to object event handler.

Definition at line 64 of file eventhandler.h.


Member Typedef Documentation

template<class T>
typedef void(T::*) MWidgets::MouseEventHandler< T >::MouseEventCallBack(Widget *sender, int x, int y, DWORD buttonMask)

Objects callback methods type.

Definition at line 68 of file eventhandler.h.


Constructor & Destructor Documentation

template<class T>
MWidgets::MouseEventHandler< T >::MouseEventHandler ( T *  parent,
MouseEventCallBack  callback 
) [inline]

Constructor.

Parameters:
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.


Member Function Documentation

template<class T>
void MWidgets::MouseEventHandler< T >::Call ( Widget sender,
int  x,
int  y,
DWORD  buttonMask 
) [inline, virtual]

Method call real handler.

Parameters:
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.


Member Data Documentation

template<class T>
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().

template<class T>
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().


The documentation for this class was generated from the following file:
Generated on Thu Oct 26 13:47:46 2006 for MWidgets by  doxygen 1.4.7