#[repr(C)]pub struct Color32 {
pub rgba: i32,
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
Fields§
§rgba: i32§r: u8§g: u8§b: u8§a: u8Implementations§
Source§impl Color32
impl Color32
Sourcepub fn op_implicit(c: impl Into<Color>) -> Color32
pub fn op_implicit(c: impl Into<Color>) -> Color32
op_Implicit(crate::unity_engine::color::Color) overload
Sourcepub fn op_implicit_2(c: impl Into<Color32>) -> Color
pub fn op_implicit_2(c: impl Into<Color32>) -> Color
op_Implicit(crate::unity_engine::color32::Color32) overload
Source§impl Color32
impl Color32
Sourcepub fn ctor(
&mut self,
r: impl Into<u8>,
g: impl Into<u8>,
b: impl Into<u8>,
a: impl Into<u8>,
)
pub fn ctor( &mut self, r: impl Into<u8>, g: impl Into<u8>, b: impl Into<u8>, a: impl Into<u8>, )
.ctor(u8, u8, u8, u8) overload
Sourcepub fn to_string(&mut self) -> Il2CppString
pub fn to_string(&mut self) -> Il2CppString
ToString() overload
Source§impl Color32
impl Color32
pub fn ctor_method_info() -> &'static MethodInfo
pub fn op_implicit_method_info() -> &'static MethodInfo
pub fn op_implicit_2_method_info() -> &'static MethodInfo
pub fn to_string_method_info() -> &'static MethodInfo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Color32
impl RefUnwindSafe for Color32
impl Send for Color32
impl Sync for Color32
impl Unpin for Color32
impl UnwindSafe for Color32
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)