pub struct LineDashPattern {
pub offset: i64,
pub dash_1: Option<i64>,
pub gap_1: Option<i64>,
pub dash_2: Option<i64>,
pub gap_2: Option<i64>,
pub dash_3: Option<i64>,
pub gap_3: Option<i64>,
}
Expand description
Line dash pattern is made up of a total width
Fields§
§offset: i64
Offset at which the dashing pattern should start, measured from the beginning ot the line Default: 0 (start directly where the line starts)
dash_1: Option<i64>
Length of the first dash in the dash pattern. If None
, the line will be solid (good for resetting the dash pattern)
gap_1: Option<i64>
Whitespace after the first dash. If None
, whitespace will be the same as length_1st,
meaning that the line will have dash - whitespace - dash - whitespace in even offsets
dash_2: Option<i64>
Length of the second dash in the dash pattern. If None, will be equal to length_1st
gap_2: Option<i64>
Same as whitespace_1st, but for length_2nd
dash_3: Option<i64>
Length of the second dash in the dash pattern. If None, will be equal to length_1st
gap_3: Option<i64>
Same as whitespace_1st, but for length_3rd
Implementations§
Trait Implementations§
source§impl Clone for LineDashPattern
impl Clone for LineDashPattern
source§fn clone(&self) -> LineDashPattern
fn clone(&self) -> LineDashPattern
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more