pub struct DummyDevice;Expand description
A device that discards all drawing operations.
Trait Implementations§
Source§impl Device<'_> for DummyDevice
impl Device<'_> for DummyDevice
Source§fn set_soft_mask(&mut self, _: Option<SoftMask<'_>>)
fn set_soft_mask(&mut self, _: Option<SoftMask<'_>>)
Set the properties for future stroking operations.
Set a soft mask to be used for future drawing instructions.
Source§fn set_blend_mode(&mut self, _: BlendMode)
fn set_blend_mode(&mut self, _: BlendMode)
Set the blend mode that should be used for rendering operations.
Source§fn push_clip_path(&mut self, _: &ClipPath)
fn push_clip_path(&mut self, _: &ClipPath)
Push a new clip path to the clip stack.
Source§fn push_transparency_group(
&mut self,
_: f32,
_: Option<SoftMask<'_>>,
_: BlendMode,
)
fn push_transparency_group( &mut self, _: f32, _: Option<SoftMask<'_>>, _: BlendMode, )
Push a new transparency group to the blend stack.
Source§fn draw_glyph(
&mut self,
_: &Glyph<'_>,
_: Affine,
_: Affine,
_: &Paint<'_>,
_: &GlyphDrawMode,
)
fn draw_glyph( &mut self, _: &Glyph<'_>, _: Affine, _: Affine, _: &Paint<'_>, _: &GlyphDrawMode, )
Draw a glyph.
Source§fn draw_image(&mut self, _: Image<'_, '_>, _: Affine)
fn draw_image(&mut self, _: Image<'_, '_>, _: Affine)
Draw an image.
Source§fn pop_clip_path(&mut self)
fn pop_clip_path(&mut self)
Pop the last clip path from the clip stack.
Source§fn pop_transparency_group(&mut self)
fn pop_transparency_group(&mut self)
Pop the last transparency group from the blend stack.
Source§fn draw_rect(
&mut self,
rect: &Rect,
transform: Affine,
paint: &Paint<'a>,
draw_mode: &PathDrawMode,
)
fn draw_rect( &mut self, rect: &Rect, transform: Affine, paint: &Paint<'a>, draw_mode: &PathDrawMode, )
Draw a rectangle directly, without going through the general path pipeline.
Source§fn begin_marked_content(&mut self, _tag: &[u8], _mcid: Option<i32>)
fn begin_marked_content(&mut self, _tag: &[u8], _mcid: Option<i32>)
Called at the beginning of a marked content sequence (BMC/BDC). Read more
Source§fn end_marked_content(&mut self)
fn end_marked_content(&mut self)
Called at the end of a marked content sequence (EMC).
Source§fn text_adjustment(&mut self, _amount: f32)
fn text_adjustment(&mut self, _amount: f32)
Called when a TJ-array numeric adjustment is encountered between
substrings. Positive values shift text backward, negative values shift
it forward (1/1000 em units, per PDF §9.4.3). Text extractors use this
as a high-confidence word-boundary signal.
Auto Trait Implementations§
impl Freeze for DummyDevice
impl RefUnwindSafe for DummyDevice
impl Send for DummyDevice
impl Sync for DummyDevice
impl Unpin for DummyDevice
impl UnsafeUnpin for DummyDevice
impl UnwindSafe for DummyDevice
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