pub struct Align2 {
pub x: Align,
pub y: Align,
}Expand description
Two-axis alignment — combination of horizontal + vertical Align.
Common variants are exposed as constants
(LEFT_TOP, CENTER_CENTER, RIGHT_BOTTOM, …) so call sites read
like CSS text-align / vertical-align.
Fields§
§x: AlignHorizontal alignment.
y: AlignVertical alignment.
Implementations§
Source§impl Align2
impl Align2
Sourcepub const CENTER_TOP: Self
pub const CENTER_TOP: Self
Top, horizontally centered.
Sourcepub const LEFT_CENTER: Self
pub const LEFT_CENTER: Self
Vertically centered, left-aligned.
Sourcepub const CENTER_CENTER: Self
pub const CENTER_CENTER: Self
Centered on both axes.
Sourcepub const RIGHT_CENTER: Self
pub const RIGHT_CENTER: Self
Vertically centered, right-aligned.
Sourcepub const LEFT_BOTTOM: Self
pub const LEFT_BOTTOM: Self
Bottom-left.
Sourcepub const CENTER_BOTTOM: Self
pub const CENTER_BOTTOM: Self
Bottom, horizontally centered.
Sourcepub const RIGHT_BOTTOM: Self
pub const RIGHT_BOTTOM: Self
Bottom-right.
Trait Implementations§
impl Copy for Align2
impl Eq for Align2
impl StructuralPartialEq for Align2
Auto Trait Implementations§
impl Freeze for Align2
impl RefUnwindSafe for Align2
impl Send for Align2
impl Sync for Align2
impl Unpin for Align2
impl UnsafeUnpin for Align2
impl UnwindSafe for Align2
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.