Struct relm::ContainerComponent
[−]
[src]
pub struct ContainerComponent<WIDGET: Container + Widget> { pub container: WIDGET::Container, pub containers: WIDGET::Containers, // some fields omitted }
Struct for relm containers to add GTK+ and relm Widget
s.
Fields
container: WIDGET::Container
The default container of this component.
containers: WIDGET::Containers
Additional containers used for multi-containers. This can be () if not needed.
Methods
impl<WIDGET: Container + Widget> ContainerComponent<WIDGET>
[src]
fn add<CHILDWIDGET: IsA<Widget>>(&self, widget: &CHILDWIDGET)
[src]
Add a GTK+ widget to a relm container.
fn add_widget<CHILDWIDGET, PARENTWIDGET>(
&self,
relm: &Relm<PARENTWIDGET>,
model_param: CHILDWIDGET::ModelParam
) -> Component<CHILDWIDGET> where
CHILDWIDGET: Widget + 'static,
PARENTWIDGET: Widget,
WIDGET::Container: ContainerExt + IsA<Widget> + IsA<Object>,
[src]
&self,
relm: &Relm<PARENTWIDGET>,
model_param: CHILDWIDGET::ModelParam
) -> Component<CHILDWIDGET> where
CHILDWIDGET: Widget + 'static,
PARENTWIDGET: Widget,
WIDGET::Container: ContainerExt + IsA<Widget> + IsA<Object>,
Add a relm widget to a relm container.
fn emit(&self, msg: WIDGET::Msg)
[src]
Emit a message of the widget stream.
fn stream(&self) -> &EventStream<WIDGET::Msg>
[src]
Get the event stream of the component. This is used internally by the library.
fn widget(&self) -> &WIDGET::Root
[src]
Get the widget of the component.