#include <event.h>
Inheritance diagram for Event:


Public Member Functions | |
| Event (Event *) | |
| Event (const char *) | |
| Event (Camera *, const char *) | |
| void | assign_context (Camera *) |
| void | assign_mousepos (int, int) |
| void | assign_scenepos (double, double) |
| void | set_handler (BaseSceneNode *hb) |
| Camera * | get_context (void) |
| const char * | get_msg (void) |
| BaseSceneNode * | get_handler (void) |
| int | get_x (void) |
| int | get_y (void) |
| double | get_scenex (void) |
| double | get_sceney (void) |
| virtual bool | is_type (const char *) |
| Use this as follows: is_type( MouseMoveEvent::type ). | |
| virtual | ~Event () |
Protected Attributes | |
| Camera * | context |
| For input events, context is the camera to handle the event. | |
| const char * | msg |
| msg is the kind of event, never to be used directly. See is_type(). | |
| int | x |
| X and Y screen position of the mouse at event time. | |
| int | y |
| X and Y screen position of the mouse at event time. | |
| double | scenex |
| Translated scene coordinates. | |
| double | sceney |
| Translated scene coordinates. | |
| BaseSceneNode * | handled_by |
| handled_by is set by the node that accepted the event. | |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Use this as follows: is_type( MouseMoveEvent::type ).
Reimplemented in CameraEvent, CameraMovementEvent, MouseEvent, RepaintEvent, SceneChangedEvent, and WidgetEvent. |
|
|
For input events, context is the camera to handle the event.
|
|
|
msg is the kind of event, never to be used directly. See is_type().
|
|
|
X and Y screen position of the mouse at event time.
|
|
|
X and Y screen position of the mouse at event time.
|
|
|
Translated scene coordinates.
|
|
|
Translated scene coordinates.
|
|
|
handled_by is set by the node that accepted the event.
|
1.3.5