LMMS
Loading...
Searching...
No Matches
PuglEvent Union Reference

#include <pugl.h>

Public Attributes

PuglAnyEvent any
 Valid for all event types.
PuglEventType type
 Event type.
PuglButtonEvent button
 PUGL_BUTTON_PRESS, PUGL_BUTTON_RELEASE
PuglConfigureEvent configure
 PUGL_CONFIGURE
PuglExposeEvent expose
 PUGL_EXPOSE
PuglKeyEvent key
 PUGL_KEY_PRESS, PUGL_KEY_RELEASE
PuglTextEvent text
 PUGL_TEXT
PuglCrossingEvent crossing
 PUGL_POINTER_IN, PUGL_POINTER_OUT
PuglMotionEvent motion
 PUGL_MOTION
PuglScrollEvent scroll
 PUGL_SCROLL
PuglFocusEvent focus
 PUGL_FOCUS_IN, PUGL_FOCUS_OUT
PuglClientEvent client
 PUGL_CLIENT
PuglTimerEvent timer
 PUGL_TIMER
PuglDataOfferEvent offer
 PUGL_DATA_OFFER
PuglDataEvent data
 PUGL_DATA

Detailed Description

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.

Member Data Documentation

◆ any

PuglAnyEvent PuglEvent::any

Valid for all event types.

◆ button

◆ client

PuglClientEvent PuglEvent::client

◆ configure

PuglConfigureEvent PuglEvent::configure

◆ crossing

◆ data

PuglDataEvent PuglEvent::data

◆ expose

PuglExposeEvent PuglEvent::expose

◆ focus

◆ key

◆ motion

PuglMotionEvent PuglEvent::motion

◆ offer

◆ scroll

PuglScrollEvent PuglEvent::scroll

◆ text

PuglTextEvent PuglEvent::text

◆ timer

PuglTimerEvent PuglEvent::timer

◆ type

PuglEventType PuglEvent::type

Event type.


The documentation for this union was generated from the following file: