[][src]Struct guion::handler::standard::StdHandler

pub struct StdHandler<S, E> where
    S: Handler<E>,
    E: Env,
    E::Context: AsRefMut<Self>,
    EEvent<E>: StdVarSup<E>, 
{ pub sup: S, pub s: StdState<E>, // some fields omitted }

Fields

sup: Ss: StdState<E>

Methods

impl<S, E> StdHandler<S, E> where
    S: Handler<E>,
    E: Env,
    E::Context: AsRefMut<Self>,
    EEvent<E>: StdVarSup<E>, 
[src]

pub fn new(sup: S) -> Self[src]

pub fn unfocus(
    ctx: &mut E::Context,
    root: &E::Storage,
    root_bounds: &Bounds,
    ts: u64
)
[src]

pub fn focus(l: Link<E>, ts: u64, root_bounds: &Bounds, widget_bounds: &Bounds)[src]

Trait Implementations

impl<S, E> Handler<E> for StdHandler<S, E> where
    S: Handler<E>,
    E: Env,
    E::Context: AsRefMut<Self> + 'static,
    EEvent<E>: StdVarSup<E>, 
[src]

impl<S, E> HandlerStateful<E> for StdHandler<S, E> where
    S: Handler<E>,
    E: Env,
    E::Context: AsRefMut<Self> + 'static,
    EEvent<E>: StdVarSup<E>, 
[src]

type K = StdPressedKey<E>

Auto Trait Implementations

impl<S, E> RefUnwindSafe for StdHandler<S, E> where
    E: RefUnwindSafe,
    S: RefUnwindSafe,
    <<<E as Env>::Backend as Backend<E>>::Event as Event<E>>::Key: RefUnwindSafe,
    <E as Env>::WidgetID: RefUnwindSafe,
    <E as Env>::WidgetPath: RefUnwindSafe

impl<S, E> Send for StdHandler<S, E> where
    S: Send,
    <<<E as Env>::Backend as Backend<E>>::Event as Event<E>>::Key: Send,
    <E as Env>::WidgetID: Send,
    <E as Env>::WidgetPath: Send

impl<S, E> Sync for StdHandler<S, E> where
    S: Sync,
    <<<E as Env>::Backend as Backend<E>>::Event as Event<E>>::Key: Sync,
    <E as Env>::WidgetID: Sync,
    <E as Env>::WidgetPath: Sync

impl<S, E> Unpin for StdHandler<S, E> where
    E: Unpin,
    S: Unpin,
    <<<E as Env>::Backend as Backend<E>>::Event as Event<E>>::Key: Unpin,
    <E as Env>::WidgetID: Unpin,
    <E as Env>::WidgetPath: Unpin

impl<S, E> UnwindSafe for StdHandler<S, E> where
    E: UnwindSafe,
    S: UnwindSafe,
    <<<E as Env>::Backend as Backend<E>>::Event as Event<E>>::Key: UnwindSafe,
    <E as Env>::WidgetID: UnwindSafe,
    <E as Env>::WidgetPath: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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<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.