Skip to main content

PatternFillParams

Struct PatternFillParams 

Source
pub struct PatternFillParams {
Show 14 fields pub path: PsPath, pub fill_rule: FillRule, pub tile: DisplayList, pub pattern_matrix: Matrix, pub bbox: [f64; 4], pub xstep: f64, pub ystep: f64, pub paint_type: i32, pub underlying_color: Option<DeviceColor>, pub pattern_id: u32, pub device_space_tile: bool, pub flip_tile_y: bool, pub stroke_params: Option<StrokeParams>, pub overprint_mode: i32,
}
Expand description

Parameters for a tiled pattern fill.

Fields§

§path: PsPath

The path to fill with the pattern.

§fill_rule: FillRule

Fill rule for the path.

§tile: DisplayList

Pre-rendered display list for a single tile.

§pattern_matrix: Matrix

Pattern matrix (pattern space → device space).

§bbox: [f64; 4]

Bounding box of one tile in pattern space.

§xstep: f64

Horizontal step between tile origins.

§ystep: f64

Vertical step between tile origins.

§paint_type: i32

Paint type: 1 = colored, 2 = uncolored.

§underlying_color: Option<DeviceColor>

For uncolored patterns, the fill color.

§pattern_id: u32

Unique pattern ID from pattern_store (for dedup in PDF output).

§device_space_tile: bool

When true, tile display list elements have CTMs in device space (the pattern matrix is already baked into element transforms). When false, elements are in pattern space and the renderer applies the pattern_matrix during rendering.

§flip_tile_y: bool

When true, the tile content was designed for a Y-flipped coordinate system (pattern matrix had negative d). The pre-rendered tile must be vertically flipped before stamping.

§stroke_params: Option<StrokeParams>

For pattern strokes: stroke parameters to expand the centerline path into a fill outline for masking. When Some, path is a user-space stroke centerline rather than a fill path.

§overprint_mode: i32

PDF overprint mode (0 or 1). When 1, CMYK(0,0,0,0) pixels in tile images are transparent (no ink = don’t paint).

Trait Implementations§

Source§

impl Clone for PatternFillParams

Source§

fn clone(&self) -> PatternFillParams

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
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.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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>,

Source§

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.