LMMS
Loading...
Searching...
No Matches
PuglTextEvent Struct Reference

#include <pugl.h>

Public Attributes

PuglEventType type
 PUGL_TEXT
PuglEventFlags flags
 Bitwise OR of PuglEventFlag values.
double time
 Time in seconds.
double x
 View-relative X coordinate.
double y
 View-relative Y coordinate.
double xRoot
 Root-relative X coordinate.
double yRoot
 Root-relative Y coordinate.
PuglMods state
 Bitwise OR of PuglMod flags.
uint32_t keycode
 Raw key code.
uint32_t character
 Unicode character code.
char string [8]
 UTF-8 string.

Detailed Description

Character input event.

This event represents text input, usually as the result of a key press. The text is given both as a Unicode character code and a UTF-8 string.

Note that this event is generated by the platform's input system, so there is not necessarily a direct correspondence between text events and physical key presses. For example, with some input methods a sequence of several key presses will generate a single character.

Member Data Documentation

◆ character

uint32_t PuglTextEvent::character

Unicode character code.

◆ flags

PuglEventFlags PuglTextEvent::flags

Bitwise OR of PuglEventFlag values.

◆ keycode

uint32_t PuglTextEvent::keycode

Raw key code.

◆ state

PuglMods PuglTextEvent::state

Bitwise OR of PuglMod flags.

◆ string

char PuglTextEvent::string[8]

UTF-8 string.

◆ time

double PuglTextEvent::time

Time in seconds.

◆ type

PuglEventType PuglTextEvent::type

◆ x

double PuglTextEvent::x

View-relative X coordinate.

◆ xRoot

double PuglTextEvent::xRoot

Root-relative X coordinate.

◆ y

double PuglTextEvent::y

View-relative Y coordinate.

◆ yRoot

double PuglTextEvent::yRoot

Root-relative Y coordinate.


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