Skip to main content

DummyDevice

Struct DummyDevice 

Source
pub struct DummyDevice;
Expand description

A device that discards all drawing operations.

Trait Implementations§

Source§

impl Device<'_> for DummyDevice

Source§

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)

Set the blend mode that should be used for rendering operations.
Source§

fn draw_path(&mut self, _: &BezPath, _: Affine, _: &Paint<'_>, _: &PathDrawMode)

Draw a path.
Source§

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

Push a new transparency group to the blend stack.
Source§

fn draw_glyph( &mut self, _: &Glyph<'_>, _: Affine, _: Affine, _: &Paint<'_>, _: &GlyphDrawMode, )

Draw a glyph.
Source§

fn draw_image(&mut self, _: Image<'_, '_>, _: Affine)

Draw an image.
Source§

fn pop_clip_path(&mut self)

Pop the last clip path from the clip stack.
Source§

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

Draw a rectangle directly, without going through the general path pipeline.
Source§

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)

Called at the end of a marked content sequence (EMC).
Source§

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§

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> 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, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(value: T, _simd: S) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

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.
Source§

impl<T> ErasedDestructor for T
where T: 'static,