Equalizer
1.2.1
|
Event structure to report window system and other events. More...
#include <event.h>
Public Member Functions | |
Event () | |
Construct a new event. | |
Public Attributes | |
uint32_t | type |
The event type. | |
uint32_t | serial |
server-unique originator serial number | |
int64_t | time |
The config time when the event was created. | |
uint128_t | originator |
The identifier of the entity emitting the event. | |
union { | |
ResizeEvent resize | |
Resize event data. | |
ResizeEvent show | |
Window show event data. | |
ResizeEvent hide | |
Window hide event data. | |
PointerEvent pointer | |
Pointer event data. | |
PointerEvent pointerMotion | |
Pointer motion data. | |
PointerEvent pointerButtonPress | |
Mouse button press data. | |
PointerEvent pointerButtonRelease | |
Mouse button release data. | |
PointerEvent pointerWheel | |
Mouse wheel motion data. | |
KeyEvent key | |
Key event data. | |
KeyEvent keyPress | |
Key press event data. | |
KeyEvent keyRelease | |
Key release event data. | |
Statistic statistic | |
Statistic event. | |
MagellanEvent magellan | |
SpaceMouse data. | |
UserEvent user | |
User-defined event data. | |
}; | |
Data for the event corresponding to the event type. | |
RenderContext | context |
The last rendering context for the pointer position. | |
Public Types | |
enum | Type { WINDOW_EXPOSE = 0, WINDOW_RESIZE, WINDOW_CLOSE, WINDOW_HIDE, WINDOW_SHOW, WINDOW_SCREENSAVER, CHANNEL_POINTER_MOTION, CHANNEL_POINTER_BUTTON_PRESS, CHANNEL_POINTER_BUTTON_RELEASE, WINDOW_POINTER_WHEEL, WINDOW_POINTER_MOTION, WINDOW_POINTER_BUTTON_PRESS, WINDOW_POINTER_BUTTON_RELEASE, KEY_PRESS, KEY_RELEASE, CHANNEL_RESIZE, STATISTIC, VIEW_RESIZE, EXIT, MAGELLAN_AXIS, MAGELLAN_BUTTON, UNKNOWN, USER = UNKNOWN + 5, ALL } |
The type of the event. More... |
Event structure to report window system and other events.
Depending on the Event::Type, the corresponding specific event data is filled into the anonymous union. The originator typically contains the co::Object identifier of the entity emitting the event. The rendering context is only set for pointer events.
enum eq::Event::Type |
The type of the event.
WINDOW_EXPOSE |
A window is dirty. |
WINDOW_RESIZE |
Window resize data in resize. |
WINDOW_CLOSE |
A window has been closed. |
WINDOW_HIDE |
A window is hidden. |
WINDOW_SHOW |
A window is shown. |
WINDOW_SCREENSAVER |
A window screensaver request (Win32 only) Channel pointer movement data in pointerMotion |
CHANNEL_POINTER_BUTTON_PRESS |
Channel pointer button press data in pointerButtonPress. |
CHANNEL_POINTER_BUTTON_RELEASE |
Channel pointer button release data in pointerButtonRelease. Window pointer Mouse wheel data in wheel |
WINDOW_POINTER_WHEEL |
Window pointer movement data in pointerMotion. |
WINDOW_POINTER_BUTTON_PRESS |
Window pointer button press data in pointerButtonPress. |
WINDOW_POINTER_BUTTON_RELEASE |
Window pointer button release data in pointerButtonRelease. |
KEY_PRESS |
Key press data in keyPress. |
KEY_RELEASE |
Key release data in keyRelease. |
CHANNEL_RESIZE |
Channel resize data in resize. |
STATISTIC |
Statistic event in statistic. |
VIEW_RESIZE |
View resize data in resize. |
EXIT |
Exit request due to runtime error. |
MAGELLAN_AXIS |
SpaceMouse movement data in magellan. |
MAGELLAN_BUTTON |
SpaceMouse button data in magellan. |
UNKNOWN |
Event type not known by the event handler. |
USER |
User-defined events have to be of this type or higher. |
eq::Event::Event | ( | ) |
Construct a new event.
union { ... } |
Data for the event corresponding to the event type.
RenderContext eq::Event::context |
The last rendering context for the pointer position.
Definition at line 267 of file event.h.
Referenced by osgScaleViewer::Config::handleEvent().
The identifier of the entity emitting the event.
Definition at line 241 of file event.h.
Referenced by eqPly::Channel::frameViewFinish().
int64_t eq::Event::time |