#[non_exhaustive]pub enum Placement {
Show 17 variants
Below,
Above,
Right,
AboveCenter,
RightCenter,
LeftCenter,
RightEnd,
LeftStart,
LeftEnd,
Fill,
At(Point),
BottomRight,
BottomLeft,
BottomCenter,
TopLeft,
TopCenter,
TopRight,
}Expand description
Where an overlay is placed relative to its anchor.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Below
Below the anchor, left edges aligned.
Above
Above the anchor, left edges aligned.
Right
To the right of the anchor, top edges aligned; to its left when only that fits.
AboveCenter
Centered above the anchor (tooltips).
RightCenter
To the right of the anchor, centers aligned (tooltips beside a rail).
LeftCenter
To the left of the anchor, centers aligned (tooltips beside a rail).
RightEnd
To the right of the anchor, bottom edges aligned.
LeftStart
To the left of the anchor, top edges aligned.
LeftEnd
To the left of the anchor, bottom edges aligned.
Fill
Covers the whole viewport (dialogs, sheets); the anchor is ignored.
At(Point)
At a point in the viewport (context menus); the anchor is ignored.
BottomRight
The bottom-right corner of the viewport (toasts).
BottomLeft
The bottom-left corner of the viewport; the anchor is ignored.
BottomCenter
The middle of the bottom edge of the viewport; the anchor is ignored.
TopLeft
The top-left corner of the viewport; the anchor is ignored.
TopCenter
The middle of the top edge of the viewport; the anchor is ignored.
TopRight
The top-right corner of the viewport; the anchor is ignored.