Struct iced_native::Shell

source ·
pub struct Shell<'a, Message> { /* private fields */ }
Expand description

A connection to the state of a shell.

A Widget can leverage a Shell to trigger changes in an application, like publishing messages or invalidating the current layout.

Implementations§

Creates a new Shell with the provided buffer of messages.

Triggers the given function if the layout is invalid, cleaning it in the process.

Returns whether the current layout is invalid or not.

Publish the given Message for an application to process it.

Invalidates the current application layout.

The shell will relayout the application widgets.

Invalidates the current application widgets.

The shell will rebuild and relayout the widget tree.

Merges the current Shell with another one by applying the given function to the messages of the latter.

This method is useful for composition.

Returns whether the widgets of the current application have been invalidated.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Convert the source color to the destination color using the specified method Read more
Convert the source color to the destination color using the bradford method by default Read more
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.

Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
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.
Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more