[−][src]Struct guion::event::dyn_evt::DynEvent
Dynamic Event container. Supports all variants.
Fields
event: Box<dyn Variant<E>>
Trait Implementations
impl<E, K, D> Clone for DynEvent<E, K, D> where
E: Env,
E::Backend: Backend<E, Event = Self>,
D: Destination,
K: Key,
[src]
E: Env,
E::Backend: Backend<E, Event = Self>,
D: Destination,
K: Key,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E, K, D> Event<E> for DynEvent<E, K, D> where
E: Env,
E::Backend: Backend<E, Event = Self>,
D: Destination,
K: Key,
[src]
E: Env,
E::Backend: Backend<E, Event = Self>,
D: Destination,
K: Key,
type Dest = D
type Key = K
fn filter(self, bounds: &Bounds) -> Option<Self>
[src]
fn consuming(&self) -> bool
[src]
fn destination(&self) -> Self::Dest
[src]
fn position(&self) -> Option<Offset>
[src]
fn _root_only(&self) -> bool
[src]
fn filter_cloned(&self, bounds: &Bounds) -> Option<Self>
[src]
fn from<V: Variant<E>>(v: V) -> Self where
Self: VariantSupport<V, E>,
[src]
Self: VariantSupport<V, E>,
fn is<V: Variant<E>>(&self) -> Option<V> where
Self: VariantSupport<V, E>,
[src]
Self: VariantSupport<V, E>,
impl<V, E, K, D> VariantSupport<V, E> for DynEvent<E, K, D> where
V: Variant<E>,
E: Env,
E::Backend: Backend<E, Event = Self>,
D: Destination,
K: Key,
[src]
V: Variant<E>,
E: Env,
E::Backend: Backend<E, Event = Self>,
D: Destination,
K: Key,
fn from_variant(v: V) -> Self
[src]
fn to_variant(&self) -> Option<V>
[src]
Auto Trait Implementations
impl<E, K, D> !RefUnwindSafe for DynEvent<E, K, D>
impl<E, K, D> !Send for DynEvent<E, K, D>
impl<E, K, D> !Sync for DynEvent<E, K, D>
impl<E, K, D> Unpin for DynEvent<E, K, D> where
D: Unpin,
K: Unpin,
D: Unpin,
K: Unpin,
impl<E, K, D> !UnwindSafe for DynEvent<E, K, D>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<E, T> StdVarSup<E> for T where
E: Env,
T: VariantSupport<KbdDown<E>, E> + VariantSupport<KbdUp<E>, E> + VariantSupport<KbdPress<E>, E> + VariantSupport<MouseDown<E>, E> + VariantSupport<MouseUp<E>, E> + VariantSupport<MouseMove, E> + VariantSupport<MouseEnter, E> + VariantSupport<MouseLeave, E> + VariantSupport<WindowMove, E> + VariantSupport<WindowResize, E> + VariantSupport<Focus, E> + VariantSupport<Unfocus, E> + VariantSupport<RootEvent<E>, E>,
<E as Env>::Backend: Backend<E>,
<<E as Env>::Backend as Backend<E>>::Event == T,
[src]
E: Env,
T: VariantSupport<KbdDown<E>, E> + VariantSupport<KbdUp<E>, E> + VariantSupport<KbdPress<E>, E> + VariantSupport<MouseDown<E>, E> + VariantSupport<MouseUp<E>, E> + VariantSupport<MouseMove, E> + VariantSupport<MouseEnter, E> + VariantSupport<MouseLeave, E> + VariantSupport<WindowMove, E> + VariantSupport<WindowResize, E> + VariantSupport<Focus, E> + VariantSupport<Unfocus, E> + VariantSupport<RootEvent<E>, E>,
<E as Env>::Backend: Backend<E>,
<<E as Env>::Backend as Backend<E>>::Event == T,
fn is_kbd_down(&self) -> Option<KbdDown<E>>
[src]
fn is_kbd_press(&self) -> Option<KbdPress<E>>
[src]
fn is_kbd_up(&self) -> Option<KbdUp<E>>
[src]
fn is_mouse_down(&self) -> Option<MouseDown<E>>
[src]
fn is_mouse_up(&self) -> Option<MouseUp<E>>
[src]
fn is_mouse_move(&self) -> Option<MouseMove>
[src]
fn is_mouse_enter(&self) -> Option<MouseEnter>
[src]
fn is_mouse_leave(&self) -> Option<MouseLeave>
[src]
fn is_window_move(&self) -> Option<WindowMove>
[src]
fn is_window_reset(&self) -> Option<WindowResize>
[src]
fn is_focus(&self) -> Option<Focus>
[src]
fn is_unfocus(&self) -> Option<Unfocus>
[src]
fn is_hover_update(&self) -> bool
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,