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 !RefUnwindSafe for Command
impl !Send for Command
impl !Sync for Command
impl Unpin for Command
impl !UnwindSafe for Command
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more