input/
event_id.rs

1//! Event identifiers.
2
3/// Event id for after render event.
4pub const AFTER_RENDER: EventId = EventId("piston/after_render");
5/// Event id for controller axis event.
6pub const CONTROLLER_AXIS: EventId = EventId("piston/controller_axis");
7/// Event id for cursor event.
8pub const CURSOR: EventId = EventId("piston/cursor");
9/// Event id for focus event.
10pub const FOCUS: EventId = EventId("piston/focus");
11/// Event id for close event.
12pub const CLOSE: EventId = EventId("piston/close");
13/// Event id for idle event.
14pub const IDLE: EventId = EventId("piston/idle");
15/// Event id for mouse scroll event.
16pub const MOUSE_SCROLL: EventId = EventId("piston/mouse_scroll");
17/// Event id for mouse relative event.
18pub const MOUSE_RELATIVE: EventId = EventId("piston/mouse_relative");
19/// Event id for mouse cursor event.
20pub const MOUSE_CURSOR: EventId = EventId("piston/mouse_cursor");
21/// Event id for button event.
22pub const BUTTON: EventId = EventId("piston/button");
23/// Event id for render event.
24pub const RENDER: EventId = EventId("piston/render");
25/// Event id for resize event.
26pub const RESIZE: EventId = EventId("piston/resize");
27/// Event id for text event.
28pub const TEXT: EventId = EventId("piston/text");
29/// Event id for touch event.
30pub const TOUCH: EventId = EventId("piston/touch");
31/// Event id for update event.
32pub const UPDATE: EventId = EventId("piston/update");
33/// Event id for file drag event.
34pub const FILE_DRAG: EventId = EventId("piston/file_drag");
35
36/// Used to identify events arguments provided by traits.
37///
38/// Use format `<api>/<event>` to avoid naming collision.
39#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
40pub struct EventId(pub &'static str);