pub struct EmptyW;Expand description
Empty widget placeholder.
Trait Implementations§
Source§impl<X: GXExt> GuiWidget<X> for EmptyW
impl<X: GXExt> GuiWidget<X> for EmptyW
Source§fn handle_update(
&mut self,
_rt: &Handle,
_id: ExprId,
_v: &Value,
) -> Result<bool>
fn handle_update( &mut self, _rt: &Handle, _id: ExprId, _v: &Value, ) -> Result<bool>
Process a value update from graphix. Widgets that own child
refs use
rt to block_on recompilation of their subtree.
Returns true if the widget changed and the window should redraw.Source§fn view(&self) -> IcedElement<'_>
fn view(&self) -> IcedElement<'_>
Build the iced Element tree for rendering.
Source§fn children_mut(&mut self) -> &mut [GuiW<X>] ⓘ
fn children_mut(&mut self) -> &mut [GuiW<X>] ⓘ
Child widgets that
on_message and before_view should
forward to. Leaf widgets return &mut [] (the default).
Containers (row, column, container, scrollable, stack, …)
override this so that messages flow down to nested widgets
like data_table — without it the event loop delivers
messages to the window’s top-level widget only.fn children(&self) -> &[GuiW<X>] ⓘ
Source§fn on_message(&mut self, msg: &Message, shell: &mut MessageShell) -> bool
fn on_message(&mut self, msg: &Message, shell: &mut MessageShell) -> bool
Dispatch a message to the widget. Returns
true if the
widget changed and a redraw is needed. Widgets that emit
follow-up messages (e.g. a Call fired from a column-resize
drag) publish through shell. The default implementation
forwards to children — containers don’t need to override.Source§fn is_column_resizing(&self) -> bool
fn is_column_resizing(&self) -> bool
True if this widget (or any descendant) is currently tracking
a column-resize drag. The event loop polls this to decide
whether a cursor-moved event should be routed as a drag update.
Source§fn before_view(&mut self) -> bool
fn before_view(&mut self) -> bool
Called immediately before
view() so widgets can flush deferred
state that arrived asynchronously from background tasks (e.g.
data_table re-sorting after sort-column subscription data
arrives outside of the graphix update cycle). Returns true if
state changed and the window should redraw. The default forwards
to children so containers don’t have to.Auto Trait Implementations§
impl Freeze for EmptyW
impl RefUnwindSafe for EmptyW
impl Send for EmptyW
impl Sync for EmptyW
impl Unpin for EmptyW
impl UnsafeUnpin for EmptyW
impl UnwindSafe for EmptyW
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.