Trait Widget

Source
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§

Source

fn id(&self) -> E::WidgetID

Source

fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)

RENDER IMPL
RENDER USER generally not called directly, rather through Link::render

Source

fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp

EVENT IMPL
EVENT USER generally not called directly, rather through Link::event

Source

fn _size(&self, l: Link<'_, E>, e: &EStyle<E>) -> ESize<E>

LAYOUT IMPL
LAYOUT USER generally not called directly, rather through Link::size

Source

fn childs(&self) -> usize

CHILDS

Source

fn child<'s>(&'s self, i: usize) -> Result<Resolvable<'s, E>, ()>

CHILDS

Source

fn into_child<'s>(self: Box<Self>, i: usize) -> Result<Resolvable<'s, E>, ()>
where Self: 's,

CHILDS

Source

fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>
where Self: 'w,

CHILDS

Source

fn child_bounds( &self, l: Link<'_, E>, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Vec<Bounds>, ()>

LAYOUT

Source

fn focusable(&self) -> bool

If the widget should be focusable

Regularly true for interactive widgets, false for layouts.

Provided Methods§

Source

fn childs_ref<'s>(&'s self) -> Vec<Resolvable<'s, E>>

👎Deprecated

CHILDS

Source

fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>

👎Deprecated

CHILDS

Source

fn resolve<'s>( &'s self, i: E::WidgetPath, ) -> Result<Resolvable<'s, E>, GuionError<E>>

RESOLVING
Resolve a deep child item by the given relative path

An empty path will resolve to this widget

USER generally not used directly, but through Widgets::widget

Source

fn into_resolve<'w>( self: Box<Self>, i: E::WidgetPath, ) -> Result<Resolvable<'w, E>, GuionError<E>>
where Self: 'w,

RESOLVING
Resolve a deep child item by the given relative path

An empty path will resolve to this widget

USER generally not used directly, but through Widgets::widget

Source

fn resolve_child( &self, sub_path: &E::WidgetPath, ) -> Result<(usize, E::WidgetPath), GuionError<E>>

RESOLVING
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

USER generally not used directly, but through Widgets::widget

Source

fn trace_bounds( &self, l: Link<'_, E>, i: E::WidgetPath, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Bounds, GuionError<E>>

LAYOUT

Source

fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath

👎Deprecated

RESOLVING
Attach widget’s id to the given parent path

Source

fn resolved_by_path( &self, sub_path: &E::WidgetPath, ) -> Option<ResolvesThruResult<E>>

👎Deprecated

RESOLVING
Refer WidgetPath::resolves_thru

sub_path: subpath in parent widget (which contains this widget as child) which would probably resolve to/through this widget

Source

fn _focus_on_mouse_down(&self) -> bool

Source

fn _tabulate_by_tab(&self) -> bool

Source

fn _tabulate_next_child( &self, _l: Link<'_, E>, origin: TabulateNextChildOrigin, dir: TabulateDirection, ) -> TabulateNextChildResponse

Determines the next child in this widget in the tabulation step

Source

fn _tabulate( &self, l: Link<'_, E>, op: TabulateOrigin<E>, dir: TabulateDirection, ) -> Result<TabulateResponse<E>, GuionError<E>>

Source

fn inner(&self) -> Option<&dyn Widget<E>>

Source

fn innest(&self) -> Option<&dyn Widget<E>>

Source

fn debug_type_name(&self, dest: &mut Vec<&'static str>)

Source

fn debugged_type_name(&self) -> Vec<&'static str>

Source

fn box_ref<'s>(&'s self) -> WidgetRef<'s, E>

BOXING
Box reference of this widget immutable. Use WidgetMut::box_mut to box into mutable WidgetRef.

Source

fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>
where Self: 'w,

BOXING
Move widget into box immutable. Use WidgetMut::box_box_mut to box into mutable WidgetRef.

Source

fn boxed<'w>(self) -> WidgetRef<'w, E>
where Self: Sized + 'w,

BOXING
Move widget into box immutable. Use WidgetMut::boxed_mut to box into mutable WidgetRef.

Source

fn gen_diag_error_resolve_fail( &self, sub_path: &E::WidgetPath, op: &'static str, ) -> GuionError<E>

Implementations§

Source§

impl<E> dyn Widget<E> + '_
where E: Env,

Source

pub fn traitcast_ref<'s, T>(&'s self) -> Result<&'s T, GuionError<E>>
where Self: Traitcast<T, E>, T: ?Sized,

Source

pub fn try_traitcast_ref<'s, T>(&'s self) -> Result<&'s T, ()>
where Self: Traitcast<T, E>, T: ?Sized,

Trait Implementations§

Source§

impl<'w, T, E> Traitcast<dyn AtomState<E, T> + 'w, E> for dyn Widget<E> + 'w
where E: Env, T: 'static,

Source§

type DestTypeID = dyn AtomState<E, T>

Source§

unsafe fn _traitcast_ref<'s>( senf: &'s dyn Widget<E>, ) -> Result<&'s T, GuionError<E>>

Source§

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> + 'w
where E: Env,

Source§

type DestTypeID = dyn Caption<E>

Source§

unsafe fn _traitcast_ref<'s>( senf: &'s dyn Widget<E>, ) -> Result<&'s T, GuionError<E>>

