[][src]Trait guion::widget::root::Widgets

pub trait Widgets<E>: Sized + 'static where
    E: Env
{ fn widget<'a>(&'a self, i: E::WidgetPath) -> Result<Resolved<'a, E>, ()>;
fn _widget_mut<'a>(
        &'a mut self,
        i: E::WidgetPath,
        invalidate: bool
    ) -> Result<ResolvedMut<'a, E>, ()>;
fn trace_bounds(
        &self,
        ctx: &mut E::Context,
        i: E::WidgetPath,
        b: &Bounds,
        force: bool
    ) -> Result<Bounds, ()>; fn widget_mut<'a>(
        &'a mut self,
        i: E::WidgetPath
    ) -> Result<ResolvedMut<'a, E>, ()> { ... }
fn has_widget(&self, i: E::WidgetPath) -> bool { ... }
fn tune_path(&self, _i: &mut E::WidgetPath) { ... }
fn tune_path_mut(&mut self, _i: &mut E::WidgetPath) { ... }
fn with_env<F: Env<Storage = Self>>(&self) -> &F::Storage
    where
        Self: Widgets<F>
, { ... } }

Implemented on the root of the widget tree

Required methods

fn widget<'a>(&'a self, i: E::WidgetPath) -> Result<Resolved<'a, E>, ()>

fn _widget_mut<'a>(
    &'a mut self,
    i: E::WidgetPath,
    invalidate: bool
) -> Result<ResolvedMut<'a, E>, ()>

fn trace_bounds(
    &self,
    ctx: &mut E::Context,
    i: E::WidgetPath,
    b: &Bounds,
    force: bool
) -> Result<Bounds, ()>

Loading content...

Provided methods

fn widget_mut<'a>(
    &'a mut self,
    i: E::WidgetPath
) -> Result<ResolvedMut<'a, E>, ()>

fn has_widget(&self, i: E::WidgetPath) -> bool

fn tune_path(&self, _i: &mut E::WidgetPath)

Deprecated

fn tune_path_mut(&mut self, _i: &mut E::WidgetPath)

Deprecated

fn with_env<F: Env<Storage = Self>>(&self) -> &F::Storage where
    Self: Widgets<F>, 

Loading content...

Implementors

Loading content...