Struct chrome_remote_interface_model::overlay::HighlightConfigBuilder[][src]

pub struct HighlightConfigBuilder { /* fields omitted */ }
This is supported on crate features experimental and Overlay and DOM and Page and Runtime only.

Implementations

impl HighlightConfigBuilder[src]

pub fn show_info(&mut self, v: bool) -> &mut Self[src]

Whether the node info tooltip should be shown (default: false).

pub fn show_styles(&mut self, v: bool) -> &mut Self[src]

Whether the node styles in the tooltip (default: false).

pub fn show_rulers(&mut self, v: bool) -> &mut Self[src]

Whether the rulers should be shown (default: false).

pub fn show_accessibility_info(&mut self, v: bool) -> &mut Self[src]

Whether the a11y info should be shown (default: true).

pub fn show_extension_lines(&mut self, v: bool) -> &mut Self[src]

Whether the extension lines from node to the rulers should be shown (default: false).

pub fn content_color(&mut self, v: Rgba) -> &mut Self[src]

The content box highlight fill color (default: transparent).

pub fn padding_color(&mut self, v: Rgba) -> &mut Self[src]

The padding highlight fill color (default: transparent).

pub fn border_color(&mut self, v: Rgba) -> &mut Self[src]

The border highlight fill color (default: transparent).

pub fn margin_color(&mut self, v: Rgba) -> &mut Self[src]

The margin highlight fill color (default: transparent).

pub fn event_target_color(&mut self, v: Rgba) -> &mut Self[src]

The event target element highlight fill color (default: transparent).

pub fn shape_color(&mut self, v: Rgba) -> &mut Self[src]

The shape outside fill color (default: transparent).

pub fn shape_margin_color(&mut self, v: Rgba) -> &mut Self[src]

The shape margin fill color (default: transparent).

pub fn css_grid_color(&mut self, v: Rgba) -> &mut Self[src]

The grid layout color (default: transparent).

pub fn color_format(&mut self, v: ColorFormat) -> &mut Self[src]

The color format used to format color styles (default: hex).

pub fn grid_highlight_config(&mut self, v: GridHighlightConfig) -> &mut Self[src]

The grid layout highlight configuration (default: all transparent).

pub fn flex_container_highlight_config(
    &mut self,
    v: FlexContainerHighlightConfig
) -> &mut Self
[src]

The flex container highlight configuration (default: all transparent).

pub fn build(&mut self) -> Result<HighlightConfig, &'static str>[src]

Trait Implementations

impl Clone for HighlightConfigBuilder[src]

impl Debug for HighlightConfigBuilder[src]

impl Default for HighlightConfigBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.