Struct sdl2_sys::_XImage

source ·
#[repr(C)]
pub struct _XImage {
Show 17 fields pub width: c_int, pub height: c_int, pub xoffset: c_int, pub format: c_int, pub data: *mut c_char, pub byte_order: c_int, pub bitmap_unit: c_int, pub bitmap_bit_order: c_int, pub bitmap_pad: c_int, pub depth: c_int, pub bytes_per_line: c_int, pub bits_per_pixel: c_int, pub red_mask: c_ulong, pub green_mask: c_ulong, pub blue_mask: c_ulong, pub obdata: XPointer, pub f: _XImage_funcs,
}

Fields§

§width: c_int§height: c_int§xoffset: c_int§format: c_int§data: *mut c_char§byte_order: c_int§bitmap_unit: c_int§bitmap_bit_order: c_int§bitmap_pad: c_int§depth: c_int§bytes_per_line: c_int§bits_per_pixel: c_int§red_mask: c_ulong§green_mask: c_ulong§blue_mask: c_ulong§obdata: XPointer§f: _XImage_funcs

Trait Implementations§

source§

impl Clone for _XImage

source§

fn clone(&self) -> _XImage

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 Copy for _XImage

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> 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>,

§

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>,

§

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.