Trait guion::id::WidgetID[][src]

pub trait WidgetID: Clone + PartialEq + Sized + Debug + 'static {
    fn id_eq<I: WidgetID + 'static>(&self, o: &I) -> bool
    where
        Self: 'static
, { ... }
fn is_hovered<E: Env<WidgetID = Self>>(&self, c: &E::Context) -> bool
    where
        E::Context: CtxStdState<E>,
        EPressedKey<E>: PressedKey<E>
, { ... }
fn is_focused<E: Env<WidgetID = Self>>(&self, c: &E::Context) -> bool
    where
        E::Context: CtxStdState<E>,
        EPressedKey<E>: PressedKey<E>
, { ... } }

Unique ID for Widgets

WidgetID shall be easily clonable

Provided methods

fn id_eq<I: WidgetID + 'static>(&self, o: &I) -> bool where
    Self: 'static, 
[src]

fn is_hovered<E: Env<WidgetID = Self>>(&self, c: &E::Context) -> bool where
    E::Context: CtxStdState<E>,
    EPressedKey<E>: PressedKey<E>, 
[src]

fn is_focused<E: Env<WidgetID = Self>>(&self, c: &E::Context) -> bool where
    E::Context: CtxStdState<E>,
    EPressedKey<E>: PressedKey<E>, 
[src]

Loading content...

Implementors

Loading content...