Skip to main content

Module event

Module event 

Source
Expand description

Event system and winit conversion for agpu.

Provides a unified event type and translates keyboard, mouse, window, and text input events from winit into agpu’s own Event enum.

Structs§

DragDropEvent
A drag-and-drop event.
HitMap
A hit-test map that resolves positions to widget IDs.
KeyEvent
A keyboard event.
KeyModifiers
Key modifier flags.
MouseEvent
A mouse event.

Enums§

DragDropKind
The kind of drag-and-drop event.
DragPayload
Data carried during a drag-and-drop operation.
Event
A GUI event.
KeyCode
Key code.
KeyEventKind
The kind of key event.
MouseButton
Mouse button.
MouseEventKind
The kind of mouse event.

Functions§

convert_window_event
Convert a single winit WindowEvent into zero or more agpu events.