Struct mg::StatusBar [−][src]
pub struct StatusBar { /* fields omitted */ }
Trait Implementations
impl Widget for StatusBar
[src]
impl Widget for StatusBar
fn init_view(&mut self)
[src]
fn init_view(&mut self)
Update the view after it is initially created. This method is only useful when using the #[widget]
attribute, because when not using it, you can use the view()
method instead. Read more
fn view(relm: &Relm<Self>, __relm_model: Self::Model) -> Self
[src]
fn view(relm: &Relm<Self>, __relm_model: Self::Model) -> Self
Create the initial view.
type Root = Box
The type of the root widget.
fn root(&self) -> Self::Root
[src]
fn root(&self) -> Self::Root
Get the root widget of the view.
fn on_add<W>(&self, _parent: W) where
W: IsA<Widget> + IsA<Object>,
[src]
fn on_add<W>(&self, _parent: W) where
W: IsA<Widget> + IsA<Object>,
Method called when the widget is added to its parent.
fn parent_id() -> Option<&'static str>
[src]
fn parent_id() -> Option<&'static str>
Get the parent ID. This is useful for custom Container implementation: when you implement the Container::add_widget()
, you might want to insert widgets elsewhere depending of this id. Read more
fn run(model_param: Self::ModelParam) -> Result<(), ()> where
Self: 'static,
[src]
fn run(model_param: Self::ModelParam) -> Result<(), ()> where
Self: 'static,
Create the window from this widget and start the main loop.
impl Container for StatusBar
[src]
impl Container for StatusBar
type Container = Box
The type of the containing widget, i.e. where the child widgets will be added.
type Containers = ()
Type to contain the additional container widgets.
fn container(&self) -> &Self::Container
[src]
fn container(&self) -> &Self::Container
Get the containing widget, i.e. the widget where the children will be added.
fn other_containers(&self) -> Self::Containers
[src]
fn other_containers(&self) -> Self::Containers
Get additional container widgets. This is useful to create a multi-container. Read more
fn add_widget<WIDGET>(
container: &ContainerComponent<Self>,
component: &Component<WIDGET>
) -> Container where
WIDGET: Widget,
[src]
fn add_widget<WIDGET>(
container: &ContainerComponent<Self>,
component: &Component<WIDGET>
) -> Container where
WIDGET: Widget,
Add a relm widget to this container. Return the widget that will be send to Widget::on_add(). Read more
impl Update for StatusBar
[src]
impl Update for StatusBar
type Msg = Msg
The type of the messages sent to the update()
method.
type Model = Model
The type of the model.
type ModelParam = ()
The type of the parameter of the model() function used to initialize the model.
fn update(&mut self, msg: Msg)
[src]
fn update(&mut self, msg: Msg)
Method called when a message is received from an event.
fn model(relm: &Relm<Self>, _: ()) -> Model
[src]
fn model(relm: &Relm<Self>, _: ()) -> Model
Create the initial model.
fn subscriptions(&mut self, _relm: &Relm<Self>)
fn subscriptions(&mut self, _relm: &Relm<Self>)
Connect the subscriptions. Subscriptions are Future
/Stream
that are spawn when the object is created. Read more
impl WidgetTest for StatusBar
[src]
impl WidgetTest for StatusBar
type Widgets = __StatusBarWidgets
Represents the structure holding all the widgets. Useful for tests.
fn get_widgets(&self) -> __StatusBarWidgets
[src]
fn get_widgets(&self) -> __StatusBarWidgets
Get the structure containing all the widgets. Useful for tests.