[−][src]Struct mergui::LayerId
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]
&mut self,
widget_config: impl WidgetConfig<ReturnChannel, W>
) -> Response<ReturnChannel>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,