GridHighlightConfig

Struct GridHighlightConfig 

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

Configuration data for the highlighting of Grid elements.

Implementations§

Source§

impl GridHighlightConfig

Source

pub fn builder() -> GridHighlightConfigBuilder

Source

pub fn show_grid_extension_lines(&self) -> Option<&bool>

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

Source

pub fn show_positive_line_numbers(&self) -> Option<&bool>

Show Positive line number labels (default: false).

Source

pub fn show_negative_line_numbers(&self) -> Option<&bool>

Show Negative line number labels (default: false).

Source

pub fn show_area_names(&self) -> Option<&bool>

Show area name labels (default: false).

Source

pub fn show_line_names(&self) -> Option<&bool>

Show line name labels (default: false).

Source

pub fn show_track_sizes(&self) -> Option<&bool>

Show track size labels (default: false).

Source

pub fn grid_border_color(&self) -> Option<&Rgba>

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

Source

pub fn cell_border_color(&self) -> Option<&Rgba>

👎Deprecated

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

Source

pub fn row_line_color(&self) -> Option<&Rgba>

The row line color (default: transparent).

Source

pub fn column_line_color(&self) -> Option<&Rgba>

The column line color (default: transparent).

Source

pub fn grid_border_dash(&self) -> Option<&bool>

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

Source

pub fn cell_border_dash(&self) -> Option<&bool>

👎Deprecated

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

Source

pub fn row_line_dash(&self) -> Option<&bool>

Whether row lines are dashed (default: false).

Source

pub fn column_line_dash(&self) -> Option<&bool>

Whether column lines are dashed (default: false).

Source

pub fn row_gap_color(&self) -> Option<&Rgba>

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

Source

pub fn row_hatch_color(&self) -> Option<&Rgba>

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

Source

pub fn column_gap_color(&self) -> Option<&Rgba>

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

Source

pub fn column_hatch_color(&self) -> Option<&Rgba>

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

Source

pub fn area_border_color(&self) -> Option<&Rgba>

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

Source

pub fn grid_background_color(&self) -> Option<&Rgba>

The grid container background color (Default: transparent).

Trait Implementations§

Source§

impl Clone for GridHighlightConfig

Source§

fn clone(&self) -> GridHighlightConfig

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 GridHighlightConfig

Source§

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

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

impl<'de> Deserialize<'de> for GridHighlightConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for GridHighlightConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,