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

pub struct ExtendedGraphicsStateBuilder { /* fields omitted */ }

Methods

impl ExtendedGraphicsStateBuilder[src]

pub fn new() -> Self[src]

Creates a new graphics state builder

pub fn with_line_width(self, line_width: f64) -> Self[src]

Sets the line width

pub fn with_line_cap(self, line_cap: LineCapStyle) -> Self[src]

Sets the line cap

pub fn with_line_join(self, line_join: LineJoinStyle) -> Self[src]

Sets the line join

pub fn with_miter_limit(self, miter_limit: f64) -> Self[src]

Sets the miter limit

pub fn with_rendering_intent(self, rendering_intent: RenderingIntent) -> Self[src]

Sets the rendering intent

pub fn with_overprint_stroke(self, overprint_stroke: bool) -> Self[src]

Sets the stroke overprint

pub fn with_overprint_fill(self, overprint_fill: bool) -> Self[src]

Sets the fill overprint

pub fn with_overprint_mode(self, overprint_mode: OverprintMode) -> Self[src]

Sets the overprint mode

pub fn with_font(self, font: Option<FontIndex>) -> Self[src]

Sets the font WARNING: Use layer.add_font() instead if you are not absolutely sure.

pub fn with_black_generation(
    self,
    black_generation: Option<BlackGenerationFunction>
) -> Self
[src]

Sets the black generation

pub fn with_black_generation_extra(
    self,
    black_generation_extra: Option<BlackGenerationExtraFunction>
) -> Self
[src]

Sets the black generation extra function

pub fn with_undercolor_removal(
    self,
    under_color_removal: Option<UnderColorRemovalFunction>
) -> Self
[src]

Sets the undercolor removal function

pub fn with_undercolor_removal_extra(
    self,
    under_color_removal_extra: Option<UnderColorRemovalExtraFunction>
) -> Self
[src]

Sets the undercolor removal extra function

pub fn with_transfer(self, transfer_function: Option<TransferFunction>) -> Self[src]

Sets the transfer function

pub fn with_transfer_extra(
    self,
    transfer_extra_function: Option<TransferExtraFunction>
) -> Self
[src]

Sets the transfer extra function

pub fn with_halftone(self, halftone_type: Option<HalftoneType>) -> Self[src]

Sets the halftone dictionary

pub fn with_flatness_tolerance(self, flatness_tolerance: f64) -> Self[src]

Sets the flatness tolerance

pub fn with_smoothness_tolerance(self, smoothness_tolerance: f64) -> Self[src]

Sets the smoothness tolerance

pub fn with_stroke_adjustment(self, stroke_adjustment: bool) -> Self[src]

Sets the stroke adjustment

pub fn with_blend_mode(self, blend_mode: BlendMode) -> Self[src]

Sets the blend mode

pub fn with_soft_mask(self, soft_mask: Option<SoftMask>) -> Self[src]

Sets the soft mask

pub fn with_current_stroke_alpha(self, current_stroke_alpha: f64) -> Self[src]

Sets the current alpha for strokes

pub fn with_current_fill_alpha(self, current_fill_alpha: f64) -> Self[src]

Sets the current alpha for fills

pub fn with_alpha_is_shape(self, alpha_is_shape: bool) -> Self[src]

Sets the current "alpha is shape"

pub fn with_text_knockout(self, text_knockout: bool) -> Self[src]

Sets the current text knockout

pub fn build(self) -> ExtendedGraphicsState[src]

Consumes the builder and returns an actual ExtendedGraphicsState

Trait Implementations

impl Clone for ExtendedGraphicsStateBuilder[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for ExtendedGraphicsStateBuilder[src]

impl Debug for ExtendedGraphicsStateBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.