#[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,
}
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.