Trait relm::ContainerWidget [] [src]

pub trait ContainerWidget where
    Self: ContainerExt, 
{ fn add_widget<WIDGET, MSG, WIDGETMSG>(
        &self,
        relm: &RemoteRelm<MSG>
    ) -> Component<WIDGET::Model, WIDGETMSG, WIDGET::Container>
    where
        MSG: Clone + DisplayVariant + Send + 'static,
        WIDGET: Widget<WIDGETMSG> + 'static,
        WIDGET::Container: IsA<Object> + WidgetExt,
        WIDGET::Model: Send,
        WIDGETMSG: Clone + DisplayVariant + Send + 'static
, { ... } fn remove_widget<MODEL, MSG: Clone + DisplayVariant + 'static, WIDGET>(
        &self,
        component: Component<MODEL, MSG, WIDGET>
    )
    where
        WIDGET: IsA<Widget>
, { ... } }

Extension trait for GTK+ containers to add and remove relm Widgets.

Provided Methods

Add a relm Widget to the current GTK+ container.

Note

The returned Component must be stored in a Widget. If it is not stored, a communication receiver will be droped which will cause events to be ignored for this widget.

Remove a relm Widget from the current GTK+ container.

Implementors