[−][src]Struct mupdf::device::Device
Implementations
impl Device
[src]
pub fn from_pixmap_with_clip(
pixmap: &Pixmap,
clip: IRect
) -> Result<Self, Error>
[src]
pixmap: &Pixmap,
clip: IRect
) -> Result<Self, Error>
pub fn from_pixmap(pixmap: &Pixmap) -> Result<Self, Error>
[src]
pub fn from_display_list(list: &DisplayList) -> Result<Self, Error>
[src]
pub fn from_text_page(
page: &TextPage,
opts: TextPageOptions
) -> Result<Self, Error>
[src]
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>
[src]
&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>
[src]
&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>
[src]
&self,
path: &Path,
even_odd: bool,
ctm: &Matrix
) -> Result<(), Error>
pub fn clip_stroke_path(
&self,
path: &Path,
stroke: &StrokeState,
ctm: &Matrix
) -> Result<(), Error>
[src]
&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>
[src]
&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>
[src]
&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>
[src]
pub fn clip_stroke_text(
&self,
text: &Text,
stroke: &StrokeState,
ctm: &Matrix
) -> Result<(), Error>
[src]
&self,
text: &Text,
stroke: &StrokeState,
ctm: &Matrix
) -> Result<(), Error>
pub fn ignore_text(&self, text: &Text, ctm: &Matrix) -> Result<(), Error>
[src]
pub fn fill_shade(
&self,
shd: &Shade,
ctm: &Matrix,
alpha: f32,
cp: ColorParams
) -> Result<(), Error>
[src]
&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>
[src]
&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>
[src]
&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>
[src]
pub fn pop_clip(&self) -> Result<(), Error>
[src]
pub fn begin_mask(
&self,
area: Rect,
luminosity: bool,
cs: &Colorspace,
bc: &[f32],
cp: ColorParams
) -> Result<(), Error>
[src]
&self,
area: Rect,
luminosity: bool,
cs: &Colorspace,
bc: &[f32],
cp: ColorParams
) -> Result<(), Error>
pub fn end_mask(&self) -> Result<(), Error>
[src]
pub fn begin_group(
&self,
area: Rect,
cs: &Colorspace,
isolated: bool,
knockout: bool,
blend_mode: BlendMode,
alpha: f32
) -> Result<(), Error>
[src]
&self,
area: Rect,
cs: &Colorspace,
isolated: bool,
knockout: bool,
blend_mode: BlendMode,
alpha: f32
) -> Result<(), Error>
pub fn end_group(&self) -> Result<(), Error>
[src]
pub fn begin_tile(
&self,
area: Rect,
view: Rect,
xstep: f32,
ystep: f32,
ctm: &Matrix,
id: i32
) -> Result<i32, Error>
[src]
&self,
area: Rect,
view: Rect,
xstep: f32,
ystep: f32,
ctm: &Matrix,
id: i32
) -> Result<i32, Error>
pub fn end_tile(&self) -> Result<(), Error>
[src]
pub fn begin_layer(&self, name: &str) -> Result<(), Error>
[src]
pub fn end_layer(&self) -> Result<(), Error>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Device
[src]
impl !Send for Device
[src]
impl !Sync for Device
[src]
impl Unpin for Device
[src]
impl UnwindSafe for Device
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,