pub struct Device { /* private fields */ }
Implementations§
source§impl Device
impl Device
pub fn from_pixmap_with_clip( pixmap: &Pixmap, clip: IRect ) -> Result<Self, Error>
pub fn from_pixmap(pixmap: &Pixmap) -> Result<Self, Error>
pub fn from_display_list(list: &DisplayList) -> Result<Self, Error>
pub fn from_text_page( page: &TextPage, opts: TextPageOptions ) -> Result<Self, Error>
pub fn fill_path( &self, path: &Path, even_odd: bool, ctm: &Matrix, cs: &Colorspace, color: &[f32], alpha: f32, cp: ColorParams ) -> Result<(), Error>
pub fn stroke_path( &self, path: &Path, stroke: &StrokeState, ctm: &Matrix, cs: &Colorspace, color: &[f32], alpha: f32, cp: ColorParams ) -> Result<(), Error>
pub fn clip_path( &self, path: &Path, even_odd: bool, ctm: &Matrix ) -> Result<(), Error>
pub fn clip_stroke_path( &self, path: &Path, stroke: &StrokeState, ctm: &Matrix ) -> Result<(), Error>
pub fn fill_text( &self, text: &Text, ctm: &Matrix, cs: &Colorspace, color: &[f32], alpha: f32, cp: ColorParams ) -> Result<(), Error>
pub fn stroke_text( &self, text: &Text, stroke: &StrokeState, ctm: &Matrix, cs: &Colorspace, color: &[f32], alpha: f32, cp: ColorParams ) -> Result<(), Error>
pub fn clip_text(&self, text: &Text, ctm: &Matrix) -> Result<(), Error>
pub fn clip_stroke_text( &self, text: &Text, stroke: &StrokeState, ctm: &Matrix ) -> Result<(), Error>
pub fn ignore_text(&self, text: &Text, ctm: &Matrix) -> Result<(), Error>
pub fn fill_shade( &self, shd: &Shade, ctm: &Matrix, alpha: f32, cp: ColorParams ) -> Result<(), Error>
pub fn fill_image( &self, image: &Image, ctm: &Matrix, alpha: f32, cp: ColorParams ) -> Result<(), Error>
pub fn fill_image_mask( &self, image: &Image, ctm: &Matrix, cs: &Colorspace, color: &[f32], alpha: f32, cp: ColorParams ) -> Result<(), Error>
pub fn clip_image_mask(&self, image: &Image, ctm: &Matrix) -> Result<(), Error>
pub fn pop_clip(&self) -> Result<(), Error>
pub fn begin_mask( &self, area: Rect, luminosity: bool, cs: &Colorspace, bc: &[f32], cp: ColorParams ) -> Result<(), Error>
pub fn end_mask(&self) -> Result<(), Error>
pub fn begin_group( &self, area: Rect, cs: &Colorspace, isolated: bool, knockout: bool, blend_mode: BlendMode, alpha: f32 ) -> Result<(), Error>
pub fn end_group(&self) -> Result<(), Error>
pub fn begin_tile( &self, area: Rect, view: Rect, xstep: f32, ystep: f32, ctm: &Matrix, id: i32 ) -> Result<i32, Error>
pub fn end_tile(&self) -> Result<(), Error>
pub fn begin_layer(&self, name: &str) -> Result<(), Error>
pub fn end_layer(&self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl !Send for Device
impl !Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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