Enum wayland_protocols::wlr::unstable::layer_shell::v1::client::zwlr_layer_shell_v1::Layer
source · #[non_exhaustive]#[repr(u32)]pub enum Layer {
Background = 0,
Bottom = 1,
Top = 2,
Overlay = 3,
}
Expand description
available layers for surfaces
These values indicate which layers a surface can be rendered in. They are ordered by z depth, bottom-most first. Traditional shell surfaces will typically be rendered between the bottom and top layers. Fullscreen shell surfaces are typically rendered at the top layer. Multiple surfaces can share a single layer, and ordering within a single layer is undefined.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
source§impl PartialEq for Layer
impl PartialEq for Layer
impl Copy for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more