pub struct LayerSpec {
pub layer: u32,
pub root: u32,
pub kind: String,
pub owner: String,
pub placement: LayerPlacement,
pub class: LayerClass,
pub modal: bool,
pub dismissible: bool,
pub match_anchor_width: bool,
pub scroll_body: Option<u32>,
pub mirror: bool,
}Fields§
§layer: u32§root: u32§kind: String§owner: String§placement: LayerPlacement§class: LayerClass§modal: boolDialog/Drawer: a scrim under it, the focus trapped inside.
dismissible: boolEscape / a scrim press / a drag closes it.
match_anchor_width: boolThe popup is at least as wide as its anchor (Select, pickers).
scroll_body: Option<u32>The layer’s body that scrolls when the content is taller than the
viewport (Dialog/Drawer body, a popup list).
mirror: boolThe side is LOGICAL (a submenu opens at the inline end): right in LTR, left in RTL.
Trait Implementations§
impl StructuralPartialEq for LayerSpec
Auto Trait Implementations§
impl Freeze for LayerSpec
impl RefUnwindSafe for LayerSpec
impl Send for LayerSpec
impl Sync for LayerSpec
impl Unpin for LayerSpec
impl UnsafeUnpin for LayerSpec
impl UnwindSafe for LayerSpec
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