Struct ommui_relm_widgets::message::W [−][src]
pub struct W { /* fields omitted */ }
The message widget.
Trait Implementations
impl Update for W
[src]
impl Update for W
type Model = Model
The type of the model.
type ModelParam = String
The type of the parameter of the model() function used to initialize the model.
type Msg = Msg
The type of the messages sent to the update()
method.
fn model(_relm: &Relm<Self>, details: String) -> Model
[src]
fn model(_relm: &Relm<Self>, details: String) -> Model
Create the initial model.
fn update(&mut self, event: Msg)
[src]
fn update(&mut self, event: Msg)
Method called when a message is received from an event.
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 Widget for W
[src]
impl Widget for W
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 view(_relm: &Relm<Self>, model: Self::Model) -> Self
[src]
fn view(_relm: &Relm<Self>, model: Self::Model) -> Self
Create the initial view.
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 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.