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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.