Source§

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> + 'w
where E: Env,

Source§

type DestTypeID = dyn ICheckBox<E>

Source§

unsafe fn _traitcast_ref<'s>( senf: &'s dyn Widget<E>, ) -> Result<&'s T, GuionError<E>>

Source§

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> + 'w
where E: Env,

Source§

type DestTypeID = dyn ITextBox<E>

Source§

unsafe fn _traitcast_ref<'s>( senf: &'s dyn Widget<E>, ) -> Result<&'s T, GuionError<E>>

Source§

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> + 'w
where E: Env,

Source§

type DestTypeID = dyn Validation<E>

Source§

unsafe fn _traitcast_ref<'s>( senf: &'s dyn Widget<E>, ) -> Result<&'s T, GuionError<E>>

Source§

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,

Source§

fn id(&self) -> E::WidgetID

Source§

fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)

RENDER IMPL
RENDER USER generally not called directly, rather through Link::render Read more
Source§

fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp

EVENT IMPL
EVENT USER generally not called directly, rather through Link::event Read more
Source§

fn _size(&self, l: Link<'_, E>, e: &EStyle<E>) -> ESize<E>

LAYOUT IMPL
LAYOUT USER generally not called directly, rather through Link::size Read more
Source§

fn childs(&self) -> usize

CHILDS Read more
Source§

fn childs_ref(&self) -> Vec<Resolvable<'_, E>>

👎Deprecated
CHILDS Read more
Source§

fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>
where Self: 'w,

CHILDS Read more
Source§

fn child_bounds( &self, l: Link<'_, E>, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Vec<Bounds>, ()>

LAYOUT Read more
Source§

fn focusable(&self) -> bool

If the widget should be focusable Read more
Source§

fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>

👎Deprecated
CHILDS Read more
Source§

fn resolve(&self, i: E::WidgetPath) -> Result<Resolvable<'_, E>, GuionError<E>>

RESOLVING
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,

RESOLVING
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>>

RESOLVING
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>>

LAYOUT Read more
Source§

fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath

👎Deprecated
RESOLVING
Attach widget’s id to the given parent path Read more
Source§

fn resolved_by_path( &self, sub_path: &E::WidgetPath, ) -> Option<ResolvesThruResult<E>>

👎Deprecated
Source§

fn _focus_on_mouse_down(&self) -> bool

Source§

fn _tabulate_by_tab(&self) -> bool

Source§

fn debug_type_name(&self, dest: &mut Vec<&'static str>)

Source§

fn inner(&self) -> Option<&dyn Widget<E>>

Source§

fn child(&self, i: usize) -> Result<Resolvable<'_, E>, ()>

CHILDS Read more
Source§

fn into_child<'w>(self: Box<Self>, i: usize) -> Result<Resolvable<'w, E>, ()>
where Self: 'w,

CHILDS Read more
Source§

fn box_ref(&self) -> WidgetRef<'_, E>

BOXING
Box reference of this widget immutable. Use WidgetMut::box_mut to box into mutable WidgetRef. Read more
Source§

fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>
where Self: 'w,

BOXING
Move widget into box immutable. Use WidgetMut::box_box_mut to box into mutable WidgetRef. Read more
Source§

fn boxed<'w>(self) -> WidgetRef<'w, E>
where Self: Sized + 'w,

BOXING
Move widget into box immutable. Use WidgetMut::boxed_mut to box into mutable WidgetRef. Read more
Source§

fn _tabulate_next_child( &self, _l: Link<'_, E>, origin: TabulateNextChildOrigin, dir: TabulateDirection, ) -> TabulateNextChildResponse

Determines the next child in this widget in the tabulation step
Source§

fn _tabulate( &self, l: Link<'_, E>, op: TabulateOrigin<E>, dir: TabulateDirection, ) -> Result<TabulateResponse<E>, GuionError<E>>

Source§

fn innest(&self) -> Option<&dyn Widget<E>>

Source§

fn debugged_type_name(&self) -> Vec<&'static str>

Source§

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,

Source§

fn id(&self) -> E::WidgetID

Source§

fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)

RENDER IMPL
RENDER USER generally not called directly, rather through Link::render Read more
Source§

fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp

EVENT IMPL
EVENT USER generally not called directly, rather through Link::event Read more
Source§

fn _size(&self, l: Link<'_, E>, e: &EStyle<E>) -> ESize<E>

LAYOUT IMPL
LAYOUT USER generally not called directly, rather through Link::size Read more
Source§

fn childs(&self) -> usize

CHILDS Read more
Source§

fn childs_ref(&self) -> Vec<Resolvable<'_, E>>

👎Deprecated
CHILDS Read more
Source§

fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>
where Self: 'w,

CHILDS Read more
Source§

fn child_bounds( &self, l: Link<'_, E>, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Vec<Bounds>, ()>

LAYOUT Read more
Source§

fn focusable(&self) -> bool

If the widget should be focusable Read more
Source§

fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>

👎Deprecated
CHILDS Read more
Source§

fn resolve(&self, i: E::WidgetPath) -> Result<Resolvable<'_, E>, GuionError<E>>

RESOLVING
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,

RESOLVING
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>>

RESOLVING
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>>

LAYOUT Read more
Source§

fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath

👎Deprecated
RESOLVING
Attach widget’s id to the given parent path Read more
Source§

fn resolved_by_path( &self, sub_path: &E::WidgetPath, ) -> Option<ResolvesThruResult<E>>

👎Deprecated
Source§

fn _focus_on_mouse_down(&self) -> bool

Source§

fn _tabulate_by_tab(&self) -> bool

Source§

fn debug_type_name(&self, dest: &mut Vec<&'static str>)

Source§

fn inner(&self) -> Option<&dyn Widget<E>>

Source§

fn child(&self, i: usize) -> Result<Resolvable<'_, E>, ()>

CHILDS Read more
Source§

fn into_child<'w>(self: Box<Self>, i: usize) -> Result<Resolvable<'w, E>, ()>
where Self: 'w,

CHILDS Read more
Source§

fn box_ref(&self) -> WidgetRef<'_, E>

BOXING
Box reference of this widget immutable. Use WidgetMut::box_mut to box into mutable WidgetRef. Read more
Source§

fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>
where Self: 'w,

BOXING
Move widget into box immutable. Use WidgetMut::box_box_mut to box into mutable WidgetRef. Read more
Source§

fn boxed<'w>(self) -> WidgetRef<'w, E>
where Self: Sized + 'w,

BOXING
Move widget into box immutable. Use WidgetMut::boxed_mut to box into mutable WidgetRef. Read more
Source§

fn _tabulate_next_child( &self, _l: Link<'_, E>, origin: TabulateNextChildOrigin, dir: TabulateDirection, ) -> TabulateNextChildResponse

Determines the next child in this widget in the tabulation step
Source§

fn _tabulate( &self, l: Link<'_, E>, op: TabulateOrigin<E>, dir: TabulateDirection, ) -> Result<TabulateResponse<E>, GuionError<E>>

Source§

fn innest(&self) -> Option<&dyn Widget<E>>

Source§

fn debugged_type_name(&self) -> Vec<&'static str>

Source§

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,

Source§

fn id(&self) -> E::WidgetID

Source§

fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)

RENDER IMPL
RENDER USER generally not called directly, rather through Link::render Read more
Source§

fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp

EVENT IMPL
EVENT USER generally not called directly, rather through Link::event Read more
Source§

fn _size(&self, l: Link<'_, E>, e: &EStyle<E>) -> ESize<E>

LAYOUT IMPL
LAYOUT USER generally not called directly, rather through Link::size Read more
Source§

fn childs(&self) -> usize

CHILDS Read more
Source§

fn childs_ref(&self) -> Vec<Resolvable<'_, E>>

👎Deprecated
CHILDS Read more
Source§

fn into_childs<'w>(self: Box<Self>) -> Vec<Resolvable<'w, E>>
where Self: 'w,

CHILDS Read more
Source§

fn child_bounds( &self, l: Link<'_, E>, b: &Bounds, e: &EStyle<E>, force: bool, ) -> Result<Vec<Bounds>, ()>

LAYOUT Read more
Source§

fn focusable(&self) -> bool

If the widget should be focusable Read more
Source§

fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>

👎Deprecated
CHILDS Read more
Source§

fn resolve(&self, i: E::WidgetPath) -> Result<Resolvable<'_, E>, GuionError<E>>

RESOLVING
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,

RESOLVING
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>>

RESOLVING
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>>

LAYOUT Read more
Source§

fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath

👎Deprecated
RESOLVING
Attach widget’s id to the given parent path Read more
Source§

fn resolved_by_path( &self, sub_path: &E::WidgetPath, ) -> Option<ResolvesThruResult<E>>

👎Deprecated
Source§

fn _focus_on_mouse_down(&self) -> bool

Source§

fn _tabulate_by_tab(&self) -> bool

Source§

fn debug_type_name(&self, dest: &mut Vec<&'static str>)

Source§

fn inner(&self) -> Option<&dyn Widget<E>>

Source§

fn child(&self, i: usize) -> Result<Resolvable<'_, E>, ()>

CHILDS Read more
Source§

fn into_child<'w>(self: Box<Self>, i: usize) -> Result<Resolvable<'w, E>, ()>
where Self: 'w,

CHILDS Read more
Source§

fn box_ref(&self) -> WidgetRef<'_, E>

BOXING
Box reference of this widget immutable. Use WidgetMut::box_mut to box into mutable WidgetRef. Read more
Source§

fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>
where Self: 'w,

BOXING
Move widget into box immutable. Use WidgetMut::box_box_mut to box into mutable WidgetRef. Read more
Source§

fn boxed<'w>(self) -> WidgetRef<'w, E>
where Self: Sized + 'w,

BOXING
Move widget into box immutable. Use WidgetMut::boxed_mut to box into mutable WidgetRef. Read more
Source§

fn _tabulate_next_child( &self, _l: Link<'_, E>, origin: TabulateNextChildOrigin, dir: TabulateDirection, ) -> TabulateNextChildResponse

Determines the next child in this widget in the tabulation step
Source§

fn _tabulate( &self, l: Link<'_, E>, op: TabulateOrigin<E>, dir: TabulateDirection, ) -> Result<TabulateResponse<E>, GuionError<E>>

Source§

fn innest(&self) -> Option<&dyn Widget<E>>

Source§

fn debugged_type_name(&self) -> Vec<&'static str>

Source§

fn gen_diag_error_resolve_fail( &self, sub_path: &E::WidgetPath, op: &'static str, ) -> GuionError<E>

Implementations on Foreign Types§

Source§

impl<E> Widget<E> for Box<dyn Widget<E> + '_>
where E: Env,

Source§

fn id(&self) -> E::WidgetID

Source§

fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)

Source§

fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp

Source§

fn _size(&self, l: Link<'_, E>, e: &EStyle<E>) -> ESize<E>

Source§

fn childs(&self) -> usize

Source§

fn childs_ref(&self) -> Vec<Resolvable<'_, E>>

👎Deprecated
Source§

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>, ()>

Source§

fn focusable(&self) -> bool

Source§

fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>

👎Deprecated
Source§

fn resolve(&self, i: E::WidgetPath) -> Result<Resolvable<'_, E>, GuionError<E>>

Source§

fn into_resolve<'w>( self: Box<Self>, i: E::WidgetPath, ) -> Result<Resolvable<'w, E>, GuionError<E>>
where Self: 'w,

Source§

fn resolve_child( &self, p: &E::WidgetPath, ) -> Result<(usize, E::WidgetPath), GuionError<E>>

Source§

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

👎Deprecated
Source§

fn resolved_by_path( &self, sub_path: &E::WidgetPath, ) -> Option<ResolvesThruResult<E>>

👎Deprecated
Source§

fn _focus_on_mouse_down(&self) -> bool

Source§

fn _tabulate_by_tab(&self) -> bool

Source§

fn debug_type_name(&self, dest: &mut Vec<&'static str>)

Source§

fn inner(&self) -> Option<&dyn Widget<E>>

Source§

fn child(&self, i: usize) -> Result<Resolvable<'_, E>, ()>

Source§

fn into_child<'w>(self: Box<Self>, i: usize) -> Result<Resolvable<'w, E>, ()>
where Self: 'w,

Source§

fn box_ref(&self) -> WidgetRef<'_, E>

Source§

fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>
where Self: 'w,

Source§

fn boxed<'w>(self) -> WidgetRef<'w, E>
where Self: Sized + 'w,

Source§

impl<E> Widget<E> for Box<dyn WidgetMut<E> + '_>
where E: Env,

Source§

fn id(&self) -> E::WidgetID

Source§

fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)

Source§

fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp

Source§

fn _size(&self, l: Link<'_, E>, e: &EStyle<E>) -> ESize<E>

Source§

fn childs(&self) -> usize

Source§

fn childs_ref(&self) -> Vec<Resolvable<'_, E>>

👎Deprecated
Source§

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>, ()>

Source§

fn focusable(&self) -> bool

Source§

fn child_paths(&self, own_path: E::WidgetPath) -> Vec<E::WidgetPath>

👎Deprecated
Source§

fn resolve(&self, i: E::WidgetPath) -> Result<Resolvable<'_, E>, GuionError<E>>

Source§

fn into_resolve<'w>( self: Box<Self>, i: E::WidgetPath, ) -> Result<Resolvable<'w, E>, GuionError<E>>
where Self: 'w,

Source§

fn resolve_child( &self, p: &E::WidgetPath, ) -> Result<(usize, E::WidgetPath), GuionError<E>>

Source§

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

👎Deprecated
Source§

fn resolved_by_path( &self, sub_path: &E::WidgetPath, ) -> Option<ResolvesThruResult<E>>

👎Deprecated
Source§

fn _focus_on_mouse_down(&self) -> bool

Source§

fn _tabulate_by_tab(&self) -> bool

Source§

fn debug_type_name(&self, dest: &mut Vec<&'static str>)

Source§

fn inner(&self) -> Option<&dyn Widget<E>>

Source§

fn child(&self, i: usize) -> Result<Resolvable<'_, E>, ()>

Source§

fn into_child<'w>(self: Box<Self>, i: usize) -> Result<Resolvable<'w, E>, ()>
where Self: 'w,

Source§

fn box_ref(&self) -> WidgetRef<'_, E>

Source§

fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E>
where Self: 'w,

Source§

fn boxed<'w>(self) -> WidgetRef<'w, E>
where Self: Sized + 'w,

Implementors§

Source§

impl<'w, E> Widget<E> for ProgressBar<'w, E>
where E: Env, ERenderer<E>: RenderStdWidgets<E>,

Source§

impl<'w, E, L, R, V> Widget<E> for SplitPane<'w, E, L, R, V>
where E: Env, ERenderer<E>: RenderStdWidgets<E>, EEvent<E>: StdVarSup<E>, E::Context: CtxStdState<E>, L: AsWidget<E>, R: AsWidget<E>, V: AtomState<E, f32>,

Source§

impl<'w, E, State, Text> Widget<E> for CheckBox<'w, E, State, Text>
where E: Env, ERenderer<E>: RenderStdWidgets<E>, EEvent<E>: StdVarSup<E>, E::Context: CtxStdState<E>, State: AtomState<E, bool>, Text: AsWidget<E>,

Source§

impl<'w, E, T> Widget<E> for Pane<'w, E, T>
where E: Env, T: WidgetArray<E>,

Source§

impl<'w, E, Text> Widget<E> for Button<'w, E, Text>
where E: Env, ERenderer<E>: RenderStdWidgets<E>, EEvent<E>: StdVarSup<E>, E::Context: CtxStdState<E>, Text: AsWidget<E>,

Source§

impl<'w, E, Text, GlyphCache> Widget<E> for Label<'w, E, Text, GlyphCache>
where E: Env, ERenderer<E>: RenderStdWidgets<E>, EEvent<E>: StdVarSup<E>, Text: Caption<E> + Validation<E> + 'w, GlyphCache: AtomState<E, LocalGlyphCache<E>> + Clone,

Source§

impl<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache> Widget<E> for TextBox<'w, E, Text, Scroll, Curs, CursorStickX, GlyphCache>
where E: Env, ERenderer<E>: RenderStdWidgets<E>, EEvent<E>: StdVarSup<E>, E::Context: CtxStdState<E> + CtxClipboardAccess<E>, Text: Caption<E> + Validation<E> + 'w, Scroll: AtomState<E, (u32, u32)>, Curs: AtomState<E, Cursor>, CursorStickX: AtomState<E, Option<u32>>, GlyphCache: AtomState<E, LocalGlyphCache<E>> + Clone,

Source§

impl<'w, E, W, Scroll> Widget<E> for Area<'w, E, W, Scroll>
where E: Env, ERenderer<E>: RenderStdWidgets<E>, EEvent<E>: StdVarSup<E>, E::Context: CtxStdState<E> + CtxClipboardAccess<E>, W: AsWidget<E> + 'w, Scroll: AtomState<E, (u32, u32)>,

Source§

impl<E> Widget<E> for &(dyn Widget<E> + '_)
where E: Env,

Source§

impl<E> Widget<E> for &(dyn WidgetMut<E> + '_)
where E: Env,

Source§

impl<E> Widget<E> for &mut (dyn Widget<E> + '_)
where E: Env,

Source§

impl<E> Widget<E> for &mut (dyn WidgetMut<E> + '_)
where E: Env,