|
LMMS
|
#include <pugl.h>
View event.
This is a union of all event types. The type must be checked to determine which fields are safe to access. A pointer to PuglEvent can either be cast to the appropriate type, or the union members used.
The graphics system may only be accessed when handling certain events. The graphics context is active for PUGL_CREATE, PUGL_DESTROY, PUGL_CONFIGURE, and PUGL_EXPOSE, but only enabled for drawing for PUGL_EXPOSE.
| PuglAnyEvent PuglEvent::any |
Valid for all event types.
| PuglButtonEvent PuglEvent::button |
| PuglClientEvent PuglEvent::client |
| PuglConfigureEvent PuglEvent::configure |
| PuglCrossingEvent PuglEvent::crossing |
| PuglDataEvent PuglEvent::data |
| PuglExposeEvent PuglEvent::expose |
| PuglFocusEvent PuglEvent::focus |
| PuglKeyEvent PuglEvent::key |
| PuglMotionEvent PuglEvent::motion |
| PuglDataOfferEvent PuglEvent::offer |
| PuglScrollEvent PuglEvent::scroll |
| PuglTextEvent PuglEvent::text |
| PuglTimerEvent PuglEvent::timer |
| PuglEventType PuglEvent::type |
Event type.