pub enum LayerPlacement {
Centered,
Edge(OverlaySide),
Anchored {
anchor: u32,
side: OverlaySide,
align: OverlayAlign,
},
AtPoint {
x: f32,
y: f32,
},
Toast {
order: u32,
},
}Expand description
How an overlay layer is placed.
Variants§
Centered
Centred in the viewport (Dialog).
Edge(OverlaySide)
Pinned to one viewport edge (Drawer).
Anchored
Against the anchor node’s frame (Popover, Tooltip, menus, pickers).
AtPoint
Against a point (a context Menu opened at the pointer).
Toast
The toast stack (bottom-centre on phones, bottom-end from md),
order 0 = nearest the edge.
Trait Implementations§
Source§impl Clone for LayerPlacement
impl Clone for LayerPlacement
Source§impl Debug for LayerPlacement
impl Debug for LayerPlacement
Source§impl PartialEq for LayerPlacement
impl PartialEq for LayerPlacement
impl StructuralPartialEq for LayerPlacement
Auto Trait Implementations§
impl Freeze for LayerPlacement
impl RefUnwindSafe for LayerPlacement
impl Send for LayerPlacement
impl Sync for LayerPlacement
impl Unpin for LayerPlacement
impl UnsafeUnpin for LayerPlacement
impl UnwindSafe for LayerPlacement
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