pub enum Alignment {
Top,
TopLeading,
TopTrailing,
Center,
Bottom,
BottomLeading,
BottomTrailing,
Leading,
Trailing,
}Expand description
Combined two-dimensional alignment used by overlay stacks.
Variants§
Top
Place the child in the top centre.
TopLeading
Place the child in the top-left corner.
TopTrailing
Place the child in the top-right corner.
Center
Place the child exactly in the centre.
Bottom
Place the child in the bottom centre.
BottomLeading
Place the child in the bottom-left corner.
BottomTrailing
Place the child in the bottom-right corner.
Leading
Place the child in the vertical centre along the leading edge.
Trailing
Place the child in the vertical centre along the trailing edge.
Implementations§
Source§impl Alignment
impl Alignment
Sourcepub const fn horizontal(&self) -> HorizontalAlignment
pub const fn horizontal(&self) -> HorizontalAlignment
Returns the horizontal alignment component of this alignment.
Sourcepub const fn vertical(&self) -> VerticalAlignment
pub const fn vertical(&self) -> VerticalAlignment
Returns the vertical alignment component of this alignment.
Trait Implementations§
Source§impl Ord for Alignment
impl Ord for Alignment
Source§impl PartialOrd for Alignment
impl PartialOrd for Alignment
impl Copy for Alignment
impl Eq 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 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