Trait relm::ContainerWidget [] [src]

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