pub enum LayoutMode {
Free {
pad: f32,
},
Column {
gap: f32,
pad: f32,
},
Row {
gap: f32,
pad: f32,
},
Grid {
cols: u32,
gap: f32,
pad: f32,
},
}Expand description
Group layout mode (for children arrangement).
Variants§
Free
Free / absolute positioning of children. Optional padding insets the content area (default 0).
Column
Column (vertical stack).
Row
Row (horizontal stack).
Grid
Grid layout.
Trait Implementations§
Source§impl Clone for LayoutMode
impl Clone for LayoutMode
Source§fn clone(&self) -> LayoutMode
fn clone(&self) -> LayoutMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutMode
impl Debug for LayoutMode
Source§impl Default for LayoutMode
impl Default for LayoutMode
Source§impl<'de> Deserialize<'de> for LayoutMode
impl<'de> Deserialize<'de> for LayoutMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LayoutMode
impl RefUnwindSafe for LayoutMode
impl Send for LayoutMode
impl Sync for LayoutMode
impl Unpin for LayoutMode
impl UnsafeUnpin for LayoutMode
impl UnwindSafe for LayoutMode
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