|
NXWidgets
1.19
|
#include <cwidgeteventargs.hxx>

Public Member Functions | |
| CWidgetEventArgs (CNxWidget *source, const nxgl_coord_t x, const nxgl_coord_t y, const nxgl_coord_t vX, const nxgl_coord_t vY, const nxwidget_char_t key) | |
| const nxgl_coord_t | getX (void) const |
| const nxgl_coord_t | getY (void) const |
| const nxgl_coord_t | getVX (void) const |
| const nxgl_coord_t | getVY (void) const |
| const nxwidget_char_t | getKey (void) const |
| const ECursorControl | getCursorControl (void) const |
Public Member Functions inherited from NXWidgets::TEventArgs< T > | |
| TEventArgs (const T &source) | |
| virtual | ~TEventArgs () |
| const T & | getSource (void) const |
Private Attributes | |
| nxgl_coord_t | m_x |
| nxgl_coord_t | m_y |
| nxgl_coord_t | m_vX |
| nxgl_coord_t | m_vY |
| nxwidget_char_t | m_key |
Event arguments passed to listeners when a CNxWidget object raises an event.
Definition at line 127 of file cwidgeteventargs.hxx.
|
inline |
Constructor.
| source | Pointer to the CNxWidget object that raised the event. |
| x | The x coordinate of the event. |
| y | The y coordinate of the event. |
| vX | The x distance of the event. |
| vY | The y distance of the event. |
| keyCode | The keycode of the event. |
Definition at line 149 of file cwidgeteventargs.hxx.
|
inline |
Get the cursor control that generated the event. Applies only to the cursor control event.
Definition at line 228 of file cwidgeteventargs.hxx.
|
inline |
Get the key press that generated the event. Applies only to the key press event.
Definition at line 216 of file cwidgeteventargs.hxx.
|
inline |
Get the x-axis mouse move distance of the mouse event. Applies only to the mouse drag event.
Definition at line 192 of file cwidgeteventargs.hxx.
|
inline |
Get the y-axis mouse move distance of the event. Applies only to the mouse drag event.
Definition at line 204 of file cwidgeteventargs.hxx.
|
inline |
Get the x coordinate of the mouse event. Applies only to the following events: mouse click, mouse double click, mouse drag, mouse release
Definition at line 168 of file cwidgeteventargs.hxx.
|
inline |
Get the y coordinate of the mouse event. Applies only to the following events: mouse click, mouse double click, mouse drag, mouse release
Definition at line 180 of file cwidgeteventargs.hxx.
|
private |
The key code / cursor code that raised the event.
Definition at line 134 of file cwidgeteventargs.hxx.
|
private |
X distance moved during event, for dragging.
Definition at line 132 of file cwidgeteventargs.hxx.
|
private |
Y distance moved during event, for dragging.
Definition at line 133 of file cwidgeteventargs.hxx.
|
private |
X coordinateinate of the event.
Definition at line 130 of file cwidgeteventargs.hxx.
|
private |
Y coordinateinate of the event.
Definition at line 131 of file cwidgeteventargs.hxx.
1.8.13