Trait relm::Container
[−]
[src]
pub trait Container: Widget { type Container: Clone + 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) -> Container { ... } }
Trait to implement relm container widget.
Associated Types
type Container: Clone + IsA<Container> + IsA<Object>
The type of the containing widget, i.e. where the child widgets will be added.
Required Methods
fn container(&self) -> &Self::Container
Get the containing widget, i.e. the widget where the children will be added.
Provided Methods
fn add<W: IsA<Widget>>(&self, widget: &W)
Add a GTK+ widget to this container.
fn add_widget<WIDGET: Widget>(&self, widget: &WIDGET) -> Container
Add a relm widget to this container.