Struct style::properties::generated::ComputedValuesInner
source · pub struct ComputedValuesInner {Show 26 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>,
svg: Arc<SVG>,
table: Arc<Table>,
text: Arc<Text>,
ui: Arc<UI>,
custom_properties: ComputedCustomProperties,
pub writing_mode: WritingMode,
pub effective_zoom: Zoom,
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>
§svg: Arc<SVG>
§table: Arc<Table>
§text: Arc<Text>
§ui: Arc<UI>
§custom_properties: ComputedCustomProperties
§writing_mode: WritingMode
The writing mode of this computed values struct.
effective_zoom: Zoom
The effective zoom value.
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 visited_style(&self) -> Option<&ComputedValues>
pub fn visited_style(&self) -> Option<&ComputedValues>
Returns the visited style, if any.
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 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 mutate_border(&mut self) -> &mut Border
pub fn mutate_border(&mut self) -> &mut Border
Get a mutable reference to the Border struct.
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 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 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 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 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 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 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 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 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 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 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 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 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 mutate_position(&mut self) -> &mut Position
pub fn mutate_position(&mut self) -> &mut Position
Get a mutable reference to the Position struct.
sourcepub fn mutate_svg(&mut self) -> &mut SVG
pub fn mutate_svg(&mut self) -> &mut SVG
Get a mutable reference to the SVG struct.
sourcepub fn clone_table(&self) -> Arc<Table>
pub fn clone_table(&self) -> Arc<Table>
Clone the Table struct.
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 mutate_text(&mut self) -> &mut Text
pub fn mutate_text(&mut self) -> &mut Text
Get a mutable reference to the Text struct.
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<&Margin>
pub fn logical_margin(&self) -> LogicalMargin<&Margin>
Gets the logical computed margin from this style.
sourcepub fn logical_position(&self) -> LogicalMargin<&Inset>
pub fn logical_position(&self) -> LogicalMargin<&Inset>
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 moreAuto Trait Implementations§
impl Freeze for ComputedValuesInner
impl !RefUnwindSafe for ComputedValuesInner
impl Send for ComputedValuesInner
impl Sync for ComputedValuesInner
impl Unpin for ComputedValuesInner
impl !UnwindSafe for ComputedValuesInner
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more