pub struct ExtendedGraphicsStateBuilder { /* private fields */ }

Implementations§

source§

impl ExtendedGraphicsStateBuilder

source

pub fn new() -> Self

Creates a new graphics state builder

source

pub fn with_line_width(self, line_width: f32) -> Self

Sets the line width

source

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

Sets the line cap

source

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

Sets the line join

source

pub fn with_miter_limit(self, miter_limit: f32) -> Self

Sets the miter limit

source

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

Sets the rendering intent

source

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

Sets the stroke overprint

source

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

Sets the fill overprint

source

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

Sets the overprint mode

source

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

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

source

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

Sets the black generation

source

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

Sets the black generation extra function

source

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

Sets the undercolor removal function

source

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

Sets the undercolor removal extra function

source

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

Sets the transfer function

source

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

Sets the transfer extra function

source

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

Sets the halftone dictionary

source

pub fn with_flatness_tolerance(self, flatness_tolerance: f32) -> Self

Sets the flatness tolerance

source

pub fn with_smoothness_tolerance(self, smoothness_tolerance: f32) -> Self

Sets the smoothness tolerance

source

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

Sets the stroke adjustment

source

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

Sets the blend mode

source

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

Sets the soft mask

source

pub fn with_current_stroke_alpha(self, current_stroke_alpha: f32) -> Self

Sets the current alpha for strokes

source

pub fn with_current_fill_alpha(self, current_fill_alpha: f32) -> Self

Sets the current alpha for fills

source

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

Sets the current “alpha is shape”

source

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

Sets the current text knockout

source

pub fn build(self) -> ExtendedGraphicsState

Consumes the builder and returns an actual ExtendedGraphicsState

Trait Implementations§

source§

impl Clone for ExtendedGraphicsStateBuilder

source§

fn clone(&self) -> ExtendedGraphicsStateBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExtendedGraphicsStateBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ExtendedGraphicsStateBuilder

source§

fn default() -> ExtendedGraphicsStateBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Finish for T

source§

fn finish(self)

Does nothing but move self, equivalent to drop.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.