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