Update Events

typedef PuglAnyEvent PuglUpdateEvent

View update event.

This is sent near the end of a main loop iteration when the view is potentially about to be redrawn. It can be used to mark regions for exposure with puglObscureView() or puglObscureRegion(). For example, to continuously animate, obscure the view whenever an update event is received, then receive and handle the expose event(s) shortly afterwards.

struct PuglExposeEvent

Expose event requiring a redraw.

This is sent when a region needs to be redrawn, with the graphics context entered and activated for drawing. The application must completely draw the given region.

PuglEventType type

PuglEventType.PUGL_EXPOSE

PuglEventFlags flags

Bitwise OR of PuglEventFlag values.

PuglCoord x

View-relative top-left X coordinate of region.

PuglCoord y

View-relative top-left Y coordinate of region.

PuglSpan width

Width of exposed region.

PuglSpan height

Height of exposed region.