Struct guion::handler::standard::StdHandler [−][src]
Fields
sup: S
s: StdStdState<E>
Implementations
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(root: Link<'_, E>, root_bounds: Bounds, ts: u64) -> EventResp
[src]
pub fn focus(
root: Link<'_, E>,
p: E::WidgetPath,
root_bounds: Bounds,
ts: u64
) -> Result<EventResp, GuionError<E>>
[src]
root: Link<'_, E>,
p: E::WidgetPath,
root_bounds: Bounds,
ts: u64
) -> Result<EventResp, GuionError<E>>
Trait Implementations
impl<S, E> DynState<E> for StdHandler<S, E> where
S: Handler<E>,
E: Env,
E::WidgetID: Eq + Hash,
E::Context: AsRefMut<Self> + CtxStdState<E> + 'static,
EEvent<E>: StdVarSup<E>,
[src]
S: Handler<E>,
E: Env,
E::WidgetID: Eq + Hash,
E::Context: AsRefMut<Self> + CtxStdState<E> + 'static,
EEvent<E>: StdVarSup<E>,
fn remote_state_or_default<T>(&self, i: E::WidgetID) -> T where
T: Default + Clone + 'static,
[src]
T: Default + Clone + 'static,
fn push_remote_state<T>(&mut self, i: E::WidgetID, v: T) where
T: 'static,
[src]
T: 'static,
impl<S, E> Handler<E> for StdHandler<S, E> where
S: Handler<E>,
E: Env,
E::Context: AsRefMut<Self> + CtxStdState<E> + 'static,
EEvent<E>: StdVarSup<E>,
[src]
S: Handler<E>,
E: Env,
E::Context: AsRefMut<Self> + CtxStdState<E> + 'static,
EEvent<E>: StdVarSup<E>,
fn _render(l: Link<'_, E>, r: &mut RenderLink<'_, E>)
[src]
fn _event_direct(l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
[src]
fn _send_event(
l: Link<'_, E>,
e: &EventCompound<E>,
child: E::WidgetPath
) -> Result<EventResp, GuionError<E>>
[src]
l: Link<'_, E>,
e: &EventCompound<E>,
child: E::WidgetPath
) -> Result<EventResp, GuionError<E>>
fn _event_root(l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
[src]
fn _size(l: Link<'_, E>, e: &EStyle<E>) -> ESize<E>
[src]
impl<S, E> StdState<E> for StdHandler<S, E> where
S: Handler<E>,
E: Env,
E::Context: AsRefMut<Self> + CtxStdState<E> + 'static,
EEvent<E>: StdVarSup<E>,
[src]
S: Handler<E>,
E: Env,
E::Context: AsRefMut<Self> + CtxStdState<E> + '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 cursor_pos(&self) -> Option<Offset>
[src]
fn is_hovered(&self, i: &E::WidgetID) -> bool
[src]
fn is_focused(&self, i: &E::WidgetID) -> bool
[src]
fn is_pressed(&self, c: &[EEKey<E>]) -> Option<&Self::K>
[src]
fn is_pressed_and_id(&self, c: &[EEKey<E>], id: E::WidgetID) -> Option<&Self::K>
[src]
Auto Trait Implementations
impl<S, E> !RefUnwindSafe for StdHandler<S, E>
impl<S, E> !Send for StdHandler<S, E>
impl<S, E> !Sync for StdHandler<S, E>
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>
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> FromInto<U> for T where
T: From<U> + Into<U>,
[src]
T: From<U> + Into<U>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &S)
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &[S])
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
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.
pub 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>,