logo
pub struct StyleContext {
    pub point_size: Option<PointSize>,
    pub point_color: Option<PointColor>,
    pub circle_width: Option<CircleWidth>,
    pub circle_color: Option<CircleColor>,
    pub disk_fill_color: Option<DiskFillColor>,
    pub disk_edge_width: Option<DiskEdgeWidth>,
    pub disk_edge_color: Option<DiskEdgeColor>,
    pub line_width: Option<LineWidth>,
    pub line_color: Option<LineColor>,
}
Expand description

Get default style when not specified.

Fields

point_size: Option<PointSize>

Get default PointSize when missing.

point_color: Option<PointColor>

Get default PointColor when missing.

circle_width: Option<CircleWidth>

Get default CircleWidth when missing.

circle_color: Option<CircleColor>

Get default CircleColor when missing.

disk_fill_color: Option<DiskFillColor>

Get default DiskFillColor when missing.

disk_edge_width: Option<DiskEdgeWidth>

Get default DiskEdgeWidth when missing.

disk_edge_color: Option<DiskEdgeColor>

Get default DiskEdgeColor when missing.

line_width: Option<LineWidth>

Get default LineWidth when missing.

line_color: Option<LineColor>

Get default LineColor when missing.

Trait Implementations

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.