pub struct Alignment {
pub x: f64,
pub y: f64,
}Expand description
A relative alignment within a box: each axis runs -1.0 (start) through
0.0 (center) to 1.0 (end).
Fields§
§x: f64Horizontal position: -1.0 = left, 0.0 = center, 1.0 = right.
y: f64Vertical position: -1.0 = top, 0.0 = center, 1.0 = bottom.
Implementations§
Source§impl Alignment
impl Alignment
Sourcepub const BOTTOM_LEFT: Self
pub const BOTTOM_LEFT: Self
Bottom-left corner.
Sourcepub const BOTTOM_RIGHT: Self
pub const BOTTOM_RIGHT: Self
Bottom-right corner.
Trait Implementations§
impl Copy for Alignment
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnsafeUnpin for Alignment
impl UnwindSafe for Alignment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.