Equalizer 1.0

eq::Event Struct Reference

Event structure to report window system and other events. More...

#include <event.h>

Inheritance diagram for eq::Event:
Collaboration diagram for eq::Event:

List of all members.

Public Member Functions

 Event ()
 Construct a new event.

Public Attributes

uint32_t type
 The event type.
uint32_t serial
 server-unique originator serial number
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.
}; 
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...

Detailed Description

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.

Version:
1.0

Definition at line 171 of file event.h.


Member Enumeration Documentation

The type of the event.

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

Definition at line 177 of file event.h.


Constructor & Destructor Documentation

eq::Event::Event ( )

Construct a new event.


Member Data Documentation

The last rendering context for the pointer position.

Definition at line 264 of file event.h.

The identifier of the entity emitting the event.

Definition at line 238 of file event.h.


The documentation for this struct was generated from the following file:
Generated on Sun May 8 2011 19:11:09 for Equalizer 1.0 by  doxygen 1.7.3