pub struct Layout {
pub width: Sizing,
pub height: Sizing,
pub padding: Padding,
pub child_gap: u16,
pub child_alignment: Alignment,
pub direction: LayoutDirection,
}Fields§
§width: Sizing§height: Sizing§padding: Padding§child_gap: u16§child_alignment: Alignment§direction: LayoutDirectionImplementations§
Source§impl Layout
impl Layout
pub fn new() -> Self
pub fn width(&mut self, width: Sizing) -> &mut Self
pub fn height(&mut self, height: Sizing) -> &mut Self
pub fn padding(&mut self, padding: Padding) -> &mut Self
pub fn child_gap(&mut self, child_gap: u16) -> &mut Self
pub fn child_alignment(&mut self, child_alignment: Alignment) -> &mut Self
pub fn direction(&mut self, direction: LayoutDirection) -> &mut Self
pub fn end(&self) -> TypedConfig
Trait Implementations§
Source§impl From<Clay_LayoutConfig> for Layout
impl From<Clay_LayoutConfig> for Layout
Source§fn from(value: Clay_LayoutConfig) -> Self
fn from(value: Clay_LayoutConfig) -> Self
Converts to this type from the input type.
Source§impl From<Layout> for Clay_LayoutConfig
impl From<Layout> for Clay_LayoutConfig
impl Copy for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnwindSafe for Layout
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