Trait relm::ContainerWidget [] [src]

pub trait ContainerWidget {
    fn add_container<CHILDWIDGET, WIDGET>(
        &self,
        relm: &Relm<WIDGET>,
        model_param: CHILDWIDGET::ModelParam
    ) -> ContainerComponent<CHILDWIDGET>
    where
        CHILDWIDGET: Container + Widget + 'static,
        CHILDWIDGET::Msg: DisplayVariant + 'static,
        CHILDWIDGET::Root: IsA<Widget> + IsA<Object> + WidgetExt,
        WIDGET: Widget
;
fn add_widget<CHILDWIDGET, WIDGET>(
        &self,
        relm: &Relm<WIDGET>,
        model_param: CHILDWIDGET::ModelParam
    ) -> Component<CHILDWIDGET>
    where
        CHILDWIDGET: Widget + 'static,
        CHILDWIDGET::Msg: DisplayVariant + 'static,
        CHILDWIDGET::Root: IsA<Widget> + IsA<Object> + WidgetExt,
        WIDGET: Widget
;
fn remove_widget<CHILDWIDGET>(&self, component: Component<CHILDWIDGET>)
    where
        CHILDWIDGET: Widget,
        CHILDWIDGET::Root: IsA<Widget>
; }

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

Required Methods

Add a relm Container to the current GTK+ container.

Note

The returned ContainerComponent 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.

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