Trait relm::Container [] [src]

pub trait Container: Widget {
    type Container: IsA<Container> + IsA<Object>;
    fn container(&self) -> &Self::Container;

    fn add<W: IsA<Widget>>(&self, widget: &W) { ... }
    fn add_widget<WIDGET: Widget>(&self, widget: &WIDGET) { ... }
}

Trait to implement relm container widget.

Associated Types

The type of the containing widget, i.e. where the child widgets will be added.

Required Methods

Get the containing widget, i.e. the widget where the children will be added.

Provided Methods

Add a GTK+ widget to this container.

Add a relm widget to this container.

Implementors