[][src]Struct mergui::LayerId

pub struct LayerId { /* fields omitted */ }

Used to create widgets at a layer. Once this and every widget on this layer are dropped, so is the internal layer.

Implementations

impl LayerId[src]

pub fn add_widget<ReturnChannel, W: Widget + 'static>(
    &mut self,
    widget_config: impl WidgetConfig<ReturnChannel, W>
) -> Response<ReturnChannel>
[src]

Adds a widget configuration to the layer that this id represents. Returns a channel to comunicate with the widget.

pub fn set_is_active(&self, is_active: bool)[src]

Set a layer to active or inactive. Layers that are inactive won't be rendered or receive updates.

pub fn get_active(&self) -> bool[src]

Get if the layer is active or not.

Trait Implementations

impl Clone for LayerId[src]

Auto Trait Implementations

impl !RefUnwindSafe for LayerId

impl !Send for LayerId

impl !Sync for LayerId

impl Unpin for LayerId

impl !UnwindSafe for LayerId

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.