pub trait Widget<E>: WBase<E>where
E: Env + 'static,{
Show 30 methods
// Required methods
fn id(&self) -> E::WidgetID;
fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>);
fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp;
fn _size(&self, l: Link<'_, E>, e: &EStyle<E>) -> ESize<E>;
fn childs(&self) -> usize;
fn child<'s>(&'s self, i: usize) -> Result<Resolvable<'s, E>, ()>;
fn into_child<'s>(
self: Box<Self>,
i: usize,
) -> Result<Resolvable<'s, E>, ()>
where Self: 's;
fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>
where Self: 'w;
fn child_bounds(
&self,
l: Link<'_, E>,
b: &Bounds,
e: &EStyle<E>,
force: bool,
) -> Result<Vec<Bounds>, ()>;
fn focusable(&self) -> bool;
// Provided methods
fn childs_ref<'s>(&'s self) -> Vec<Resolvable<'s, E>> { ... }
fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath> { ... }
fn resolve<'s>(
&'s self,
i: E::WidgetPath,
) -> Result<Resolvable<'s, E>, GuionError<E>> { ... }
fn into_resolve<'w>(
self: Box<Self>,
i: E::WidgetPath,
) -> Result<Resolvable<'w, E>, GuionError<E>>
where Self: 'w { ... }
fn resolve_child(
&self,
sub_path: &E::WidgetPath,
) -> Result<(usize, E::WidgetPath), GuionError<E>> { ... }
fn trace_bounds(
&self,
l: Link<'_, E>,
i: E::WidgetPath,
b: &Bounds,
e: &EStyle<E>,
force: bool,
) -> Result<Bounds, GuionError<E>> { ... }
fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath { ... }
fn resolved_by_path(
&self,
sub_path: &E::WidgetPath,
) -> Option<ResolvesThruResult<E>> { ... }
fn _focus_on_mouse_down(&self) -> bool { ... }
fn _tabulate_by_tab(&self) -> bool { ... }
fn _tabulate_next_child(
&self,
_l: Link<'_, E>,
origin: TabulateNextChildOrigin,
dir: TabulateDirection,
) -> TabulateNextChildResponse { ... }
fn _tabulate(
&self,
l: Link<'_, E>,
op: TabulateOrigin<E>,
dir: TabulateDirection,
) -> Result<TabulateResponse<E>, GuionError<E>> { ... }
fn inner(&self) -> Option<&dyn Widget<E>> { ... }
fn innest(&self) -> Option<&dyn Widget<E>> { ... }
fn debug_type_name(&self, dest: &mut Vec<&'static str>) { ... }
fn debugged_type_name(&self) -> Vec<&'static str> { ... }
fn box_ref<'s>(&'s self) -> WidgetRef<'s, E> { ... }
fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>
where Self: 'w { ... }
fn boxed<'w>(self) -> WidgetRef<'w, E>
where Self: Sized + 'w { ... }
fn gen_diag_error_resolve_fail(
&self,
sub_path: &E::WidgetPath,
op: &'static str,
) -> GuionError<E> { ... }
}
Expand description
Core Trait of guion ™️
Required Methods§
fn id(&self) -> E::WidgetID
Sourcefn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)
fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)
generally not called directly, rather through
Link::render
Sourcefn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
generally not called directly, rather through
Link::event
Sourcefn _size(&self, l: Link<'_, E>, e: &EStyle<E>) -> ESize<E>
fn _size(&self, l: Link<'_, E>, e: &EStyle<E>) -> ESize<E>
generally not called directly, rather through
Link::size
Sourcefn into_child<'s>(self: Box<Self>, i: usize) -> Result<Resolvable<'s, E>, ()>where
Self: 's,
fn into_child<'s>(self: Box<Self>, i: usize) -> Result<Resolvable<'s, E>, ()>where
Self: 's,
Sourcefn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>where
Self: 'w,
fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>where
Self: 'w,
Provided Methods§
Sourcefn childs_ref<'s>(&'s self) -> Vec<Resolvable<'s, E>>
👎Deprecated
fn childs_ref<'s>(&'s self) -> Vec<Resolvable<'s, E>>
Sourcefn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>
👎Deprecated
fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>
Sourcefn resolve<'s>(
&'s self,
i: E::WidgetPath,
) -> Result<Resolvable<'s, E>, GuionError<E>>
fn resolve<'s>( &'s self, i: E::WidgetPath, ) -> Result<Resolvable<'s, E>, GuionError<E>>
Resolve a deep child item by the given relative path
An empty path will resolve to this widget
generally not used directly, but through
Widgets::widget
Sourcefn into_resolve<'w>(
self: Box<Self>,
i: E::WidgetPath,
) -> Result<Resolvable<'w, E>, GuionError<E>>where
Self: 'w,
fn into_resolve<'w>(
self: Box<Self>,
i: E::WidgetPath,
) -> Result<Resolvable<'w, E>, GuionError<E>>where
Self: 'w,
Resolve a deep child item by the given relative path
An empty path will resolve to this widget
generally not used directly, but through
Widgets::widget
Sourcefn resolve_child(
&self,
sub_path: &E::WidgetPath,
) -> Result<(usize, E::WidgetPath), GuionError<E>>
fn resolve_child( &self, sub_path: &E::WidgetPath, ) -> Result<(usize, E::WidgetPath), GuionError<E>>
To (or through) which child path would the given sub_path resolve?
Returns the child index and the subpath inside the child widget to resolve further
generally not used directly, but through
Widgets::widget
Sourcefn trace_bounds(
&self,
l: Link<'_, E>,
i: E::WidgetPath,
b: &Bounds,
e: &EStyle<E>,
force: bool,
) -> Result<Bounds, GuionError<E>>
fn trace_bounds( &self, l: Link<'_, E>, i: E::WidgetPath, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Bounds, GuionError<E>>
Sourcefn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath
👎Deprecated
fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath
Attach widget’s id to the given parent path
Sourcefn resolved_by_path(
&self,
sub_path: &E::WidgetPath,
) -> Option<ResolvesThruResult<E>>
👎Deprecated
fn resolved_by_path( &self, sub_path: &E::WidgetPath, ) -> Option<ResolvesThruResult<E>>
Refer WidgetPath::resolves_thru
sub_path
: subpath in parent widget (which contains this widget as child) which would probably resolve to/through this widget
fn _focus_on_mouse_down(&self) -> bool
fn _tabulate_by_tab(&self) -> bool
Sourcefn _tabulate_next_child(
&self,
_l: Link<'_, E>,
origin: TabulateNextChildOrigin,
dir: TabulateDirection,
) -> TabulateNextChildResponse
fn _tabulate_next_child( &self, _l: Link<'_, E>, origin: TabulateNextChildOrigin, dir: TabulateDirection, ) -> TabulateNextChildResponse
Determines the next child in this widget in the tabulation step
fn _tabulate( &self, l: Link<'_, E>, op: TabulateOrigin<E>, dir: TabulateDirection, ) -> Result<TabulateResponse<E>, GuionError<E>>
fn inner(&self) -> Option<&dyn Widget<E>>
fn innest(&self) -> Option<&dyn Widget<E>>
fn debug_type_name(&self, dest: &mut Vec<&'static str>)
fn debugged_type_name(&self) -> Vec<&'static str>
Sourcefn box_ref<'s>(&'s self) -> WidgetRef<'s, E>
fn box_ref<'s>(&'s self) -> WidgetRef<'s, E>
Box reference of this widget immutable. Use WidgetMut::box_mut
to box into mutable WidgetRef
.
Sourcefn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>where
Self: 'w,
fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>where
Self: 'w,
Move widget into box immutable. Use WidgetMut::box_box_mut
to box into mutable WidgetRef
.
Sourcefn boxed<'w>(self) -> WidgetRef<'w, E>where
Self: Sized + 'w,
fn boxed<'w>(self) -> WidgetRef<'w, E>where
Self: Sized + 'w,
Move widget into box immutable. Use WidgetMut::boxed_mut
to box into mutable WidgetRef
.
fn gen_diag_error_resolve_fail( &self, sub_path: &E::WidgetPath, op: &'static str, ) -> GuionError<E>
Implementations§
Trait Implementations§
Source§impl<'w, T, E> Traitcast<dyn AtomState<E, T> + 'w, E> for dyn Widget<E> + 'wwhere
E: Env,
T: 'static,
impl<'w, T, E> Traitcast<dyn AtomState<E, T> + 'w, E> for dyn Widget<E> + 'wwhere
E: Env,
T: 'static,
type DestTypeID = dyn AtomState<E, T>
unsafe fn _traitcast_ref<'s>( senf: &'s dyn Widget<E>, ) -> Result<&'s T, GuionError<E>>
unsafe fn _try_traitcast_ref<'s>(senf: &'s dyn Widget<E>) -> Result<&'s T, ()>
Source§impl<'w, E> Traitcast<dyn Caption<E> + 'w, E> for dyn Widget<E> + 'wwhere
E: Env,
impl<'w, E> Traitcast<dyn Caption<E> + 'w, E> for dyn Widget<E> + 'wwhere
E: Env,
type DestTypeID = dyn Caption<E>
unsafe fn _traitcast_ref<'s>( senf: &'s dyn Widget<E>, ) -> Result<&'s T, GuionError<E>>
unsafe fn _try_traitcast_ref<'s>(senf: &'s dyn Widget<E>) -> Result<&'s T, ()>
Source§impl<'w, E> Traitcast<dyn ICheckBox<E> + 'w, E> for dyn Widget<E> + 'wwhere
E: Env,
impl<'w, E> Traitcast<dyn ICheckBox<E> + 'w, E> for dyn Widget<E> + 'wwhere
E: Env,
type DestTypeID = dyn ICheckBox<E>
unsafe fn _traitcast_ref<'s>( senf: &'s dyn Widget<E>, ) -> Result<&'s T, GuionError<E>>
unsafe fn _try_traitcast_ref<'s>(senf: &'s dyn Widget<E>) -> Result<&'s T, ()>
Source§impl<'w, E> Traitcast<dyn ITextBox<E> + 'w, E> for dyn Widget<E> + 'wwhere
E: Env,
impl<'w, E> Traitcast<dyn ITextBox<E> + 'w, E> for dyn Widget<E> + 'wwhere
E: Env,
type DestTypeID = dyn ITextBox<E>
unsafe fn _traitcast_ref<'s>( senf: &'s dyn Widget<E>, ) -> Result<&'s T, GuionError<E>>
unsafe fn _try_traitcast_ref<'s>(senf: &'s dyn Widget<E>) -> Result<&'s T, ()>
Source§impl<'w, E> Traitcast<dyn Validation<E> + 'w, E> for dyn Widget<E> + 'wwhere
E: Env,
impl<'w, E> Traitcast<dyn Validation<E> + 'w, E> for dyn Widget<E> + 'wwhere
E: Env,
type DestTypeID = dyn Validation<E>
unsafe fn _traitcast_ref<'s>( senf: &'s dyn Widget<E>, ) -> Result<&'s T, GuionError<E>>
unsafe fn _try_traitcast_ref<'s>(senf: &'s dyn Widget<E>) -> Result<&'s T, ()>
Source§impl<E> Widget<E> for &(dyn Widget<E> + '_)where
E: Env,
impl<E> Widget<E> for &(dyn Widget<E> + '_)where
E: Env,
fn id(&self) -> E::WidgetID
Source§fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)
fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)
Source§fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
Source§fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>where
Self: 'w,
fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>where
Self: 'w,
Source§fn child_bounds(
&self,
l: Link<'_, E>,
b: &Bounds,
e: &EStyle<E>,
force: bool,
) -> Result<Vec<Bounds>, ()>
fn child_bounds( &self, l: Link<'_, E>, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Vec<Bounds>, ()>
Source§fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>
fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>
Source§fn resolve(&self, i: E::WidgetPath) -> Result<Resolvable<'_, E>, GuionError<E>>
fn resolve(&self, i: E::WidgetPath) -> Result<Resolvable<'_, E>, GuionError<E>>
Resolve a deep child item by the given relative path Read more
Source§fn into_resolve<'w>(
self: Box<Self>,
i: E::WidgetPath,
) -> Result<Resolvable<'w, E>, GuionError<E>>where
Self: 'w,
fn into_resolve<'w>(
self: Box<Self>,
i: E::WidgetPath,
) -> Result<Resolvable<'w, E>, GuionError<E>>where
Self: 'w,
Resolve a deep child item by the given relative path Read more
Source§fn resolve_child(
&self,
p: &E::WidgetPath,
) -> Result<(usize, E::WidgetPath), GuionError<E>>
fn resolve_child( &self, p: &E::WidgetPath, ) -> Result<(usize, E::WidgetPath), GuionError<E>>
To (or through) which child path would the given sub_path resolve? Read more
Source§fn trace_bounds(
&self,
l: Link<'_, E>,
i: E::WidgetPath,
b: &Bounds,
e: &EStyle<E>,
force: bool,
) -> Result<Bounds, GuionError<E>>
fn trace_bounds( &self, l: Link<'_, E>, i: E::WidgetPath, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Bounds, GuionError<E>>
Source§fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath
fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath
Attach widget’s id to the given parent path Read more
Source§fn resolved_by_path(
&self,
sub_path: &E::WidgetPath,
) -> Option<ResolvesThruResult<E>>
fn resolved_by_path( &self, sub_path: &E::WidgetPath, ) -> Option<ResolvesThruResult<E>>
fn _focus_on_mouse_down(&self) -> bool
fn _tabulate_by_tab(&self) -> bool
fn debug_type_name(&self, dest: &mut Vec<&'static str>)
fn inner(&self) -> Option<&dyn Widget<E>>
Source§fn into_child<'w>(self: Box<Self>, i: usize) -> Result<Resolvable<'w, E>, ()>where
Self: 'w,
fn into_child<'w>(self: Box<Self>, i: usize) -> Result<Resolvable<'w, E>, ()>where
Self: 'w,
Source§fn box_ref(&self) -> WidgetRef<'_, E>
fn box_ref(&self) -> WidgetRef<'_, E>
Box reference of this widget immutable. Use
WidgetMut::box_mut
to box into mutable WidgetRef
. Read moreSource§fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>where
Self: 'w,
fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>where
Self: 'w,
Move widget into box immutable. Use
WidgetMut::box_box_mut
to box into mutable WidgetRef
. Read moreSource§fn boxed<'w>(self) -> WidgetRef<'w, E>where
Self: Sized + 'w,
fn boxed<'w>(self) -> WidgetRef<'w, E>where
Self: Sized + 'w,
Move widget into box immutable. Use
WidgetMut::boxed_mut
to box into mutable WidgetRef
. Read moreSource§fn _tabulate_next_child(
&self,
_l: Link<'_, E>,
origin: TabulateNextChildOrigin,
dir: TabulateDirection,
) -> TabulateNextChildResponse
fn _tabulate_next_child( &self, _l: Link<'_, E>, origin: TabulateNextChildOrigin, dir: TabulateDirection, ) -> TabulateNextChildResponse
fn _tabulate( &self, l: Link<'_, E>, op: TabulateOrigin<E>, dir: TabulateDirection, ) -> Result<TabulateResponse<E>, GuionError<E>>
fn innest(&self) -> Option<&dyn Widget<E>>
fn debugged_type_name(&self) -> Vec<&'static str>
fn gen_diag_error_resolve_fail( &self, sub_path: &E::WidgetPath, op: &'static str, ) -> GuionError<E>
Source§impl<E> Widget<E> for &mut (dyn Widget<E> + '_)where
E: Env,
impl<E> Widget<E> for &mut (dyn Widget<E> + '_)where
E: Env,
fn id(&self) -> E::WidgetID
Source§fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)
fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)
Source§fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
Source§fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>where
Self: 'w,
fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>where
Self: 'w,
Source§fn child_bounds(
&self,
l: Link<'_, E>,
b: &Bounds,
e: &EStyle<E>,
force: bool,
) -> Result<Vec<Bounds>, ()>
fn child_bounds( &self, l: Link<'_, E>, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Vec<Bounds>, ()>
Source§fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>
fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>
Source§fn resolve(&self, i: E::WidgetPath) -> Result<Resolvable<'_, E>, GuionError<E>>
fn resolve(&self, i: E::WidgetPath) -> Result<Resolvable<'_, E>, GuionError<E>>
Resolve a deep child item by the given relative path Read more
Source§fn into_resolve<'w>(
self: Box<Self>,
i: E::WidgetPath,
) -> Result<Resolvable<'w, E>, GuionError<E>>where
Self: 'w,
fn into_resolve<'w>(
self: Box<Self>,
i: E::WidgetPath,
) -> Result<Resolvable<'w, E>, GuionError<E>>where
Self: 'w,
Resolve a deep child item by the given relative path Read more
Source§fn resolve_child(
&self,
p: &E::WidgetPath,
) -> Result<(usize, E::WidgetPath), GuionError<E>>
fn resolve_child( &self, p: &E::WidgetPath, ) -> Result<(usize, E::WidgetPath), GuionError<E>>
To (or through) which child path would the given sub_path resolve? Read more
Source§fn trace_bounds(
&self,
l: Link<'_, E>,
i: E::WidgetPath,
b: &Bounds,
e: &EStyle<E>,
force: bool,
) -> Result<Bounds, GuionError<E>>
fn trace_bounds( &self, l: Link<'_, E>, i: E::WidgetPath, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Bounds, GuionError<E>>
Source§fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath
fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath
Attach widget’s id to the given parent path Read more
Source§fn resolved_by_path(
&self,
sub_path: &E::WidgetPath,
) -> Option<ResolvesThruResult<E>>
fn resolved_by_path( &self, sub_path: &E::WidgetPath, ) -> Option<ResolvesThruResult<E>>
fn _focus_on_mouse_down(&self) -> bool
fn _tabulate_by_tab(&self) -> bool
fn debug_type_name(&self, dest: &mut Vec<&'static str>)
fn inner(&self) -> Option<&dyn Widget<E>>
Source§fn into_child<'w>(self: Box<Self>, i: usize) -> Result<Resolvable<'w, E>, ()>where
Self: 'w,
fn into_child<'w>(self: Box<Self>, i: usize) -> Result<Resolvable<'w, E>, ()>where
Self: 'w,
Source§fn box_ref(&self) -> WidgetRef<'_, E>
fn box_ref(&self) -> WidgetRef<'_, E>
Box reference of this widget immutable. Use
WidgetMut::box_mut
to box into mutable WidgetRef
. Read moreSource§fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>where
Self: 'w,
fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>where
Self: 'w,
Move widget into box immutable. Use
WidgetMut::box_box_mut
to box into mutable WidgetRef
. Read moreSource§fn boxed<'w>(self) -> WidgetRef<'w, E>where
Self: Sized + 'w,
fn boxed<'w>(self) -> WidgetRef<'w, E>where
Self: Sized + 'w,
Move widget into box immutable. Use
WidgetMut::boxed_mut
to box into mutable WidgetRef
. Read moreSource§fn _tabulate_next_child(
&self,
_l: Link<'_, E>,
origin: TabulateNextChildOrigin,
dir: TabulateDirection,
) -> TabulateNextChildResponse
fn _tabulate_next_child( &self, _l: Link<'_, E>, origin: TabulateNextChildOrigin, dir: TabulateDirection, ) -> TabulateNextChildResponse
fn _tabulate( &self, l: Link<'_, E>, op: TabulateOrigin<E>, dir: TabulateDirection, ) -> Result<TabulateResponse<E>, GuionError<E>>
fn innest(&self) -> Option<&dyn Widget<E>>
fn debugged_type_name(&self) -> Vec<&'static str>
fn gen_diag_error_resolve_fail( &self, sub_path: &E::WidgetPath, op: &'static str, ) -> GuionError<E>
Source§impl<E> Widget<E> for Box<dyn Widget<E> + '_>where
E: Env,
impl<E> Widget<E> for Box<dyn Widget<E> + '_>where
E: Env,
fn id(&self) -> E::WidgetID
Source§fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)
fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)
Source§fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
Source§fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>where
Self: 'w,
fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>where
Self: 'w,
Source§fn child_bounds(
&self,
l: Link<'_, E>,
b: &Bounds,
e: &EStyle<E>,
force: bool,
) -> Result<Vec<Bounds>, ()>
fn child_bounds( &self, l: Link<'_, E>, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Vec<Bounds>, ()>
Source§fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>
fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>
Source§fn resolve(&self, i: E::WidgetPath) -> Result<Resolvable<'_, E>, GuionError<E>>
fn resolve(&self, i: E::WidgetPath) -> Result<Resolvable<'_, E>, GuionError<E>>
Resolve a deep child item by the given relative path Read more
Source§fn into_resolve<'w>(
self: Box<Self>,
i: E::WidgetPath,
) -> Result<Resolvable<'w, E>, GuionError<E>>where
Self: 'w,
fn into_resolve<'w>(
self: Box<Self>,
i: E::WidgetPath,
) -> Result<Resolvable<'w, E>, GuionError<E>>where
Self: 'w,
Resolve a deep child item by the given relative path Read more
Source§fn resolve_child(
&self,
p: &E::WidgetPath,
) -> Result<(usize, E::WidgetPath), GuionError<E>>
fn resolve_child( &self, p: &E::WidgetPath, ) -> Result<(usize, E::WidgetPath), GuionError<E>>
To (or through) which child path would the given sub_path resolve? Read more
Source§fn trace_bounds(
&self,
l: Link<'_, E>,
i: E::WidgetPath,
b: &Bounds,
e: &EStyle<E>,
force: bool,
) -> Result<Bounds, GuionError<E>>
fn trace_bounds( &self, l: Link<'_, E>, i: E::WidgetPath, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Bounds, GuionError<E>>
Source§fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath
fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath
Attach widget’s id to the given parent path Read more
Source§fn resolved_by_path(
&self,
sub_path: &E::WidgetPath,
) -> Option<ResolvesThruResult<E>>
fn resolved_by_path( &self, sub_path: &E::WidgetPath, ) -> Option<ResolvesThruResult<E>>
fn _focus_on_mouse_down(&self) -> bool
fn _tabulate_by_tab(&self) -> bool
fn debug_type_name(&self, dest: &mut Vec<&'static str>)
fn inner(&self) -> Option<&dyn Widget<E>>
Source§fn into_child<'w>(self: Box<Self>, i: usize) -> Result<Resolvable<'w, E>, ()>where
Self: 'w,
fn into_child<'w>(self: Box<Self>, i: usize) -> Result<Resolvable<'w, E>, ()>where
Self: 'w,
Source§fn box_ref(&self) -> WidgetRef<'_, E>
fn box_ref(&self) -> WidgetRef<'_, E>
Box reference of this widget immutable. Use
WidgetMut::box_mut
to box into mutable WidgetRef
. Read moreSource§fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>where
Self: 'w,
fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>where
Self: 'w,
Move widget into box immutable. Use
WidgetMut::box_box_mut
to box into mutable WidgetRef
. Read moreSource§fn boxed<'w>(self) -> WidgetRef<'w, E>where
Self: Sized + 'w,
fn boxed<'w>(self) -> WidgetRef<'w, E>where
Self: Sized + 'w,
Move widget into box immutable. Use
WidgetMut::boxed_mut
to box into mutable WidgetRef
. Read more