[−][src]Struct guion::handler::standard::StdHandler
Fields
sup: S
s: StdState<E>
Methods
impl<S, E> StdHandler<S, E> where
S: Handler<E>,
E: Env,
E::Context: AsRefMut<Self>,
EEvent<E>: StdVarSup<E>,
[src]
S: Handler<E>,
E: Env,
E::Context: AsRefMut<Self>,
EEvent<E>: StdVarSup<E>,
pub fn new(sup: S) -> Self
[src]
pub fn unfocus(
ctx: &mut E::Context,
root: &E::Storage,
root_bounds: &Bounds,
ts: u64
)
[src]
ctx: &mut E::Context,
root: &E::Storage,
root_bounds: &Bounds,
ts: u64
)
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]
S: Handler<E>,
E: Env,
E::Context: AsRefMut<Self> + 'static,
EEvent<E>: StdVarSup<E>,
fn _render(l: Link<E>, r: &mut RenderLink<E>) -> bool
[src]
fn _event(l: Link<E>, e: (EEvent<E>, &Bounds, u64))
[src]
fn _event_root(l: Link<E>, e: (EEvent<E>, &Bounds, u64))
[src]
fn _size(l: Link<E>) -> ESize<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]
S: Handler<E>,
E: Env,
E::Context: AsRefMut<Self> + 'static,
EEvent<E>: StdVarSup<E>,
type K = StdPressedKey<E>
fn hovered(&self) -> Option<E::WidgetID>
[src]
fn selected(&self) -> Option<E::WidgetID>
[src]
fn pressed(&self) -> &[Self::K]
[src]
fn is_hovered(&self, i: &E::WidgetID) -> bool
[src]
fn is_focused(&self, i: &E::WidgetID) -> bool
[src]
fn is_pressed<'a>(&'a self, c: &[EEKey<E>]) -> Option<&'a Self::K>
[src]
fn is_pressed_and_id<'a>(
&'a self,
c: &[EEKey<E>],
id: E::WidgetID
) -> Option<&'a Self::K>
[src]
&'a self,
c: &[EEKey<E>],
id: E::WidgetID
) -> Option<&'a Self::K>
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,
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,
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,
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,
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,
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]
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<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>,