Struct mupdf_sys::fz_device

source ·
#[repr(C)]
pub struct fz_device {
Show 33 fields pub refs: c_int, pub hints: c_int, pub flags: c_int, pub close_device: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>, pub drop_device: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>, pub fill_path: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_path, even_odd: c_int, arg4: fz_matrix, arg5: *mut fz_colorspace, color: *const f32, alpha: f32, arg6: fz_color_params)>, pub stroke_path: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_path, arg4: *const fz_stroke_state, arg5: fz_matrix, arg6: *mut fz_colorspace, color: *const f32, alpha: f32, arg7: fz_color_params)>, pub clip_path: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_path, even_odd: c_int, arg4: fz_matrix, scissor: fz_rect)>, pub clip_stroke_path: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_path, arg4: *const fz_stroke_state, arg5: fz_matrix, scissor: fz_rect)>, pub fill_text: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_text, arg4: fz_matrix, arg5: *mut fz_colorspace, color: *const f32, alpha: f32, arg6: fz_color_params)>, pub stroke_text: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_text, arg4: *const fz_stroke_state, arg5: fz_matrix, arg6: *mut fz_colorspace, color: *const f32, alpha: f32, arg7: fz_color_params)>, pub clip_text: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_text, arg4: fz_matrix, scissor: fz_rect)>, pub clip_stroke_text: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_text, arg4: *const fz_stroke_state, arg5: fz_matrix, scissor: fz_rect)>, pub ignore_text: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_text, arg4: fz_matrix)>, pub fill_shade: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, shd: *mut fz_shade, ctm: fz_matrix, alpha: f32, color_params: fz_color_params)>, pub fill_image: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, img: *mut fz_image, ctm: fz_matrix, alpha: f32, color_params: fz_color_params)>, pub fill_image_mask: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, img: *mut fz_image, ctm: fz_matrix, arg3: *mut fz_colorspace, color: *const f32, alpha: f32, color_params: fz_color_params)>, pub clip_image_mask: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, img: *mut fz_image, ctm: fz_matrix, scissor: fz_rect)>, pub pop_clip: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>, pub begin_mask: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, area: fz_rect, luminosity: c_int, arg3: *mut fz_colorspace, bc: *const f32, arg4: fz_color_params)>, pub end_mask: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>, pub begin_group: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, area: fz_rect, cs: *mut fz_colorspace, isolated: c_int, knockout: c_int, blendmode: c_int, alpha: f32)>, pub end_group: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>, pub begin_tile: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, area: fz_rect, view: fz_rect, xstep: f32, ystep: f32, ctm: fz_matrix, id: c_int) -> c_int>, pub end_tile: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>, pub render_flags: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, set: c_int, clear: c_int)>, pub set_default_colorspaces: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *mut fz_default_colorspaces)>, pub begin_layer: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, layer_name: *const c_char)>, pub end_layer: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>, pub d1_rect: fz_rect, pub container_len: c_int, pub container_cap: c_int, pub container: *mut fz_device_container_stack,
}

Fields§

§refs: c_int§hints: c_int§flags: c_int§close_device: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>§drop_device: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>§fill_path: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_path, even_odd: c_int, arg4: fz_matrix, arg5: *mut fz_colorspace, color: *const f32, alpha: f32, arg6: fz_color_params)>§stroke_path: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_path, arg4: *const fz_stroke_state, arg5: fz_matrix, arg6: *mut fz_colorspace, color: *const f32, alpha: f32, arg7: fz_color_params)>§clip_path: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_path, even_odd: c_int, arg4: fz_matrix, scissor: fz_rect)>§clip_stroke_path: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_path, arg4: *const fz_stroke_state, arg5: fz_matrix, scissor: fz_rect)>§fill_text: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_text, arg4: fz_matrix, arg5: *mut fz_colorspace, color: *const f32, alpha: f32, arg6: fz_color_params)>§stroke_text: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_text, arg4: *const fz_stroke_state, arg5: fz_matrix, arg6: *mut fz_colorspace, color: *const f32, alpha: f32, arg7: fz_color_params)>§clip_text: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_text, arg4: fz_matrix, scissor: fz_rect)>§clip_stroke_text: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_text, arg4: *const fz_stroke_state, arg5: fz_matrix, scissor: fz_rect)>§ignore_text: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *const fz_text, arg4: fz_matrix)>§fill_shade: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, shd: *mut fz_shade, ctm: fz_matrix, alpha: f32, color_params: fz_color_params)>§fill_image: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, img: *mut fz_image, ctm: fz_matrix, alpha: f32, color_params: fz_color_params)>§fill_image_mask: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, img: *mut fz_image, ctm: fz_matrix, arg3: *mut fz_colorspace, color: *const f32, alpha: f32, color_params: fz_color_params)>§clip_image_mask: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, img: *mut fz_image, ctm: fz_matrix, scissor: fz_rect)>§pop_clip: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>§begin_mask: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, area: fz_rect, luminosity: c_int, arg3: *mut fz_colorspace, bc: *const f32, arg4: fz_color_params)>§end_mask: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>§begin_group: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, area: fz_rect, cs: *mut fz_colorspace, isolated: c_int, knockout: c_int, blendmode: c_int, alpha: f32)>§end_group: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>§begin_tile: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, area: fz_rect, view: fz_rect, xstep: f32, ystep: f32, ctm: fz_matrix, id: c_int) -> c_int>§end_tile: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>§render_flags: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, set: c_int, clear: c_int)>§set_default_colorspaces: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, arg3: *mut fz_default_colorspaces)>§begin_layer: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device, layer_name: *const c_char)>§end_layer: Option<unsafe extern "C" fn(arg1: *mut fz_context, arg2: *mut fz_device)>§d1_rect: fz_rect§container_len: c_int§container_cap: c_int§container: *mut fz_device_container_stack

Trait Implementations§

source§

impl Clone for fz_device

source§

fn clone(&self) -> fz_device

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for fz_device

source§

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

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

impl Copy for fz_device

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.