[−][src]Struct printpdf::types::plugins::graphics::extgstate::LineDashPattern
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 Clone for LineDashPattern
[src]
fn clone(&self) -> LineDashPattern
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LineDashPattern
[src]
impl Debug for LineDashPattern
[src]
impl Into<(Vec<i64>, i64)> for LineDashPattern
[src]
impl Into<Object> for LineDashPattern
[src]
impl Into<Operation> for LineDashPattern
[src]
impl PartialEq<LineDashPattern> for LineDashPattern
[src]
fn eq(&self, other: &LineDashPattern) -> bool
[src]
fn ne(&self, other: &LineDashPattern) -> bool
[src]
impl StructuralPartialEq for LineDashPattern
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,