pub struct LayoutStyle {Show 24 fields
pub display: Display,
pub position: Position,
pub direction: FlexDirection,
pub wrap: FlexWrap,
pub align_items: Option<Align>,
pub align_self: Option<Align>,
pub justify_self: Option<Align>,
pub align_content: Option<Justify>,
pub justify_content: Option<Justify>,
pub size: Axes<Length>,
pub min_size: Axes<Length>,
pub max_size: Axes<Length>,
pub aspect_ratio: Option<f32>,
pub padding: Edges<Length>,
pub margin: Edges<Length>,
pub border: Edges<f32>,
pub inset: Edges<Length>,
pub gap: Axes<Length>,
pub flex_grow: f32,
pub flex_shrink: f32,
pub flex_basis: Length,
pub overflow_x: Overflow,
pub overflow_y: Overflow,
pub grid: Option<Box<GridStyle>>,
}Expand description
Everything that influences layout.
Fields§
§display: Display§position: Position§direction: FlexDirection§wrap: FlexWrap§align_items: Option<Align>§align_self: Option<Align>§justify_self: Option<Align>Inline-axis alignment of a grid item within its cell.
align_content: Option<Justify>§justify_content: Option<Justify>§size: Axes<Length>§min_size: Axes<Length>§max_size: Axes<Length>§aspect_ratio: Option<f32>§padding: Edges<Length>§margin: Edges<Length>§border: Edges<f32>§inset: Edges<Length>§gap: Axes<Length>width = column gap, height = row gap.
flex_grow: f32§flex_shrink: f32§flex_basis: Length§overflow_x: Overflow§overflow_y: Overflow§grid: Option<Box<GridStyle>>Implementations§
Trait Implementations§
Source§impl Clone for LayoutStyle
impl Clone for LayoutStyle
Source§impl Debug for LayoutStyle
impl Debug for LayoutStyle
Source§impl Default for LayoutStyle
impl Default for LayoutStyle
Source§impl PartialEq for LayoutStyle
impl PartialEq for LayoutStyle
impl StructuralPartialEq for LayoutStyle
Auto Trait Implementations§
impl Freeze for LayoutStyle
impl RefUnwindSafe for LayoutStyle
impl Send for LayoutStyle
impl Sync for LayoutStyle
impl Unpin for LayoutStyle
impl UnsafeUnpin for LayoutStyle
impl UnwindSafe for LayoutStyle
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