Struct mg::StatusBarItem
source · pub struct StatusBarItem { /* private fields */ }
Trait Implementations§
source§impl Update for StatusBarItem
impl Update for StatusBarItem
§type ModelParam = ()
type ModelParam = ()
The type of the parameter of the model() function used to initialize the model.
source§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.source§impl Widget for StatusBarItem
impl Widget for StatusBarItem
A status bar text item.
source§fn on_add<W: IsA<Widget> + IsA<Object>>(&self, parent: W)
fn on_add<W: IsA<Widget> + IsA<Object>>(&self, parent: W)
Method called when the widget is added to its parent.
This is currently only used to set the child properties of a widget as relm widget could
have child properties and we don’t know its parent when it is defined. Thus, we call
on_add() when it is added to its parent to set the child properties.
source§fn parent_id() -> Option<&'static str>
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.Auto Trait Implementations§
impl RefUnwindSafe for StatusBarItem
impl !Send for StatusBarItem
impl !Sync for StatusBarItem
impl Unpin for StatusBarItem
impl UnwindSafe for StatusBarItem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more