[−][src]Struct relm::ContainerComponent
Struct for relm containers to add GTK+ and relm Widget
s.
Fields
container: WIDGET::Container
The default container of this component.
containers: WIDGET::Containers
Additional containers used for multi-containers. This can be () if not needed.
Methods
impl<WIDGET: Container + Widget> ContainerComponent<WIDGET>
[src]
pub fn add<CHILDWIDGET: IsA<Widget>>(&self, widget: &CHILDWIDGET)
[src]
Add a GTK+ widget to a relm container.
pub fn add_widget<CHILDWIDGET>(
&self,
model_param: CHILDWIDGET::ModelParam
) -> Component<CHILDWIDGET> where
CHILDWIDGET: Widget + 'static,
WIDGET::Container: ContainerExt + IsA<Widget> + IsA<Object>,
[src]
&self,
model_param: CHILDWIDGET::ModelParam
) -> Component<CHILDWIDGET> where
CHILDWIDGET: Widget + 'static,
WIDGET::Container: ContainerExt + IsA<Widget> + IsA<Object>,
Add a relm widget to a relm container.
pub fn emit(&self, msg: WIDGET::Msg)
[src]
Emit a message of the widget stream.
pub fn stream(&self) -> &EventStream<WIDGET::Msg>
[src]
Get the event stream of the component. This is used internally by the library.
pub fn widget(&self) -> &WIDGET::Root
[src]
Get the widget of the component.
Trait Implementations
impl<WIDGET: Container + Widget> Clone for ContainerComponent<WIDGET>
[src]
Auto Trait Implementations
impl<WIDGET> !Send for ContainerComponent<WIDGET>
impl<WIDGET> Unpin for ContainerComponent<WIDGET> where
<WIDGET as Container>::Container: Unpin,
<WIDGET as Container>::Containers: Unpin,
<WIDGET as Update>::Msg: Unpin,
<WIDGET as Widget>::Root: Unpin,
<WIDGET as Container>::Container: Unpin,
<WIDGET as Container>::Containers: Unpin,
<WIDGET as Update>::Msg: Unpin,
<WIDGET as Widget>::Root: Unpin,
impl<WIDGET> !Sync for ContainerComponent<WIDGET>
impl<WIDGET> UnwindSafe for ContainerComponent<WIDGET> where
<WIDGET as Container>::Container: UnwindSafe,
<WIDGET as Container>::Containers: UnwindSafe,
<WIDGET as Update>::Msg: RefUnwindSafe,
<WIDGET as Widget>::Root: UnwindSafe,
<WIDGET as Container>::Container: UnwindSafe,
<WIDGET as Container>::Containers: UnwindSafe,
<WIDGET as Update>::Msg: RefUnwindSafe,
<WIDGET as Widget>::Root: UnwindSafe,
impl<WIDGET> RefUnwindSafe for ContainerComponent<WIDGET> where
<WIDGET as Container>::Container: RefUnwindSafe,
<WIDGET as Container>::Containers: RefUnwindSafe,
<WIDGET as Update>::Msg: RefUnwindSafe,
<WIDGET as Widget>::Root: RefUnwindSafe,
<WIDGET as Container>::Container: RefUnwindSafe,
<WIDGET as Container>::Containers: RefUnwindSafe,
<WIDGET as Update>::Msg: RefUnwindSafe,
<WIDGET as Widget>::Root: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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,