Struct mg::StatusBarItem
[−]
[src]
pub struct StatusBarItem { /* fields omitted */ }
Trait Implementations
impl Widget for StatusBarItem
[src]
A status bar text item.
fn on_add<W: IsA<Widget> + IsA<Object>>(&self, parent: W)
[src]
Method called when the widget is added to its parent.
fn view(relm: &Relm<Self>, __relm_model: Self::Model) -> Self
[src]
Create the initial view.
type Root = Label
The type of the root widget.
fn parent_id() -> Option<&'static str>
[src]
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 root(&self) -> Self::Root
[src]
Get the root widget of the view.e. the root widget of the view.
fn init_view(&mut self)
[src]
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 run(model_param: Self::ModelParam) -> Result<(), ()> where
Self: 'static,
[src]
Self: 'static,
Create the window from this widget and start the main loop.
impl Update for StatusBarItem
[src]
type Msg = ItemMsg
The type of the messages sent to the update()
method.
type 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: ItemMsg)
[src]
Method called when a message is received from an event.
fn model(_: &Relm<Self>, _: ())
[src]
Create the initial model.
fn subscriptions(&mut self, _relm: &Relm<Self>)
Connect the subscriptions. Subscriptions are Future
/Stream
that are spawn when the object is created. Read more