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> { ... } }

Provided Methods

Add a widget WIDGET to the current widget.

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.

Implementors