Struct style::properties::ComputedValuesInner
source · pub struct ComputedValuesInner {Show 24 fields
background: Arc<Background>,
border: Arc<Border>,
box_: Arc<Box>,
column: Arc<Column>,
counters: Arc<Counters>,
effects: Arc<Effects>,
font: Arc<Font>,
inherited_box: Arc<InheritedBox>,
inherited_table: Arc<InheritedTable>,
inherited_text: Arc<InheritedText>,
inherited_ui: Arc<InheritedUI>,
list: Arc<List>,
margin: Arc<Margin>,
outline: Arc<Outline>,
padding: Arc<Padding>,
position: Arc<Position>,
table: Arc<Table>,
text: Arc<Text>,
ui: Arc<UI>,
custom_properties: Option<Arc<CustomPropertiesMap>>,
pub writing_mode: WritingMode,
pub flags: ComputedValueFlags,
pub rules: Option<StrongRuleNode>,
visited_style: Option<Arc<ComputedValues>>,
}
Expand description
Actual data of ComputedValues, to match up with Gecko
Fields§
§background: Arc<Background>
§border: Arc<Border>
§box_: Arc<Box>
§column: Arc<Column>
§counters: Arc<Counters>
§effects: Arc<Effects>
§font: Arc<Font>
§inherited_box: Arc<InheritedBox>
§inherited_table: Arc<InheritedTable>
§inherited_text: Arc<InheritedText>
§inherited_ui: Arc<InheritedUI>
§list: Arc<List>
§margin: Arc<Margin>
§outline: Arc<Outline>
§padding: Arc<Padding>
§position: Arc<Position>
§table: Arc<Table>
§text: Arc<Text>
§ui: Arc<UI>
§custom_properties: Option<Arc<CustomPropertiesMap>>
§writing_mode: WritingMode
The writing mode of this computed values struct.
flags: ComputedValueFlags
A set of flags we use to store misc information regarding this style.
rules: Option<StrongRuleNode>
The rule node representing the ordered list of rules matched for this node. Can be None for default values and text nodes. This is essentially an optimization to avoid referencing the root rule node.
visited_style: Option<Arc<ComputedValues>>
The element’s computed values if visited, only computed if there’s a relevant link for this element. A element’s “relevant link” is the element being matched if it is a link or the nearest ancestor link.
Implementations§
source§impl ComputedValuesInner
impl ComputedValuesInner
sourcepub fn clone_background(&self) -> Arc<Background>
pub fn clone_background(&self) -> Arc<Background>
Clone the Background struct.
sourcepub fn get_background(&self) -> &Background
pub fn get_background(&self) -> &Background
Get a immutable reference to the Background struct.
sourcepub fn background_arc(&self) -> &Arc<Background>
pub fn background_arc(&self) -> &Arc<Background>
Gets an immutable reference to the refcounted value that wraps
Background
.
sourcepub fn mutate_background(&mut self) -> &mut Background
pub fn mutate_background(&mut self) -> &mut Background
Get a mutable reference to the Background struct.
sourcepub fn clone_border(&self) -> Arc<Border>
pub fn clone_border(&self) -> Arc<Border>
Clone the Border struct.
sourcepub fn get_border(&self) -> &Border
pub fn get_border(&self) -> &Border
Get a immutable reference to the Border struct.
sourcepub fn border_arc(&self) -> &Arc<Border>
pub fn border_arc(&self) -> &Arc<Border>
Gets an immutable reference to the refcounted value that wraps
Border
.
sourcepub fn mutate_border(&mut self) -> &mut Border
pub fn mutate_border(&mut self) -> &mut Border
Get a mutable reference to the Border struct.
sourcepub fn box_arc(&self) -> &Arc<Box>
pub fn box_arc(&self) -> &Arc<Box>
Gets an immutable reference to the refcounted value that wraps
Box
.
sourcepub fn mutate_box(&mut self) -> &mut Box
pub fn mutate_box(&mut self) -> &mut Box
Get a mutable reference to the Box struct.
sourcepub fn clone_column(&self) -> Arc<Column>
pub fn clone_column(&self) -> Arc<Column>
Clone the Column struct.
sourcepub fn get_column(&self) -> &Column
pub fn get_column(&self) -> &Column
Get a immutable reference to the Column struct.
sourcepub fn column_arc(&self) -> &Arc<Column>
pub fn column_arc(&self) -> &Arc<Column>
Gets an immutable reference to the refcounted value that wraps
Column
.
sourcepub fn mutate_column(&mut self) -> &mut Column
pub fn mutate_column(&mut self) -> &mut Column
Get a mutable reference to the Column struct.
sourcepub fn clone_counters(&self) -> Arc<Counters>
pub fn clone_counters(&self) -> Arc<Counters>
Clone the Counters struct.
sourcepub fn get_counters(&self) -> &Counters
pub fn get_counters(&self) -> &Counters
Get a immutable reference to the Counters struct.
sourcepub fn counters_arc(&self) -> &Arc<Counters>
pub fn counters_arc(&self) -> &Arc<Counters>
Gets an immutable reference to the refcounted value that wraps
Counters
.
sourcepub fn mutate_counters(&mut self) -> &mut Counters
pub fn mutate_counters(&mut self) -> &mut Counters
Get a mutable reference to the Counters struct.
sourcepub fn clone_effects(&self) -> Arc<Effects>
pub fn clone_effects(&self) -> Arc<Effects>
Clone the Effects struct.
sourcepub fn get_effects(&self) -> &Effects
pub fn get_effects(&self) -> &Effects
Get a immutable reference to the Effects struct.
sourcepub fn effects_arc(&self) -> &Arc<Effects>
pub fn effects_arc(&self) -> &Arc<Effects>
Gets an immutable reference to the refcounted value that wraps
Effects
.
sourcepub fn mutate_effects(&mut self) -> &mut Effects
pub fn mutate_effects(&mut self) -> &mut Effects
Get a mutable reference to the Effects struct.
sourcepub fn clone_font(&self) -> Arc<Font>
pub fn clone_font(&self) -> Arc<Font>
Clone the Font struct.
sourcepub fn font_arc(&self) -> &Arc<Font>
pub fn font_arc(&self) -> &Arc<Font>
Gets an immutable reference to the refcounted value that wraps
Font
.
sourcepub fn mutate_font(&mut self) -> &mut Font
pub fn mutate_font(&mut self) -> &mut Font
Get a mutable reference to the Font struct.
sourcepub fn clone_inherited_box(&self) -> Arc<InheritedBox>
pub fn clone_inherited_box(&self) -> Arc<InheritedBox>
Clone the InheritedBox struct.
sourcepub fn get_inherited_box(&self) -> &InheritedBox
pub fn get_inherited_box(&self) -> &InheritedBox
Get a immutable reference to the InheritedBox struct.
sourcepub fn inherited_box_arc(&self) -> &Arc<InheritedBox>
pub fn inherited_box_arc(&self) -> &Arc<InheritedBox>
Gets an immutable reference to the refcounted value that wraps
InheritedBox
.
sourcepub fn mutate_inherited_box(&mut self) -> &mut InheritedBox
pub fn mutate_inherited_box(&mut self) -> &mut InheritedBox
Get a mutable reference to the InheritedBox struct.
sourcepub fn clone_inherited_table(&self) -> Arc<InheritedTable>
pub fn clone_inherited_table(&self) -> Arc<InheritedTable>
Clone the InheritedTable struct.
sourcepub fn get_inherited_table(&self) -> &InheritedTable
pub fn get_inherited_table(&self) -> &InheritedTable
Get a immutable reference to the InheritedTable struct.
sourcepub fn inherited_table_arc(&self) -> &Arc<InheritedTable>
pub fn inherited_table_arc(&self) -> &Arc<InheritedTable>
Gets an immutable reference to the refcounted value that wraps
InheritedTable
.
sourcepub fn mutate_inherited_table(&mut self) -> &mut InheritedTable
pub fn mutate_inherited_table(&mut self) -> &mut InheritedTable
Get a mutable reference to the InheritedTable struct.
sourcepub fn clone_inherited_text(&self) -> Arc<InheritedText>
pub fn clone_inherited_text(&self) -> Arc<InheritedText>
Clone the InheritedText struct.
sourcepub fn get_inherited_text(&self) -> &InheritedText
pub fn get_inherited_text(&self) -> &InheritedText
Get a immutable reference to the InheritedText struct.
sourcepub fn inherited_text_arc(&self) -> &Arc<InheritedText>
pub fn inherited_text_arc(&self) -> &Arc<InheritedText>
Gets an immutable reference to the refcounted value that wraps
InheritedText
.
sourcepub fn mutate_inherited_text(&mut self) -> &mut InheritedText
pub fn mutate_inherited_text(&mut self) -> &mut InheritedText
Get a mutable reference to the InheritedText struct.
sourcepub fn clone_inherited_ui(&self) -> Arc<InheritedUI>
pub fn clone_inherited_ui(&self) -> Arc<InheritedUI>
Clone the InheritedUI struct.
sourcepub fn get_inherited_ui(&self) -> &InheritedUI
pub fn get_inherited_ui(&self) -> &InheritedUI
Get a immutable reference to the InheritedUI struct.
sourcepub fn inherited_ui_arc(&self) -> &Arc<InheritedUI>
pub fn inherited_ui_arc(&self) -> &Arc<InheritedUI>
Gets an immutable reference to the refcounted value that wraps
InheritedUI
.
sourcepub fn mutate_inherited_ui(&mut self) -> &mut InheritedUI
pub fn mutate_inherited_ui(&mut self) -> &mut InheritedUI
Get a mutable reference to the InheritedUI struct.
sourcepub fn clone_list(&self) -> Arc<List>
pub fn clone_list(&self) -> Arc<List>
Clone the List struct.
sourcepub fn list_arc(&self) -> &Arc<List>
pub fn list_arc(&self) -> &Arc<List>
Gets an immutable reference to the refcounted value that wraps
List
.
sourcepub fn mutate_list(&mut self) -> &mut List
pub fn mutate_list(&mut self) -> &mut List
Get a mutable reference to the List struct.
sourcepub fn clone_margin(&self) -> Arc<Margin>
pub fn clone_margin(&self) -> Arc<Margin>
Clone the Margin struct.
sourcepub fn get_margin(&self) -> &Margin
pub fn get_margin(&self) -> &Margin
Get a immutable reference to the Margin struct.
sourcepub fn margin_arc(&self) -> &Arc<Margin>
pub fn margin_arc(&self) -> &Arc<Margin>
Gets an immutable reference to the refcounted value that wraps
Margin
.
sourcepub fn mutate_margin(&mut self) -> &mut Margin
pub fn mutate_margin(&mut self) -> &mut Margin
Get a mutable reference to the Margin struct.
sourcepub fn clone_outline(&self) -> Arc<Outline>
pub fn clone_outline(&self) -> Arc<Outline>
Clone the Outline struct.
sourcepub fn get_outline(&self) -> &Outline
pub fn get_outline(&self) -> &Outline
Get a immutable reference to the Outline struct.
sourcepub fn outline_arc(&self) -> &Arc<Outline>
pub fn outline_arc(&self) -> &Arc<Outline>
Gets an immutable reference to the refcounted value that wraps
Outline
.
sourcepub fn mutate_outline(&mut self) -> &mut Outline
pub fn mutate_outline(&mut self) -> &mut Outline
Get a mutable reference to the Outline struct.
sourcepub fn clone_padding(&self) -> Arc<Padding>
pub fn clone_padding(&self) -> Arc<Padding>
Clone the Padding struct.
sourcepub fn get_padding(&self) -> &Padding
pub fn get_padding(&self) -> &Padding
Get a immutable reference to the Padding struct.
sourcepub fn padding_arc(&self) -> &Arc<Padding>
pub fn padding_arc(&self) -> &Arc<Padding>
Gets an immutable reference to the refcounted value that wraps
Padding
.
sourcepub fn mutate_padding(&mut self) -> &mut Padding
pub fn mutate_padding(&mut self) -> &mut Padding
Get a mutable reference to the Padding struct.
sourcepub fn clone_position(&self) -> Arc<Position>
pub fn clone_position(&self) -> Arc<Position>
Clone the Position struct.
sourcepub fn get_position(&self) -> &Position
pub fn get_position(&self) -> &Position
Get a immutable reference to the Position struct.
sourcepub fn position_arc(&self) -> &Arc<Position>
pub fn position_arc(&self) -> &Arc<Position>
Gets an immutable reference to the refcounted value that wraps
Position
.
sourcepub fn mutate_position(&mut self) -> &mut Position
pub fn mutate_position(&mut self) -> &mut Position
Get a mutable reference to the Position struct.
sourcepub fn clone_table(&self) -> Arc<Table>
pub fn clone_table(&self) -> Arc<Table>
Clone the Table struct.
sourcepub fn table_arc(&self) -> &Arc<Table>
pub fn table_arc(&self) -> &Arc<Table>
Gets an immutable reference to the refcounted value that wraps
Table
.
sourcepub fn mutate_table(&mut self) -> &mut Table
pub fn mutate_table(&mut self) -> &mut Table
Get a mutable reference to the Table struct.
sourcepub fn clone_text(&self) -> Arc<Text>
pub fn clone_text(&self) -> Arc<Text>
Clone the Text struct.
sourcepub fn text_arc(&self) -> &Arc<Text>
pub fn text_arc(&self) -> &Arc<Text>
Gets an immutable reference to the refcounted value that wraps
Text
.
sourcepub fn mutate_text(&mut self) -> &mut Text
pub fn mutate_text(&mut self) -> &mut Text
Get a mutable reference to the Text struct.
sourcepub fn ui_arc(&self) -> &Arc<UI>
pub fn ui_arc(&self) -> &Arc<UI>
Gets an immutable reference to the refcounted value that wraps
UI
.
sourcepub fn rules(&self) -> &StrongRuleNode
pub fn rules(&self) -> &StrongRuleNode
Gets a reference to the rule node. Panic if no rule node exists.
sourcepub fn ineffective_content_property(&self) -> bool
pub fn ineffective_content_property(&self) -> bool
Returns whether the “content” property for the given style is completely
ineffective, and would yield an empty ::before
or ::after
pseudo-element.
sourcepub fn can_be_fragmented(&self) -> bool
pub fn can_be_fragmented(&self) -> bool
Whether the current style or any of its ancestors is multicolumn.
sourcepub fn is_multicol(&self) -> bool
pub fn is_multicol(&self) -> bool
Whether the current style is multicolumn.
sourcepub fn content_inline_size(&self) -> &Size
pub fn content_inline_size(&self) -> &Size
Get the logical computed inline size.
sourcepub fn content_block_size(&self) -> &Size
pub fn content_block_size(&self) -> &Size
Get the logical computed block size.
sourcepub fn min_inline_size(&self) -> &Size
pub fn min_inline_size(&self) -> &Size
Get the logical computed min inline size.
sourcepub fn min_block_size(&self) -> &Size
pub fn min_block_size(&self) -> &Size
Get the logical computed min block size.
sourcepub fn max_inline_size(&self) -> &MaxSize
pub fn max_inline_size(&self) -> &MaxSize
Get the logical computed max inline size.
sourcepub fn max_block_size(&self) -> &MaxSize
pub fn max_block_size(&self) -> &MaxSize
Get the logical computed max block size.
sourcepub fn logical_padding(&self) -> LogicalMargin<&LengthPercentage>
pub fn logical_padding(&self) -> LogicalMargin<&LengthPercentage>
Get the logical computed padding for this writing mode.
sourcepub fn border_width_for_writing_mode(
&self,
writing_mode: WritingMode
) -> LogicalMargin<Au>
pub fn border_width_for_writing_mode(
&self,
writing_mode: WritingMode
) -> LogicalMargin<Au>
Get the logical border width
sourcepub fn logical_border_width(&self) -> LogicalMargin<Au>
pub fn logical_border_width(&self) -> LogicalMargin<Au>
Gets the logical computed border widths for this style.
sourcepub fn logical_margin(&self) -> LogicalMargin<&LengthPercentageOrAuto>
pub fn logical_margin(&self) -> LogicalMargin<&LengthPercentageOrAuto>
Gets the logical computed margin from this style.
sourcepub fn logical_position(&self) -> LogicalMargin<&LengthPercentageOrAuto>
pub fn logical_position(&self) -> LogicalMargin<&LengthPercentageOrAuto>
Gets the logical position from this style.
sourcepub fn overrides_transform_style(&self) -> bool
pub fn overrides_transform_style(&self) -> bool
Return true if the effects force the transform style to be Flat
sourcepub fn get_used_transform_style(&self) -> T
pub fn get_used_transform_style(&self) -> T
sourcepub fn transform_requires_layer(&self) -> bool
pub fn transform_requires_layer(&self) -> bool
Whether given this transform value, the compositor would require a layer.
Trait Implementations§
source§impl Clone for ComputedValuesInner
impl Clone for ComputedValuesInner
source§fn clone(&self) -> ComputedValuesInner
fn clone(&self) -> ComputedValuesInner
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more