C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
UiEvent Struct Reference

Structure representing an input event in the UI. More...

#include <ui_backend.h>

Collaboration diagram for UiEvent:
[legend]

Data Fields

bool alt
uint32_t ch
bool ctrl
UiKey key
UiMouseAction mouse_action
bool shift
int x
int y

Detailed Description

Structure representing an input event in the UI.

The UiEvent structure captures information about an input event that occurs in the UI. This includes key events, mouse events, and resize events. The structure contains fields for the key type (UiKey), the Unicode codepoint for character input, modifier keys (Alt, Ctrl, Shift), the position of the event (y, x), and the type of mouse action (UiMouseAction) if applicable. This comprehensive representation allows for detailed handling of user input events within the UI.

See also
UiKey
UiMouseAction

Definition at line 178 of file ui_backend.h.

Field Documentation

◆ alt

bool UiEvent::alt

Definition at line 181 of file ui_backend.h.

◆ ch

uint32_t UiEvent::ch

Definition at line 180 of file ui_backend.h.

Referenced by ui_get_event().

◆ ctrl

bool UiEvent::ctrl

Definition at line 182 of file ui_backend.h.

◆ key

UiKey UiEvent::key

Definition at line 179 of file ui_backend.h.

Referenced by ui_get_event().

◆ mouse_action

UiMouseAction UiEvent::mouse_action

Definition at line 186 of file ui_backend.h.

Referenced by ui_get_event().

◆ shift

bool UiEvent::shift

Definition at line 183 of file ui_backend.h.

◆ x

int UiEvent::x

Definition at line 185 of file ui_backend.h.

Referenced by ui_get_event().

◆ y

int UiEvent::y

Definition at line 184 of file ui_backend.h.

Referenced by ui_get_event().


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