#[repr(C)]pub struct ImageFns {
pub create_image: Option<unsafe extern "C" fn(_: *mut _XDisplay, _: *mut Visual, _: u32, _: i32, _: i32, _: *mut i8, _: u32, _: u32, _: i32, _: i32) -> *mut XImage>,
pub destroy_image: Option<unsafe extern "C" fn(_: *mut XImage) -> i32>,
pub get_pixel: Option<unsafe extern "C" fn(_: *mut XImage, _: i32, _: i32) -> u64>,
pub put_pixel: Option<unsafe extern "C" fn(_: *mut XImage, _: i32, _: i32, _: u64) -> i32>,
pub sub_image: Option<unsafe extern "C" fn(_: *mut XImage, _: i32, _: i32, _: u32, _: u32) -> *mut XImage>,
pub add_pixel: Option<unsafe extern "C" fn(_: *mut XImage, _: i64) -> i32>,
}
Fields§
§create_image: Option<unsafe extern "C" fn(_: *mut _XDisplay, _: *mut Visual, _: u32, _: i32, _: i32, _: *mut i8, _: u32, _: u32, _: i32, _: i32) -> *mut XImage>
§destroy_image: Option<unsafe extern "C" fn(_: *mut XImage) -> i32>
§get_pixel: Option<unsafe extern "C" fn(_: *mut XImage, _: i32, _: i32) -> u64>
§put_pixel: Option<unsafe extern "C" fn(_: *mut XImage, _: i32, _: i32, _: u64) -> i32>
§sub_image: Option<unsafe extern "C" fn(_: *mut XImage, _: i32, _: i32, _: u32, _: u32) -> *mut XImage>
§add_pixel: Option<unsafe extern "C" fn(_: *mut XImage, _: i64) -> i32>
Trait Implementations§
impl Copy for ImageFns
Auto Trait Implementations§
impl Freeze for ImageFns
impl RefUnwindSafe for ImageFns
impl Send for ImageFns
impl Sync for ImageFns
impl Unpin for ImageFns
impl UnwindSafe for ImageFns
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.