Enum guiver::widget::WidgetCommand
source · [−]pub enum WidgetCommand {
AppendChild(Rc<RefCell<Box<dyn Widget>>>),
RemoveAllChildren,
RemoveChild(WidgetId),
SetDebugRendering(bool),
SetHasFocus(bool),
SetIsDisabled(bool),
SetIsHidden(bool),
SetValue(Box<dyn Any>),
}
Expand description
A command to a widget.
Variants
AppendChild(Rc<RefCell<Box<dyn Widget>>>)
Append the child widget.
RemoveAllChildren
Remove the widget’s children.
RemoveChild(WidgetId)
Remove the child widget.
SetDebugRendering(bool)
Enables/disables debug rendering mode.
SetHasFocus(bool)
Gives/removes focus to the widget.
SetIsDisabled(bool)
Enables/disables the widget.
SetIsHidden(bool)
Hides/shows the widget.
SetValue(Box<dyn Any>)
Sets the given value to the widget.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for WidgetCommand
impl !Send for WidgetCommand
impl !Sync for WidgetCommand
impl Unpin for WidgetCommand
impl !UnwindSafe for WidgetCommand
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