pub enum Pivot {
TopLeft,
Top,
TopRight,
Left,
Center,
Right,
BottomLeft,
Bottom,
BottomRight,
Baseline,
Relative(f64, f64),
Point(Point),
}Expand description
A local-space anchor used by authoring placement and transforms.
Relative coordinates are not clamped; explicit points need not lie inside bounds. Baseline falls back to BottomLeft without text baseline metrics.
Variants§
TopLeft
Upper-left corner.
Top
Midpoint of the upper edge.
TopRight
Upper-right corner.
Left
Midpoint of the left edge.
Center
Bounds midpoint; the default authoring pivot.
Right
Midpoint of the right edge.
BottomLeft
Lower-left corner.
Bottom
Midpoint of the lower edge.
BottomRight
Lower-right corner.
Baseline
Text baseline origin, or BottomLeft without baseline metrics.
Relative(f64, f64)
Fractions of the horizontal and vertical bounds, without clamping.
Point(Point)
An explicit point in local coordinates.
Trait Implementations§
impl Copy for Pivot
impl StructuralPartialEq for Pivot
Auto Trait Implementations§
impl Forget for Pivot
impl Freeze for Pivot
impl RefUnwindSafe for Pivot
impl Send for Pivot
impl Sync for Pivot
impl Unpin for Pivot
impl UnsafeUnpin for Pivot
impl UnwindSafe for Pivot
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