Skip to main content

DisplayListDevice

Struct DisplayListDevice 

Source
pub struct DisplayListDevice<'a> { /* private fields */ }
Expand description

A device that records drawing commands into a display list.

This wrapper carries the mutable borrow of the display list for as long as the recording device is alive, preventing safe Rust code from reading or recording the same list concurrently.

Methods from Deref<Target = Device>§

Source

pub fn fill_path( &self, path: &Path, even_odd: bool, ctm: &Matrix, cs: &Colorspace, color: &[f32], alpha: f32, cp: ColorParams, ) -> Result<(), Error>

The colors in color must match the colorspace cs, as described in Colorspace::convert_color

Source

pub fn stroke_path( &self, path: &Path, stroke: &StrokeState, ctm: &Matrix, cs: &Colorspace, color: &[f32], alpha: f32, cp: ColorParams, ) -> Result<(), Error>

The colors in color must match the colorspace cs, as described in Colorspace::convert_color

Source

pub fn clip_path( &self, path: &Path, even_odd: bool, ctm: &Matrix, ) -> Result<(), Error>

Source

pub fn clip_stroke_path( &self, path: &Path, stroke: &StrokeState, ctm: &Matrix, ) -> Result<(), Error>

Source

pub fn fill_text( &self, text: &Text, ctm: &Matrix, cs: &Colorspace, color: &[f32], alpha: f32, cp: ColorParams, ) -> Result<(), Error>

The colors in color must match the colorspace cs, as described in Colorspace::convert_color

Source

pub fn stroke_text( &self, text: &Text, stroke: &StrokeState, ctm: &Matrix, cs: &Colorspace, color: &[f32], alpha: f32, cp: ColorParams, ) -> Result<(), Error>

The colors in color must match the colorspace cs, as described in Colorspace::convert_color

Source

pub fn clip_text(&self, text: &Text, ctm: &Matrix) -> Result<(), Error>

Source

pub fn clip_stroke_text( &self, text: &Text, stroke: &StrokeState, ctm: &Matrix, ) -> Result<(), Error>

Source

pub fn ignore_text(&self, text: &Text, ctm: &Matrix) -> Result<(), Error>

Source

pub fn fill_shade( &self, shd: &Shade, ctm: &Matrix, alpha: f32, cp: ColorParams, ) -> Result<(), Error>

Source

pub fn fill_image( &self, image: &Image, ctm: &Matrix, alpha: f32, cp: ColorParams, ) -> Result<(), Error>

Source

pub fn fill_image_mask( &self, image: &Image, ctm: &Matrix, cs: &Colorspace, color: &[f32], alpha: f32, cp: ColorParams, ) -> Result<(), Error>

The colors in color must match the colorspace cs, as described in Colorspace::convert_color

Source

pub fn clip_image_mask(&self, image: &Image, ctm: &Matrix) -> Result<(), Error>

Source

pub fn pop_clip(&self) -> Result<(), Error>

Source

pub fn begin_mask( &self, area: Rect, luminosity: bool, cs: &Colorspace, bc: &[f32], cp: ColorParams, ) -> Result<(), Error>

Source

pub fn end_mask(&self, f: Option<&Function>) -> Result<(), Error>

Source

pub fn begin_group( &self, area: Rect, cs: &Colorspace, isolated: bool, knockout: bool, blend_mode: BlendMode, alpha: f32, ) -> Result<(), Error>

Source

pub fn end_group(&self) -> Result<(), Error>

Source

pub fn begin_tile( &self, area: Rect, view: Rect, xstep: f32, ystep: f32, ctm: &Matrix, id: Option<NonZero<i32>>, doc_id: Option<NonZero<i32>>, ) -> Result<Option<NonZero<i32>>, Error>

Source

pub fn end_tile(&self) -> Result<(), Error>

Source

pub fn begin_layer(&self, name: &str) -> Result<(), Error>

Source

pub fn end_layer(&self) -> Result<(), Error>

Source

pub fn begin_structure( &self, standard: Structure, raw: &str, idx: i32, ) -> Result<(), Error>

Source

pub fn end_structure(&self) -> Result<(), Error>

Source

pub fn begin_metatext(&self, meta: Metatext, text: &str) -> Result<(), Error>

Source

pub fn end_metatext(&self) -> Result<(), Error>

Trait Implementations§

Source§

impl<'a> Debug for DisplayListDevice<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for DisplayListDevice<'_>

Source§

type Target = Device

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.

Auto Trait Implementations§

§

impl<'a> !Send for DisplayListDevice<'a>

§

impl<'a> !Sync for DisplayListDevice<'a>

§

impl<'a> !UnwindSafe for DisplayListDevice<'a>

§

impl<'a> Freeze for DisplayListDevice<'a>

§

impl<'a> RefUnwindSafe for DisplayListDevice<'a>

§

impl<'a> Unpin for DisplayListDevice<'a>

§

impl<'a> UnsafeUnpin for DisplayListDevice<'a>

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.