pub struct Alignment {
pub x: LayoutAlignmentX,
pub y: LayoutAlignmentY,
}Expand description
Controls the alignment of the childs in the layout
Fields§
§x: LayoutAlignmentX§y: LayoutAlignmentYImplementations§
Source§impl Alignment
impl Alignment
pub fn new(x: LayoutAlignmentX, y: LayoutAlignmentY) -> Self
Trait Implementations§
Source§impl From<(LayoutAlignmentX, LayoutAlignmentY)> for Alignment
impl From<(LayoutAlignmentX, LayoutAlignmentY)> for Alignment
Source§fn from(other: (LayoutAlignmentX, LayoutAlignmentY)) -> Self
fn from(other: (LayoutAlignmentX, LayoutAlignmentY)) -> Self
Converts to this type from the input type.
Source§impl From<Alignment> for Clay_ChildAlignment
impl From<Alignment> for Clay_ChildAlignment
Source§impl From<Clay_ChildAlignment> for Alignment
impl From<Clay_ChildAlignment> for Alignment
Source§fn from(value: Clay_ChildAlignment) -> Self
fn from(value: Clay_ChildAlignment) -> Self
Converts to this type from the input type.
impl Copy 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