Struct pdf_writer::writers::TilingPattern
source · pub struct TilingPattern<'a> { /* private fields */ }Expand description
Writer for a tiling pattern stream.
This struct is created by Chunk::tiling_pattern.
Implementations§
source§impl<'a> TilingPattern<'a>
impl<'a> TilingPattern<'a>
sourcepub fn paint_type(&mut self, paint_type: PaintType) -> &mut Self
pub fn paint_type(&mut self, paint_type: PaintType) -> &mut Self
Write the /PaintType attribute.
Sets whether to use external or stream color. Required.
sourcepub fn tiling_type(&mut self, tiling_type: TilingType) -> &mut Self
pub fn tiling_type(&mut self, tiling_type: TilingType) -> &mut Self
Write the /TilingType attribute.
Sets how to stretch and space the pattern. Required.
sourcepub fn bbox(&mut self, bbox: Rect) -> &mut Self
pub fn bbox(&mut self, bbox: Rect) -> &mut Self
Write the /BBox attribute.
Sets the bounding box of the pattern in the pattern’s coordinate system. Required.
sourcepub fn x_step(&mut self, x_step: f32) -> &mut Self
pub fn x_step(&mut self, x_step: f32) -> &mut Self
Write the /XStep attribute.
Sets the horizontal spacing between pattern cells. Required.
Panics if x_step is zero.
sourcepub fn y_step(&mut self, y_step: f32) -> &mut Self
pub fn y_step(&mut self, y_step: f32) -> &mut Self
Write the /YStep attribute.
Sets the vertical spacing between pattern cells. Required.
Panics if y_step is zero.
Methods from Deref<Target = Stream<'a>>§
Methods from Deref<Target = Dict<'a>>§
sourcepub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
pub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
Start writing a pair with an arbitrary value.
Trait Implementations§
source§impl<'a> Deref for TilingPattern<'a>
impl<'a> Deref for TilingPattern<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TilingPattern<'a>
impl<'a> Send for TilingPattern<'a>
impl<'a> Sync for TilingPattern<'a>
impl<'a> Unpin for TilingPattern<'a>
impl<'a> !UnwindSafe for TilingPattern<'a>
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