pub struct HighlightConfig { /* private fields */ }experimental and Overlay and DOM and Page and Runtime only.Expand description
Configuration data for the highlighting of page elements.
Implementations§
Source§impl HighlightConfig
impl HighlightConfig
pub fn builder() -> HighlightConfigBuilder
Sourcepub fn show_info(&self) -> Option<&bool>
pub fn show_info(&self) -> Option<&bool>
Whether the node info tooltip should be shown (default: false).
Sourcepub fn show_styles(&self) -> Option<&bool>
pub fn show_styles(&self) -> Option<&bool>
Whether the node styles in the tooltip (default: false).
Sourcepub fn show_rulers(&self) -> Option<&bool>
pub fn show_rulers(&self) -> Option<&bool>
Whether the rulers should be shown (default: false).
Sourcepub fn show_accessibility_info(&self) -> Option<&bool>
pub fn show_accessibility_info(&self) -> Option<&bool>
Whether the a11y info should be shown (default: true).
Sourcepub fn show_extension_lines(&self) -> Option<&bool>
pub fn show_extension_lines(&self) -> Option<&bool>
Whether the extension lines from node to the rulers should be shown (default: false).
Sourcepub fn content_color(&self) -> Option<&Rgba>
pub fn content_color(&self) -> Option<&Rgba>
The content box highlight fill color (default: transparent).
Sourcepub fn padding_color(&self) -> Option<&Rgba>
pub fn padding_color(&self) -> Option<&Rgba>
The padding highlight fill color (default: transparent).
Sourcepub fn border_color(&self) -> Option<&Rgba>
pub fn border_color(&self) -> Option<&Rgba>
The border highlight fill color (default: transparent).
Sourcepub fn margin_color(&self) -> Option<&Rgba>
pub fn margin_color(&self) -> Option<&Rgba>
The margin highlight fill color (default: transparent).
Sourcepub fn event_target_color(&self) -> Option<&Rgba>
pub fn event_target_color(&self) -> Option<&Rgba>
The event target element highlight fill color (default: transparent).
Sourcepub fn shape_color(&self) -> Option<&Rgba>
pub fn shape_color(&self) -> Option<&Rgba>
The shape outside fill color (default: transparent).
Sourcepub fn shape_margin_color(&self) -> Option<&Rgba>
pub fn shape_margin_color(&self) -> Option<&Rgba>
The shape margin fill color (default: transparent).
Sourcepub fn css_grid_color(&self) -> Option<&Rgba>
pub fn css_grid_color(&self) -> Option<&Rgba>
The grid layout color (default: transparent).
Sourcepub fn color_format(&self) -> Option<&ColorFormat>
pub fn color_format(&self) -> Option<&ColorFormat>
The color format used to format color styles (default: hex).
Sourcepub fn grid_highlight_config(&self) -> Option<&GridHighlightConfig>
pub fn grid_highlight_config(&self) -> Option<&GridHighlightConfig>
The grid layout highlight configuration (default: all transparent).
Sourcepub fn flex_container_highlight_config(
&self,
) -> Option<&FlexContainerHighlightConfig>
pub fn flex_container_highlight_config( &self, ) -> Option<&FlexContainerHighlightConfig>
The flex container highlight configuration (default: all transparent).
Sourcepub fn flex_item_highlight_config(&self) -> Option<&FlexItemHighlightConfig>
pub fn flex_item_highlight_config(&self) -> Option<&FlexItemHighlightConfig>
The flex item highlight configuration (default: all transparent).
Sourcepub fn contrast_algorithm(&self) -> Option<&ContrastAlgorithm>
pub fn contrast_algorithm(&self) -> Option<&ContrastAlgorithm>
The contrast algorithm to use for the contrast ratio (default: aa).
Trait Implementations§
Source§impl Clone for HighlightConfig
impl Clone for HighlightConfig
Source§fn clone(&self) -> HighlightConfig
fn clone(&self) -> HighlightConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more