Version | 0.2.0 |
---|
Event definitions.
All updates to the view happen via events, which are dispatched to the view's PuglEventFunc by Pugl. Most events map directly to one from the underlying window system, but some are constructed by Pugl itself so there is not necessarily a direct correspondence.
Typedefs | |
typedef uint32_t | PuglMods |
typedef uint32_t | PuglEventFlags |
Enumerations | |
enum | PuglMod |
enum | PuglKey |
enum | PuglEventType |
enum | PuglEventFlag |
enum | PuglCrossingMode |
typedef uint32_t PuglEventFlags |
Bitwise OR of PuglEventFlag values.
enum PuglMod |
enum PuglKey |
Keyboard key codepoints.
All keys are identified by a Unicode code point in PuglEventKey::key. This enumeration defines constants for special keys that do not have a standard code point, and some convenience constants for control characters. Note that all keys are handled in the same way, this enumeration is just for convenience when writing hard-coded key bindings.
Keys that do not have a standard code point use values in the Private Use Area in the Basic Multilingual Plane (U+E000
to U+F8FF
). Applications must take care to not interpret these values beyond key detection, the mapping used here is arbitrary and specific to Pugl.
enum PuglEventType |
The type of a PuglEvent.
enum PuglEventFlag |
enum PuglCrossingMode |
Reason for a PuglEventCrossing.
Enumerator | |
---|---|
PUGL_CROSSING_NORMAL | Crossing due to pointer motion. |
PUGL_CROSSING_GRAB | Crossing due to a grab. |
PUGL_CROSSING_UNGRAB | Crossing due to a grab release. |