fz_image

Struct fz_image 

Source
#[repr(C)]
pub struct fz_image {
Show 17 fields pub key_storable: fz_key_storable, pub w: c_int, pub h: c_int, pub n: u8, pub bpc: u8, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>, pub orientation: u8, pub mask: *mut fz_image, pub xres: c_int, pub yres: c_int, pub colorspace: *mut fz_colorspace, pub drop_image: fz_drop_image_fn, pub get_pixmap: fz_image_get_pixmap_fn, pub get_size: fz_image_get_size_fn, pub colorkey: [c_int; 64], pub decode: [f32; 64],
}
Expand description

Structure is public to allow other structures to
be derived from it. Do not access members directly.

Fields§

§key_storable: fz_key_storable§w: c_int§h: c_int§n: u8§bpc: u8§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§orientation: u8§mask: *mut fz_image§xres: c_int§yres: c_int§colorspace: *mut fz_colorspace§drop_image: fz_drop_image_fn§get_pixmap: fz_image_get_pixmap_fn§get_size: fz_image_get_size_fn§colorkey: [c_int; 64]§decode: [f32; 64]

Implementations§

Source§

impl fz_image

Source

pub fn imagemask(&self) -> c_uint

Source

pub fn set_imagemask(&mut self, val: c_uint)

Source

pub unsafe fn imagemask_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_imagemask_raw(this: *mut Self, val: c_uint)

Source

pub fn interpolate(&self) -> c_uint

Source

pub fn set_interpolate(&mut self, val: c_uint)

Source

pub unsafe fn interpolate_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_interpolate_raw(this: *mut Self, val: c_uint)

Source

pub fn use_colorkey(&self) -> c_uint

Source

pub fn set_use_colorkey(&mut self, val: c_uint)

Source

pub unsafe fn use_colorkey_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_use_colorkey_raw(this: *mut Self, val: c_uint)

Source

pub fn use_decode(&self) -> c_uint

Source

pub fn set_use_decode(&mut self, val: c_uint)

Source

pub unsafe fn use_decode_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_use_decode_raw(this: *mut Self, val: c_uint)

Source

pub fn decoded(&self) -> c_uint

Source

pub fn set_decoded(&mut self, val: c_uint)

Source

pub unsafe fn decoded_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_decoded_raw(this: *mut Self, val: c_uint)

Source

pub fn scalable(&self) -> c_uint

Source

pub fn set_scalable(&mut self, val: c_uint)

Source

pub unsafe fn scalable_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_scalable_raw(this: *mut Self, val: c_uint)

Source

pub fn intent(&self) -> c_uint

Source

pub fn set_intent(&mut self, val: c_uint)

Source

pub unsafe fn intent_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_intent_raw(this: *mut Self, val: c_uint)

Source

pub fn has_intent(&self) -> c_uint

Source

pub fn set_has_intent(&mut self, val: c_uint)

Source

pub unsafe fn has_intent_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_has_intent_raw(this: *mut Self, val: c_uint)

Source

pub fn new_bitfield_1( imagemask: c_uint, interpolate: c_uint, use_colorkey: c_uint, use_decode: c_uint, decoded: c_uint, scalable: c_uint, intent: c_uint, has_intent: c_uint, ) -> __BindgenBitfieldUnit<[u8; 2]>

Trait Implementations§

Source§

impl Clone for fz_image

Source§

fn clone(&self) -> fz_image

Returns a duplicate 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_image

Source§

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

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

impl Copy for fz_image

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<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.