Skip to main content

HighlightConfigBuilder

Struct HighlightConfigBuilder 

Source
pub struct HighlightConfigBuilder<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> HighlightConfigBuilder<'a>

Source

pub fn show_info(self, show_info: bool) -> Self

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

Source

pub fn show_styles(self, show_styles: bool) -> Self

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

Source

pub fn show_rulers(self, show_rulers: bool) -> Self

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

Source

pub fn show_accessibility_info(self, show_accessibility_info: bool) -> Self

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

Source

pub fn show_extension_lines(self, show_extension_lines: bool) -> Self

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

Source

pub fn content_color(self, content_color: RGBA) -> Self

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

Source

pub fn padding_color(self, padding_color: RGBA) -> Self

The padding highlight fill color (default: transparent).

Source

pub fn border_color(self, border_color: RGBA) -> Self

The border highlight fill color (default: transparent).

Source

pub fn margin_color(self, margin_color: RGBA) -> Self

The margin highlight fill color (default: transparent).

Source

pub fn event_target_color(self, event_target_color: RGBA) -> Self

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

Source

pub fn shape_color(self, shape_color: RGBA) -> Self

The shape outside fill color (default: transparent).

Source

pub fn shape_margin_color(self, shape_margin_color: RGBA) -> Self

The shape margin fill color (default: transparent).

Source

pub fn css_grid_color(self, css_grid_color: RGBA) -> Self

The grid layout color (default: transparent).

Source

pub fn color_format(self, color_format: impl Into<ColorFormat>) -> Self

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

Source

pub fn grid_highlight_config( self, grid_highlight_config: GridHighlightConfig, ) -> Self

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

Source

pub fn flex_container_highlight_config( self, flex_container_highlight_config: FlexContainerHighlightConfig<'a>, ) -> Self

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

Source

pub fn flex_item_highlight_config( self, flex_item_highlight_config: FlexItemHighlightConfig<'a>, ) -> Self

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

Source

pub fn contrast_algorithm( self, contrast_algorithm: impl Into<ContrastAlgorithm>, ) -> Self

The contrast algorithm to use for the contrast ratio (default: aa).

Source

pub fn container_query_container_highlight_config( self, container_query_container_highlight_config: ContainerQueryContainerHighlightConfig<'a>, ) -> Self

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

Source

pub fn build(self) -> HighlightConfig<'a>

Trait Implementations§

Source§

impl<'a> Default for HighlightConfigBuilder<'a>

Source§

fn default() -> HighlightConfigBuilder<'a>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.