pub enum VerticalAlignment {
Top,
Center,
Bottom,
FirstTextBaseline,
LastTextBaseline,
}Expand description
SwiftUI.VerticalAlignment, a frozen word-sized value.
What an HStack aligns its children on, the mirror of
HorizontalAlignment for a VStack. The two baseline cases align on
text rather than on the box: FirstTextBaseline lines up the first
lines of each child, which is what makes a row of differently-sized
labels read as one line.
Variants§
Trait Implementations§
Source§impl Clone for VerticalAlignment
impl Clone for VerticalAlignment
impl Copy for VerticalAlignment
Source§impl Debug for VerticalAlignment
impl Debug for VerticalAlignment
impl Eq for VerticalAlignment
Source§impl From<Bottom> for VerticalAlignment
impl From<Bottom> for VerticalAlignment
Source§impl From<Center> for VerticalAlignment
impl From<Center> for VerticalAlignment
Source§impl From<FirstTextBaseline> for VerticalAlignment
impl From<FirstTextBaseline> for VerticalAlignment
Source§fn from(_: FirstTextBaseline) -> Self
fn from(_: FirstTextBaseline) -> Self
Converts to this type from the input type.
Source§impl From<LastTextBaseline> for VerticalAlignment
impl From<LastTextBaseline> for VerticalAlignment
Source§fn from(_: LastTextBaseline) -> Self
fn from(_: LastTextBaseline) -> Self
Converts to this type from the input type.
Source§impl From<Top> for VerticalAlignment
impl From<Top> for VerticalAlignment
Source§impl PartialEq for VerticalAlignment
impl PartialEq for VerticalAlignment
impl StructuralPartialEq for VerticalAlignment
Auto Trait Implementations§
impl Freeze for VerticalAlignment
impl RefUnwindSafe for VerticalAlignment
impl Send for VerticalAlignment
impl Sync for VerticalAlignment
impl Unpin for VerticalAlignment
impl UnsafeUnpin for VerticalAlignment
impl UnwindSafe for VerticalAlignment
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