pub struct ComputedStyle {Show 59 fields
pub display: Display,
pub position: Position,
pub float: Float,
pub clear: Clear,
pub box_sizing: BoxSizing,
pub width: LengthPercentageAuto,
pub height: LengthPercentageAuto,
pub min_width: LengthPercentage,
pub min_height: LengthPercentage,
pub max_width: LengthPercentageNone,
pub max_height: LengthPercentageNone,
pub margin_top: LengthPercentageAuto,
pub margin_right: LengthPercentageAuto,
pub margin_bottom: LengthPercentageAuto,
pub margin_left: LengthPercentageAuto,
pub padding_top: LengthPercentage,
pub padding_right: LengthPercentage,
pub padding_bottom: LengthPercentage,
pub padding_left: LengthPercentage,
pub border_top_width: f32,
pub border_right_width: f32,
pub border_bottom_width: f32,
pub border_left_width: f32,
pub top: LengthPercentageAuto,
pub right: LengthPercentageAuto,
pub bottom: LengthPercentageAuto,
pub left: LengthPercentageAuto,
pub overflow_x: Overflow,
pub overflow_y: Overflow,
pub text_align: TextAlign,
pub vertical_align: VerticalAlign,
pub line_height: f32,
pub white_space: WhiteSpace,
pub flex_direction: FlexDirection,
pub flex_wrap: FlexWrap,
pub flex_grow: f32,
pub flex_shrink: f32,
pub flex_basis: LengthPercentageAuto,
pub align_items: AlignItems,
pub align_self: AlignSelf,
pub align_content: AlignContent,
pub justify_content: JustifyContent,
pub order: i32,
pub grid_template_rows: Vec<TrackDefinition>,
pub grid_template_columns: Vec<TrackDefinition>,
pub grid_auto_rows: Vec<TrackSizingFunction>,
pub grid_auto_columns: Vec<TrackSizingFunction>,
pub grid_auto_flow: GridAutoFlow,
pub row_gap: f32,
pub column_gap: f32,
pub grid_row_start: GridPlacement,
pub grid_row_end: GridPlacement,
pub grid_column_start: GridPlacement,
pub grid_column_end: GridPlacement,
pub table_layout: TableLayout,
pub border_collapse: BorderCollapse,
pub border_spacing: f32,
pub caption_side: CaptionSide,
pub z_index: NumberOrAuto,
}Expand description
Full computed style for a layout node.
Fields§
§display: Display§position: Position§float: Float§clear: Clear§box_sizing: BoxSizing§width: LengthPercentageAuto§height: LengthPercentageAuto§min_width: LengthPercentage§min_height: LengthPercentage§max_width: LengthPercentageNone§max_height: LengthPercentageNone§margin_top: LengthPercentageAuto§margin_right: LengthPercentageAuto§margin_bottom: LengthPercentageAuto§margin_left: LengthPercentageAuto§padding_top: LengthPercentage§padding_right: LengthPercentage§padding_bottom: LengthPercentage§padding_left: LengthPercentage§border_top_width: f32§border_right_width: f32§border_bottom_width: f32§border_left_width: f32§top: LengthPercentageAuto§right: LengthPercentageAuto§bottom: LengthPercentageAuto§left: LengthPercentageAuto§overflow_x: Overflow§overflow_y: Overflow§text_align: TextAlign§vertical_align: VerticalAlign§line_height: f32§white_space: WhiteSpace§flex_direction: FlexDirection§flex_wrap: FlexWrap§flex_grow: f32§flex_shrink: f32§flex_basis: LengthPercentageAuto§align_items: AlignItems§align_self: AlignSelf§align_content: AlignContent§justify_content: JustifyContent§order: i32§grid_template_rows: Vec<TrackDefinition>§grid_template_columns: Vec<TrackDefinition>§grid_auto_rows: Vec<TrackSizingFunction>§grid_auto_columns: Vec<TrackSizingFunction>§grid_auto_flow: GridAutoFlow§row_gap: f32§column_gap: f32§grid_row_start: GridPlacement§grid_row_end: GridPlacement§grid_column_start: GridPlacement§grid_column_end: GridPlacement§table_layout: TableLayout§border_collapse: BorderCollapse§border_spacing: f32§caption_side: CaptionSide§z_index: NumberOrAutoImplementations§
Source§impl ComputedStyle
impl ComputedStyle
Sourcepub fn establishes_bfc(&self) -> bool
pub fn establishes_bfc(&self) -> bool
Whether this element establishes a new block formatting context.
Sourcepub fn is_out_of_flow(&self) -> bool
pub fn is_out_of_flow(&self) -> bool
Whether this element is out of flow.
Trait Implementations§
Source§impl Clone for ComputedStyle
impl Clone for ComputedStyle
Source§fn clone(&self) -> ComputedStyle
fn clone(&self) -> ComputedStyle
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 ComputedStyle
impl Debug for ComputedStyle
Source§impl Default for ComputedStyle
impl Default for ComputedStyle
Source§impl PartialEq for ComputedStyle
impl PartialEq for ComputedStyle
impl StructuralPartialEq for ComputedStyle
Auto Trait Implementations§
impl Freeze for ComputedStyle
impl RefUnwindSafe for ComputedStyle
impl Send for ComputedStyle
impl Sync for ComputedStyle
impl Unpin for ComputedStyle
impl UnwindSafe for ComputedStyle
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