[][src]Trait guion::state::handler::HandlerStateful

pub trait HandlerStateful<E>: Handler<E> + 'static where
    E: Env
{ type K: PressedKey<E>; fn hovered(&self) -> Option<E::WidgetID>;
fn selected(&self) -> Option<E::WidgetID>;
fn pressed(&self) -> &[Self::K]; fn is_hovered(&self, i: &E::WidgetID) -> bool { ... }
fn is_focused(&self, i: &E::WidgetID) -> bool { ... }
fn is_pressed<'a>(&'a self, c: &[EEKey<E>]) -> Option<&'a Self::K> { ... }
fn is_pressed_and_id<'a>(
        &'a self,
        c: &[EEKey<E>],
        id: E::WidgetID
    ) -> Option<&'a Self::K> { ... } }

Associated Types

type K: PressedKey<E>

Loading content...

Required methods

fn hovered(&self) -> Option<E::WidgetID>

fn selected(&self) -> Option<E::WidgetID>

fn pressed(&self) -> &[Self::K]

Loading content...

Provided methods

fn is_hovered(&self, i: &E::WidgetID) -> bool

fn is_focused(&self, i: &E::WidgetID) -> bool

fn is_pressed<'a>(&'a self, c: &[EEKey<E>]) -> Option<&'a Self::K>

fn is_pressed_and_id<'a>(
    &'a self,
    c: &[EEKey<E>],
    id: E::WidgetID
) -> Option<&'a Self::K>

Loading content...

Implementors

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>

Loading content...