pub struct LayoutStyle {Show 19 fields
pub display: Display,
pub position: Position,
pub flex_direction: FlexDirection,
pub flex_wrap: FlexWrap,
pub flex_grow: f32,
pub flex_shrink: f32,
pub justify_content: Option<JustifyContent>,
pub align_items: Option<AlignItems>,
pub width: Dimension,
pub height: Dimension,
pub min_width: Dimension,
pub min_height: Dimension,
pub max_width: Dimension,
pub max_height: Dimension,
pub aspect_ratio: Option<f32>,
pub margin: Edges,
pub padding: Edges,
pub gap: f32,
pub overflow: Overflow,
}Expand description
Framework-level layout style (what the developer writes in JSX). This is a subset of CSS that maps cleanly to Taffy.
Fields§
§display: Display§position: Position§flex_direction: FlexDirection§flex_wrap: FlexWrap§flex_grow: f32§flex_shrink: f32§justify_content: Option<JustifyContent>§align_items: Option<AlignItems>§width: Dimension§height: Dimension§min_width: Dimension§min_height: Dimension§max_width: Dimension§max_height: Dimension§aspect_ratio: Option<f32>§margin: Edges§padding: Edges§gap: f32§overflow: OverflowTrait Implementations§
Source§impl Clone for LayoutStyle
impl Clone for LayoutStyle
Source§fn clone(&self) -> LayoutStyle
fn clone(&self) -> LayoutStyle
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 LayoutStyle
impl Debug for LayoutStyle
Source§impl Default for LayoutStyle
impl Default for LayoutStyle
Source§fn default() -> LayoutStyle
fn default() -> LayoutStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayoutStyle
impl<'de> Deserialize<'de> for LayoutStyle
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 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