Enum embedded_graphics_simulator::SimulatorEvent [−][src]
pub enum SimulatorEvent { KeyUp { keycode: Keycode, keymod: Mod, repeat: bool, }, KeyDown { keycode: Keycode, keymod: Mod, repeat: bool, }, MouseButtonUp { mouse_btn: MouseButton, point: Point, }, MouseButtonDown { mouse_btn: MouseButton, point: Point, }, MouseWheel { scroll_delta: Point, direction: MouseWheelDirection, }, MouseMove { point: Point, }, Quit, }
A derivation of sdl2::event::Event mapped to embedded-graphics coordinates
Variants
A keypress event, fired on keyUp
Show fields
A keypress event, fired on keyDown
Show fields
A mouse click event, fired on mouseUp
Show fields
Fields of MouseButtonUp
mouse_btn: MouseButton
The mouse button being released
point: Point
The location of the mouse in Simulator coordinates
A mouse click event, fired on mouseDown
Show fields
Fields of MouseButtonDown
mouse_btn: MouseButton
The mouse button being pressed
point: Point
The location of the mouse in Simulator coordinates
A mouse wheel event
Show fields
Fields of MouseWheel
scroll_delta: Point
The scroll wheel delta in the x and y direction
direction: MouseWheelDirection
The directionality of the scroll (normal or flipped)
Mouse move event
An exit event
Trait Implementations
impl Clone for SimulatorEvent
[src]
impl Clone for SimulatorEvent
[src]fn clone(&self) -> SimulatorEvent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SimulatorEvent
[src]
impl Copy for SimulatorEvent
[src]impl Eq for SimulatorEvent
[src]
impl Eq for SimulatorEvent
[src]impl PartialEq<SimulatorEvent> for SimulatorEvent
[src]
impl PartialEq<SimulatorEvent> for SimulatorEvent
[src]fn eq(&self, other: &SimulatorEvent) -> bool
[src]
fn ne(&self, other: &SimulatorEvent) -> bool
[src]
impl StructuralEq for SimulatorEvent
[src]
impl StructuralEq for SimulatorEvent
[src]impl StructuralPartialEq for SimulatorEvent
[src]
impl StructuralPartialEq for SimulatorEvent
[src]Auto Trait Implementations
impl RefUnwindSafe for SimulatorEvent
impl RefUnwindSafe for SimulatorEvent
impl Send for SimulatorEvent
impl Send for SimulatorEvent
impl Sync for SimulatorEvent
impl Sync for SimulatorEvent
impl Unpin for SimulatorEvent
impl Unpin for SimulatorEvent
impl UnwindSafe for SimulatorEvent
impl UnwindSafe for SimulatorEvent