[][src]Struct printpdf::types::plugins::graphics::extgstate::LineDashPattern

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

Implementations

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]

Creates a new dash pattern

pub fn default() -> Self[src]

Creates a new dash pattern

Trait Implementations

impl Clone for LineDashPattern[src]

impl Copy for LineDashPattern[src]

impl Debug for LineDashPattern[src]

impl Into<(Vec<i64, Global>, i64)> for LineDashPattern[src]

impl Into<Object> for LineDashPattern[src]

impl Into<Operation> for LineDashPattern[src]

impl PartialEq<LineDashPattern> for LineDashPattern[src]

impl StructuralPartialEq for LineDashPattern[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.