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

pub trait Widgets<E>: Sized + 'static where
    E: Env
{ fn widget(&self, i: E::WidgetPath) -> Result<Resolved<'_, E>, GuionError<E>>;
fn widget_mut(
        &mut self,
        i: E::WidgetPath
    ) -> Result<ResolvedMut<'_, E>, GuionError<E>>;
fn trace_bounds(
        &self,
        ctx: &mut E::Context,
        i: E::WidgetPath,
        b: &Bounds,
        e: &EStyle<E>,
        force: bool
    ) -> Result<Bounds, GuionError<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
Represents the root of a widget tree and being a starting point for widget resolving

Required methods

fn widget(&self, i: E::WidgetPath) -> Result<Resolved<'_, E>, GuionError<E>>[src]

Resolve Widget by path

IMPL Implementations often can just call resolve_in_root

fn widget_mut(
    &mut self,
    i: E::WidgetPath
) -> Result<ResolvedMut<'_, E>, GuionError<E>>
[src]

Resolve Widget by path

IMPL Implementations often can just call resolve_in_root_mut

fn trace_bounds(
    &self,
    ctx: &mut E::Context,
    i: E::WidgetPath,
    b: &Bounds,
    e: &EStyle<E>,
    force: bool
) -> Result<Bounds, GuionError<E>>
[src]

👎 Deprecated
Loading content...

Provided methods

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

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

👎 Deprecated

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

👎 Deprecated

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

Loading content...

Implementors

Loading content...