Trait guion::state::StdState[][src]

pub trait StdState<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 cursor_pos(&self) -> Option<Offset>; fn is_hovered(&self, i: &E::WidgetID) -> bool { ... }
fn is_focused(&self, i: &E::WidgetID) -> bool { ... }
fn is_pressed(&self, c: &[EEKey<E>]) -> Option<&Self::K> { ... }
fn is_pressed_and_id(
        &self,
        c: &[EEKey<E>],
        id: E::WidgetID
    ) -> Option<&Self::K> { ... } }

Associated Types

Loading content...

Required methods

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]

Loading content...

Provided methods

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]

Loading content...

Implementors

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]

type K = StdPressedKey<E>

Loading content...