pub struct ContainerComponent<WIDGET: Container + Widget> {
    pub container: WIDGET::Container,
    pub containers: WIDGET::Containers,
    /* private fields */
}
Expand description

Struct for relm containers to add GTK+ and relm Widgets.

Fields

container: WIDGET::Container

The default container of this component.

containers: WIDGET::Containers

Additional containers used for multi-containers. This can be () if not needed.

Implementations

Add a GTK+ widget to a relm container.

Add a relm widget to a relm container.

Emit a message of the widget stream.

Get the event stream of the component. This is used internally by the library.

Get the event stream of the component. This is used internally by the library.

Get the widget of the component.

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.