MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / Event

Enum Event

src/event.rs:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16#[derive(Clone, Debug)]
17pub enum Event {
18 KeyPress(KeyCode),
19 Click { x: f32, y: f32 },
20 MouseMove(Point),
21 TouchStart(Point),
22 TouchEnd(Point),
23}
24
25impl Event {
26 fn from_key_event(key: KeyEvent) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected