Struct pdf_writer::writers::ShadingPattern
source · [−]pub struct ShadingPattern<'a> { /* private fields */ }
Expand description
Writer for a shading pattern dictionary. PDF 1.3+.
This struct is created by PdfWriter::shading_pattern
.
Implementations
sourceimpl<'a> ShadingPattern<'a>
impl<'a> ShadingPattern<'a>
sourcepub fn matrix(&mut self, matrix: [f32; 6]) -> &mut Self
pub fn matrix(&mut self, matrix: [f32; 6]) -> &mut Self
Write the /Matrix
attribute.
Sets the matrix to use for the pattern. Defaults to the identity matrix.
sourcepub fn ext_graphics(&mut self) -> ExtGraphicsState<'_>
pub fn ext_graphics(&mut self) -> ExtGraphicsState<'_>
Begin writing the /ExtGState
attribute.
Methods from Deref<Target = Dict<'a>>
Trait Implementations
sourceimpl<'a> Deref for ShadingPattern<'a>
impl<'a> Deref for ShadingPattern<'a>
sourceimpl<'a> DerefMut for ShadingPattern<'a>
impl<'a> DerefMut for ShadingPattern<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ShadingPattern<'a>
impl<'a> Send for ShadingPattern<'a>
impl<'a> Sync for ShadingPattern<'a>
impl<'a> Unpin for ShadingPattern<'a>
impl<'a> !UnwindSafe for ShadingPattern<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more