pub struct Layer {
pub layer: u32,
pub kind: String,
pub owner: String,
pub root: u32,
pub anchor_frame: Option<Frame>,
pub placement: Option<OverlayPlacement>,
pub position: String,
pub class: LayerClass,
pub modal: bool,
pub dismissible: bool,
pub frames: Vec<PlacedFrame>,
}Expand description
One overlay layer in paint order, frames in SURFACE coordinates.
Fields§
§layer: u32§kind: String§owner: String§root: u32§anchor_frame: Option<Frame>§placement: Option<OverlayPlacement>§position: StringDrawer: the viewport edge; Dialog: centered; anchored: the side it
landed on; a context menu: point; a toast: toast.
class: LayerClassoverlay or toast (base < overlay < toast; no z-index).
modal: boolA scrim under it and the focus trapped inside (Dialog, Drawer).
dismissible: boolEscape, a scrim press or a drag closes it (event(root, "dismiss")).
frames: Vec<PlacedFrame>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin 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