pub struct TilingPattern {
pub tile: DisplayList,
pub bbox: [f64; 4],
pub x_step: f64,
pub y_step: f64,
pub pattern_matrix: Matrix,
pub paint_type: i32,
pub pattern_id: u32,
pub flip_tile_y: bool,
}Expand description
A resolved tiling pattern ready to be applied at fill/stroke time.
Fields§
§tile: DisplayListPre-rendered display list for a single tile.
bbox: [f64; 4]Bounding box of one tile in pattern space.
x_step: f64Horizontal step between tile origins.
y_step: f64Vertical step between tile origins.
pattern_matrix: MatrixCombined pattern matrix (CTM x pattern_matrix at scn time).
paint_type: i32Paint type: 1 = colored, 2 = uncolored.
pattern_id: u32Unique pattern ID for dedup.
flip_tile_y: boolTrue when the PDF pattern matrix had a Y-flip (negative d component).
Trait Implementations§
Source§impl Clone for TilingPattern
impl Clone for TilingPattern
Source§fn clone(&self) -> TilingPattern
fn clone(&self) -> TilingPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TilingPattern
impl RefUnwindSafe for TilingPattern
impl Send for TilingPattern
impl Sync for TilingPattern
impl Unpin for TilingPattern
impl UnsafeUnpin for TilingPattern
impl UnwindSafe for TilingPattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more