pub struct ResolvedStyle {Show 56 fields
pub width: SizeConstraint,
pub height: SizeConstraint,
pub min_width: f64,
pub min_height: f64,
pub max_width: f64,
pub max_height: f64,
pub padding: Edges,
pub margin: MarginEdges,
pub display: Display,
pub flex_direction: FlexDirection,
pub justify_content: JustifyContent,
pub align_items: AlignItems,
pub align_self: Option<AlignItems>,
pub flex_wrap: FlexWrap,
pub align_content: AlignContent,
pub flex_grow: f64,
pub flex_shrink: f64,
pub flex_basis: SizeConstraint,
pub gap: f64,
pub row_gap: f64,
pub column_gap: f64,
pub grid_template_columns: Option<Vec<GridTrackSize>>,
pub grid_template_rows: Option<Vec<GridTrackSize>>,
pub grid_auto_rows: Option<GridTrackSize>,
pub grid_auto_columns: Option<GridTrackSize>,
pub grid_placement: Option<GridPlacement>,
pub font_family: String,
pub font_size: f64,
pub font_weight: u32,
pub font_style: FontStyle,
pub line_height: f64,
pub text_align: TextAlign,
pub letter_spacing: f64,
pub text_decoration: TextDecoration,
pub text_transform: TextTransform,
pub hyphens: Hyphens,
pub lang: Option<String>,
pub direction: Direction,
pub text_overflow: TextOverflow,
pub line_breaking: LineBreaking,
pub color: Color,
pub background_color: Option<Color>,
pub opacity: f64,
pub overflow: Overflow,
pub border_width: Edges,
pub border_color: EdgeValues<Color>,
pub border_radius: CornerValues,
pub position: Position,
pub top: Option<f64>,
pub right: Option<f64>,
pub bottom: Option<f64>,
pub left: Option<f64>,
pub breakable: bool,
pub break_before: bool,
pub min_widow_lines: u32,
pub min_orphan_lines: u32,
}Expand description
Resolved style: all values are concrete (no Option, no Auto for computed values). This is what the layout engine works with after style resolution.
Fields§
§width: SizeConstraint§height: SizeConstraint§min_width: f64§min_height: f64§max_width: f64§max_height: f64§padding: Edges§margin: MarginEdges§display: Display§flex_direction: FlexDirection§justify_content: JustifyContent§align_items: AlignItems§align_self: Option<AlignItems>§flex_wrap: FlexWrap§align_content: AlignContent§flex_grow: f64§flex_shrink: f64§flex_basis: SizeConstraint§gap: f64§row_gap: f64§column_gap: f64§grid_template_columns: Option<Vec<GridTrackSize>>§grid_template_rows: Option<Vec<GridTrackSize>>§grid_auto_rows: Option<GridTrackSize>§grid_auto_columns: Option<GridTrackSize>§grid_placement: Option<GridPlacement>§font_family: String§font_size: f64§font_weight: u32§font_style: FontStyle§line_height: f64§text_align: TextAlign§letter_spacing: f64§text_decoration: TextDecoration§text_transform: TextTransform§hyphens: Hyphens§lang: Option<String>§direction: Direction§text_overflow: TextOverflow§line_breaking: LineBreaking§color: Color§background_color: Option<Color>§opacity: f64§overflow: Overflow§border_width: Edges§border_color: EdgeValues<Color>§border_radius: CornerValues§position: Position§top: Option<f64>§right: Option<f64>§bottom: Option<f64>§left: Option<f64>§breakable: bool§break_before: bool§min_widow_lines: u32§min_orphan_lines: u32Trait Implementations§
Source§impl Clone for ResolvedStyle
impl Clone for ResolvedStyle
Source§fn clone(&self) -> ResolvedStyle
fn clone(&self) -> ResolvedStyle
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 moreAuto Trait Implementations§
impl Freeze for ResolvedStyle
impl RefUnwindSafe for ResolvedStyle
impl Send for ResolvedStyle
impl Sync for ResolvedStyle
impl Unpin for ResolvedStyle
impl UnsafeUnpin for ResolvedStyle
impl UnwindSafe for ResolvedStyle
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