Struct printpdf::extgstate::LineDashPattern
source · [−]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
sourceimpl Clone for LineDashPattern
impl Clone for LineDashPattern
sourcefn clone(&self) -> LineDashPattern
fn clone(&self) -> LineDashPattern
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LineDashPattern
impl Debug for LineDashPattern
sourceimpl Into<Object> for LineDashPattern
impl Into<Object> for LineDashPattern
sourceimpl Into<Operation> for LineDashPattern
impl Into<Operation> for LineDashPattern
sourceimpl PartialEq<LineDashPattern> for LineDashPattern
impl PartialEq<LineDashPattern> for LineDashPattern
sourcefn eq(&self, other: &LineDashPattern) -> bool
fn eq(&self, other: &LineDashPattern) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for LineDashPattern
impl StructuralPartialEq for LineDashPattern
Auto Trait Implementations
impl RefUnwindSafe for LineDashPattern
impl Send for LineDashPattern
impl Sync for LineDashPattern
impl Unpin for LineDashPattern
impl UnwindSafe for LineDashPattern
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more