Struct printpdf::extgstate::ExtendedGraphicsStateBuilder
source · pub struct ExtendedGraphicsStateBuilder { /* private fields */ }
Implementations§
source§impl ExtendedGraphicsStateBuilder
impl ExtendedGraphicsStateBuilder
sourcepub fn with_line_width(self, line_width: f32) -> Self
pub fn with_line_width(self, line_width: f32) -> Self
Sets the line width
sourcepub fn with_line_cap(self, line_cap: LineCapStyle) -> Self
pub fn with_line_cap(self, line_cap: LineCapStyle) -> Self
Sets the line cap
sourcepub fn with_line_join(self, line_join: LineJoinStyle) -> Self
pub fn with_line_join(self, line_join: LineJoinStyle) -> Self
Sets the line join
sourcepub fn with_miter_limit(self, miter_limit: f32) -> Self
pub fn with_miter_limit(self, miter_limit: f32) -> Self
Sets the miter limit
sourcepub fn with_rendering_intent(self, rendering_intent: RenderingIntent) -> Self
pub fn with_rendering_intent(self, rendering_intent: RenderingIntent) -> Self
Sets the rendering intent
sourcepub fn with_overprint_stroke(self, overprint_stroke: bool) -> Self
pub fn with_overprint_stroke(self, overprint_stroke: bool) -> Self
Sets the stroke overprint
sourcepub fn with_overprint_fill(self, overprint_fill: bool) -> Self
pub fn with_overprint_fill(self, overprint_fill: bool) -> Self
Sets the fill overprint
sourcepub fn with_overprint_mode(self, overprint_mode: OverprintMode) -> Self
pub fn with_overprint_mode(self, overprint_mode: OverprintMode) -> Self
Sets the overprint mode
sourcepub fn with_font(self, font: Option<FontIndex>) -> Self
pub fn with_font(self, font: Option<FontIndex>) -> Self
Sets the font
WARNING: Use layer.add_font()
instead if you are not absolutely sure.
sourcepub fn with_black_generation(
self,
black_generation: Option<BlackGenerationFunction>
) -> Self
pub fn with_black_generation( self, black_generation: Option<BlackGenerationFunction> ) -> Self
Sets the black generation
sourcepub fn with_black_generation_extra(
self,
black_generation_extra: Option<BlackGenerationExtraFunction>
) -> Self
pub fn with_black_generation_extra( self, black_generation_extra: Option<BlackGenerationExtraFunction> ) -> Self
Sets the black generation extra function
sourcepub fn with_undercolor_removal(
self,
under_color_removal: Option<UnderColorRemovalFunction>
) -> Self
pub fn with_undercolor_removal( self, under_color_removal: Option<UnderColorRemovalFunction> ) -> Self
Sets the undercolor removal function
sourcepub fn with_undercolor_removal_extra(
self,
under_color_removal_extra: Option<UnderColorRemovalExtraFunction>
) -> Self
pub fn with_undercolor_removal_extra( self, under_color_removal_extra: Option<UnderColorRemovalExtraFunction> ) -> Self
Sets the undercolor removal extra function
sourcepub fn with_transfer(self, transfer_function: Option<TransferFunction>) -> Self
pub fn with_transfer(self, transfer_function: Option<TransferFunction>) -> Self
Sets the transfer function
sourcepub fn with_transfer_extra(
self,
transfer_extra_function: Option<TransferExtraFunction>
) -> Self
pub fn with_transfer_extra( self, transfer_extra_function: Option<TransferExtraFunction> ) -> Self
Sets the transfer extra function
sourcepub fn with_halftone(self, halftone_type: Option<HalftoneType>) -> Self
pub fn with_halftone(self, halftone_type: Option<HalftoneType>) -> Self
Sets the halftone dictionary
sourcepub fn with_flatness_tolerance(self, flatness_tolerance: f32) -> Self
pub fn with_flatness_tolerance(self, flatness_tolerance: f32) -> Self
Sets the flatness tolerance
sourcepub fn with_smoothness_tolerance(self, smoothness_tolerance: f32) -> Self
pub fn with_smoothness_tolerance(self, smoothness_tolerance: f32) -> Self
Sets the smoothness tolerance
sourcepub fn with_stroke_adjustment(self, stroke_adjustment: bool) -> Self
pub fn with_stroke_adjustment(self, stroke_adjustment: bool) -> Self
Sets the stroke adjustment
sourcepub fn with_blend_mode(self, blend_mode: BlendMode) -> Self
pub fn with_blend_mode(self, blend_mode: BlendMode) -> Self
Sets the blend mode
sourcepub fn with_soft_mask(self, soft_mask: Option<SoftMask>) -> Self
pub fn with_soft_mask(self, soft_mask: Option<SoftMask>) -> Self
Sets the soft mask
sourcepub fn with_current_stroke_alpha(self, current_stroke_alpha: f32) -> Self
pub fn with_current_stroke_alpha(self, current_stroke_alpha: f32) -> Self
Sets the current alpha for strokes
sourcepub fn with_current_fill_alpha(self, current_fill_alpha: f32) -> Self
pub fn with_current_fill_alpha(self, current_fill_alpha: f32) -> Self
Sets the current alpha for fills
sourcepub fn with_alpha_is_shape(self, alpha_is_shape: bool) -> Self
pub fn with_alpha_is_shape(self, alpha_is_shape: bool) -> Self
Sets the current “alpha is shape”
sourcepub fn with_text_knockout(self, text_knockout: bool) -> Self
pub fn with_text_knockout(self, text_knockout: bool) -> Self
Sets the current text knockout
sourcepub fn build(self) -> ExtendedGraphicsState
pub fn build(self) -> ExtendedGraphicsState
Consumes the builder and returns an actual ExtendedGraphicsState
Trait Implementations§
source§impl Clone for ExtendedGraphicsStateBuilder
impl Clone for ExtendedGraphicsStateBuilder
source§fn clone(&self) -> ExtendedGraphicsStateBuilder
fn clone(&self) -> ExtendedGraphicsStateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more