Enum rin_window::events::Event[][src]

pub enum Event {
Show variants MousePressed { pos: Pnt2<f64>, button: MouseButton, mods: KeyModifiers, }, MouseReleased { pos: Pnt2<f64>, button: MouseButton, mods: KeyModifiers, }, MouseMoved { pos: Pnt2<f64>, }, Scroll { scroll: Vec2<f64>, }, KeyPressed { key: Key, mods: KeyModifiers, repeat: bool, }, KeyReleased { key: Key, }, Char { character: char, }, WindowMoved { pos: Pnt2<i32>, }, WindowResized { size: Vec2<i32>, }, WindowClosing, Dropped { paths: Vec<PathBuf>, }, Update { delta: f64, }, FocusLost, FocusGained,
}

window events

Variants

MousePressed
Show fields

Fields of MousePressed

pos: Pnt2<f64>button: MouseButtonmods: KeyModifiers
MouseReleased
Show fields

Fields of MouseReleased

pos: Pnt2<f64>button: MouseButtonmods: KeyModifiers
MouseMoved
Show fields

Fields of MouseMoved

pos: Pnt2<f64>
Scroll
Show fields

Fields of Scroll

scroll: Vec2<f64>
KeyPressed
Show fields

Fields of KeyPressed

key: Keymods: KeyModifiersrepeat: bool
KeyReleased
Show fields

Fields of KeyReleased

key: Key
Char
Show fields

Fields of Char

character: char
WindowMoved
Show fields

Fields of WindowMoved

pos: Pnt2<i32>
WindowResized
Show fields

Fields of WindowResized

size: Vec2<i32>
WindowClosing
Dropped
Show fields

Fields of Dropped

paths: Vec<PathBuf>
Update
Show fields

Fields of Update

delta: f64
FocusLost
FocusGained

Implementations

impl Event[src]

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

impl PartialEq<Event> for Event[src]

impl StructuralPartialEq for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]