Skip to main content

HighlightConfigBuilder

Struct HighlightConfigBuilder 

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

Implementations§

Source§

impl<'a> HighlightConfigBuilder<'a>

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

The padding highlight fill color (default: transparent).

Source

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

The border highlight fill color (default: transparent).

Source

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

The margin highlight fill color (default: transparent).

Source

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

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

Source

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

The shape outside fill color (default: transparent).

Source

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

The shape margin fill color (default: transparent).

Source

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

The grid layout color (default: transparent).

Source

pub fn colorFormat(self, colorFormat: ColorFormat) -> Self

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

Source

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

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

Source

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

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

Source

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

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

Source

pub fn contrastAlgorithm(self, contrastAlgorithm: ContrastAlgorithm) -> Self

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

Source

pub fn containerQueryContainerHighlightConfig( self, containerQueryContainerHighlightConfig: 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.