ColorOverlay

Struct ColorOverlay 

Source
#[repr(C)]
pub struct ColorOverlay {
Show 33 fields pub timer: c_int, pub pri: c_int, pub ptr1: *mut c_int, pub loop_: c_int, pub ptr2: *mut c_int, pub x14: c_int, pub alloc: *mut c_int, pub x1c: c_int, pub x20: c_int, pub x24: c_int, pub colanim: c_int, pub hex: GXColor, pub color_red: f32, pub color_green: f32, pub color_blue: f32, pub color_alpha: f32, pub colorblend_red: f32, pub colorblend_green: f32, pub colorblend_blue: f32, pub colorblend_alpha: f32, pub light_color: GXColor, pub light_red: f32, pub light_green: f32, pub light_blue: f32, pub light_alpha: f32, pub lightblend_red: f32, pub lightblend_green: f32, pub lightblend_blue: f32, pub lightblend_alpha: f32, pub light_angle: f32, pub light_unk: f32, pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>, pub __bindgen_padding_0: [u8; 7],
}

Fields§

§timer: c_int§pri: c_int§ptr1: *mut c_int§loop_: c_int§ptr2: *mut c_int§x14: c_int§alloc: *mut c_int§x1c: c_int§x20: c_int§x24: c_int§colanim: c_int§hex: GXColor§color_red: f32§color_green: f32§color_blue: f32§color_alpha: f32§colorblend_red: f32§colorblend_green: f32§colorblend_blue: f32§colorblend_alpha: f32§light_color: GXColor§light_red: f32§light_green: f32§light_blue: f32§light_alpha: f32§lightblend_red: f32§lightblend_green: f32§lightblend_blue: f32§lightblend_alpha: f32§light_angle: f32§light_unk: f32§_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>§__bindgen_padding_0: [u8; 7]

Implementations§

Source§

impl ColorOverlay

Source

pub fn color_enable(&self) -> c_uchar

Source

pub fn set_color_enable(&mut self, val: c_uchar)

Source

pub fn flag2(&self) -> c_uchar

Source

pub fn set_flag2(&mut self, val: c_uchar)

Source

pub fn light_enable(&self) -> c_uchar

Source

pub fn set_light_enable(&mut self, val: c_uchar)

Source

pub fn flag4(&self) -> c_uchar

Source

pub fn set_flag4(&mut self, val: c_uchar)

Source

pub fn flag5(&self) -> c_uchar

Source

pub fn set_flag5(&mut self, val: c_uchar)

Source

pub fn flag6(&self) -> c_uchar

Source

pub fn set_flag6(&mut self, val: c_uchar)

Source

pub fn flag7(&self) -> c_uchar

Source

pub fn set_flag7(&mut self, val: c_uchar)

Source

pub fn flag8(&self) -> c_uchar

Source

pub fn set_flag8(&mut self, val: c_uchar)

Source

pub fn new_bitfield_1( color_enable: c_uchar, flag2: c_uchar, light_enable: c_uchar, flag4: c_uchar, flag5: c_uchar, flag6: c_uchar, flag7: c_uchar, flag8: c_uchar, ) -> __BindgenBitfieldUnit<[u8; 1], u8>

Trait Implementations§

Source§

impl Clone for ColorOverlay

Source§

fn clone(&self) -> ColorOverlay

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 ColorOverlay

Source§

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

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

impl Copy for ColorOverlay

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.