pub enum Command {
AppendChild(WidgetId, WidgetId),
RemoveAllChildren(WidgetId),
RemoveChild(WidgetId, WidgetId),
SetDebugRendering(WidgetId, bool),
SetHasFocus(WidgetId, bool),
SetIsDisabled(WidgetId, bool),
SetIsHidden(WidgetId, bool),
SetMainWidget(WidgetId),
SetValue(WidgetId, Box<dyn Any>),
}
Expand description
A command to the widget manager or widgets.
Variants§
AppendChild(WidgetId, WidgetId)
Append the child widget.
RemoveAllChildren(WidgetId)
Remove the widget’s children.
RemoveChild(WidgetId, WidgetId)
Remove the child widget.
SetDebugRendering(WidgetId, bool)
Enables/disables debug rendering mode for the widget.
SetHasFocus(WidgetId, bool)
Gives/removes focus to the widget.
SetIsDisabled(WidgetId, bool)
Enables/disables the widget.
SetIsHidden(WidgetId, bool)
Hides/shows the widget.
SetMainWidget(WidgetId)
Makes the widget with the given ID the main widget.
SetValue(WidgetId, Box<dyn Any>)
Sets the given value to the widget.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl !RefUnwindSafe for Command
impl !Send for Command
impl !Sync for Command
impl Unpin for Command
impl !UnwindSafe for Command
Blanket Implementations§
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.