Struct printpdf::types::plugins::graphics::extgstate::LineDashPattern
[−]
[src]
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>, }
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
Methods
impl LineDashPattern
[src]
pub fn new(
offset: i64,
dash_1: Option<i64>,
gap_1: Option<i64>,
dash_2: Option<i64>,
gap_2: Option<i64>,
dash_3: Option<i64>,
gap_3: Option<i64>
) -> Self
[src]
offset: i64,
dash_1: Option<i64>,
gap_1: Option<i64>,
dash_2: Option<i64>,
gap_2: Option<i64>,
dash_3: Option<i64>,
gap_3: Option<i64>
) -> Self
Creates a new dash pattern
pub fn default() -> Self
[src]
Creates a new dash pattern
Trait Implementations
impl Debug for LineDashPattern
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for LineDashPattern
[src]
fn eq(&self, __arg_0: &LineDashPattern) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LineDashPattern) -> bool
[src]
This method tests for !=
.
impl Copy for LineDashPattern
[src]
impl Clone for LineDashPattern
[src]
fn clone(&self) -> LineDashPattern
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more