pub enum Align {
Show 13 variants
LeftTop,
LeftCenter,
LeftBottom,
RightTop,
RightCenter,
RightBottom,
TopLeft,
TopCenter,
TopRight,
BottomLeft,
BottomCenter,
BottomRight,
Center,
}Expand description
Represents the alignment of a child frame that is sized (width, height). Notice that LeftTop is not the same as TopLeft! LeftTop means “push_edge from the left, align to Top” and TopLeft means “push_edge from Top, align to Left”. The result may look the same, but the availble space will shrink from the left in the former, from the top in the latter.
Variants§
LeftTop
LeftCenter
LeftBottom
RightTop
RightCenter
RightBottom
TopLeft
TopCenter
TopRight
BottomLeft
BottomCenter
BottomRight
Center
Only option that does not shrink the available space (the “cursor” rect).
Trait Implementations§
impl Copy for Align
impl StructuralPartialEq for Align
Auto Trait Implementations§
impl Freeze for Align
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnwindSafe for Align
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