[−][src]Struct ommui_relm_widgets::description_listbox::W
The widget.
Trait Implementations
impl Widget for W
[src]
type Root = ListBox
The type of the root widget.
fn root(&self) -> Self::Root
[src]
fn view(relm: &Relm<Self>, model: Self::Model) -> Self
[src]
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 on_add<W>(&self, _parent: W) where
W: IsA<Widget> + IsA<Object>,
[src]
W: IsA<Widget> + IsA<Object>,
Method called when the widget is added to its parent.
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 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 W
[src]
type Model = Param
The type of the model.
type ModelParam = Param
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: Param) -> Self::Model
[src]
fn update(&mut self, event: Msg)
[src]
fn subscriptions(&mut self, _relm: &Relm<Self>)
[src]
Connect the subscriptions. Subscriptions are Future
/Stream
that are spawn when the object is created. Read more
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,