GridHighlightConfigBuilder

Struct GridHighlightConfigBuilder 

Source
pub struct GridHighlightConfigBuilder { /* private fields */ }
Available on crate features experimental and Overlay and DOM and Page and Runtime only.

Implementations§

Source§

impl GridHighlightConfigBuilder

Source

pub fn show_grid_extension_lines(&mut self, v: bool) -> &mut Self

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

Source

pub fn show_positive_line_numbers(&mut self, v: bool) -> &mut Self

Show Positive line number labels (default: false).

Source

pub fn show_negative_line_numbers(&mut self, v: bool) -> &mut Self

Show Negative line number labels (default: false).

Source

pub fn show_area_names(&mut self, v: bool) -> &mut Self

Show area name labels (default: false).

Source

pub fn show_line_names(&mut self, v: bool) -> &mut Self

Show line name labels (default: false).

Source

pub fn show_track_sizes(&mut self, v: bool) -> &mut Self

Show track size labels (default: false).

Source

pub fn grid_border_color(&mut self, v: Rgba) -> &mut Self

The grid container border highlight color (default: transparent).

Source

pub fn cell_border_color(&mut self, v: Rgba) -> &mut Self

👎Deprecated

The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead.

Source

pub fn row_line_color(&mut self, v: Rgba) -> &mut Self

The row line color (default: transparent).

Source

pub fn column_line_color(&mut self, v: Rgba) -> &mut Self

The column line color (default: transparent).

Source

pub fn grid_border_dash(&mut self, v: bool) -> &mut Self

Whether the grid border is dashed (default: false).

Source

pub fn cell_border_dash(&mut self, v: bool) -> &mut Self

👎Deprecated

Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead.

Source

pub fn row_line_dash(&mut self, v: bool) -> &mut Self

Whether row lines are dashed (default: false).

Source

pub fn column_line_dash(&mut self, v: bool) -> &mut Self

Whether column lines are dashed (default: false).

Source

pub fn row_gap_color(&mut self, v: Rgba) -> &mut Self

The row gap highlight fill color (default: transparent).

Source

pub fn row_hatch_color(&mut self, v: Rgba) -> &mut Self

The row gap hatching fill color (default: transparent).

Source

pub fn column_gap_color(&mut self, v: Rgba) -> &mut Self

The column gap highlight fill color (default: transparent).

Source

pub fn column_hatch_color(&mut self, v: Rgba) -> &mut Self

The column gap hatching fill color (default: transparent).

Source

pub fn area_border_color(&mut self, v: Rgba) -> &mut Self

The named grid areas border color (Default: transparent).

Source

pub fn grid_background_color(&mut self, v: Rgba) -> &mut Self

The grid container background color (Default: transparent).

Source

pub fn build(&mut self) -> Result<GridHighlightConfig, &'static str>

Trait Implementations§

Source§

impl Clone for GridHighlightConfigBuilder

Source§

fn clone(&self) -> GridHighlightConfigBuilder

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GridHighlightConfigBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GridHighlightConfigBuilder

Source§

fn default() -> Self

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.