pub enum Command {
    AppendChild(WidgetIdWidgetId),
    RemoveAllChildren(WidgetId),
    RemoveChild(WidgetIdWidgetId),
    SetDebugRendering(WidgetIdbool),
    SetHasFocus(WidgetIdbool),
    SetIsDisabled(WidgetIdbool),
    SetIsHidden(WidgetIdbool),
    SetMainWidget(WidgetId),
    SetValue(WidgetIdBox<dyn Any>),
}
Expand description

A command to the widget manager or widgets.

Variants

AppendChild(WidgetIdWidgetId)

Append the child widget.

RemoveAllChildren(WidgetId)

Remove the widget’s children.

RemoveChild(WidgetIdWidgetId)

Remove the child widget.

SetDebugRendering(WidgetIdbool)

Enables/disables debug rendering mode for the widget.

SetHasFocus(WidgetIdbool)

Gives/removes focus to the widget.

SetIsDisabled(WidgetIdbool)

Enables/disables the widget.

SetIsHidden(WidgetIdbool)

Hides/shows the widget.

SetMainWidget(WidgetId)

Makes the widget with the given ID the main widget.

SetValue(WidgetIdBox<dyn Any>)

Sets the given value to the widget.

Implementations

Returns the ID of the receiver 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.