Skip to main content

engage/generated/tm_pro/
highlightstate.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-highlightstate-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/highlightstate/HighlightState.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct HighlightState {
17        pub color: crate::unity_engine::color32::Color32,
18        pub padding: crate::tm_pro::tmp_offset::TMP_Offset,
19    }
20    impl ::unity::ClassIdentity for HighlightState {
21        const NAME: &'static str = "HighlightState";
22        const NAMESPACE: &'static str = "TMPro";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for HighlightState {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34}
35
36#[cfg(feature = "tm_pro-highlightstate-types")]
37pub use __types::*;
38
39#[cfg(feature = "tm_pro-highlightstate")]
40impl HighlightState {
41    #[doc = "`op_Equality(crate::tm_pro::highlightstate::HighlightState, crate::tm_pro::highlightstate::HighlightState)` overload"]
42    pub fn op_equality(
43        lhs: impl ::core::convert::Into<crate::tm_pro::highlightstate::HighlightState>,
44        rhs: impl ::core::convert::Into<crate::tm_pro::highlightstate::HighlightState>,
45    ) -> bool {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x2d8c100usize)as*mut u8,bool;
48(crate::tm_pro::highlightstate::HighlightState)::core::convert::Into::into(lhs),(crate::tm_pro::highlightstate::HighlightState)::core::convert::Into::into(rhs))
49        }
50    }
51
52    #[doc = "`op_Inequality(crate::tm_pro::highlightstate::HighlightState, crate::tm_pro::highlightstate::HighlightState)` overload"]
53    pub fn op_inequality(
54        lhs: impl ::core::convert::Into<crate::tm_pro::highlightstate::HighlightState>,
55        rhs: impl ::core::convert::Into<crate::tm_pro::highlightstate::HighlightState>,
56    ) -> bool {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x2d8c200usize)as*mut u8,bool;
59(crate::tm_pro::highlightstate::HighlightState)::core::convert::Into::into(lhs),(crate::tm_pro::highlightstate::HighlightState)::core::convert::Into::into(rhs))
60        }
61    }
62}
63
64#[cfg(feature = "tm_pro-highlightstate")]
65impl HighlightState {
66    #[doc = "`.ctor(crate::unity_engine::color32::Color32, crate::tm_pro::tmp_offset::TMP_Offset)` overload"]
67    pub fn ctor(
68        &mut self,
69        color: impl ::core::convert::Into<crate::unity_engine::color32::Color32>,
70        padding: impl ::core::convert::Into<crate::tm_pro::tmp_offset::TMP_Offset>,
71    ) -> () {
72        unsafe {
73            ::unity::il2cpp_call!((::unity::module_base()+0x2d8c0e0usize)as*mut u8,();
74(*mut HighlightState)self as*mut HighlightState,(crate::unity_engine::color32::Color32)::core::convert::Into::into(color),(crate::tm_pro::tmp_offset::TMP_Offset)::core::convert::Into::into(padding))
75        }
76    }
77
78    #[doc = "`GetHashCode()` overload"]
79    pub fn get_hash_code(&mut self) -> i32 {
80        unsafe {
81            ::unity::il2cpp_call!((::unity::module_base()+0x2d8c2f0usize)as*mut u8,i32;
82(*mut HighlightState)self as*mut HighlightState)
83        }
84    }
85
86    #[doc = "`Equals(crate::system::object::Object)` overload"]
87    pub fn equals(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x2d8c370usize)as*mut u8,bool;
90(*mut HighlightState)self as*mut HighlightState,(crate::system::object::Object)::core::convert::Into::into(obj))
91        }
92    }
93
94    #[doc = "`Equals(crate::tm_pro::highlightstate::HighlightState)` overload"]
95    pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::tm_pro::highlightstate::HighlightState>) -> bool {
96        unsafe {
97            ::unity::il2cpp_call!((::unity::module_base()+0x2d8c400usize)as*mut u8,bool;
98(*mut HighlightState)self as*mut HighlightState,(crate::tm_pro::highlightstate::HighlightState)::core::convert::Into::into(other))
99        }
100    }
101}
102
103#[cfg(feature = "tm_pro-highlightstate")]
104impl HighlightState {
105    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
107    }
108
109    pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
111    }
112
113    pub fn op_inequality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
115    }
116
117    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
119    }
120
121    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
123    }
124
125    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
127    }
128}
129
130#[cfg(feature = "tm_pro-highlightstate")]
131#[doc(hidden)]
132pub mod prelude {
133    pub use super::HighlightState;
134    #[cfg(feature = "system-object")]
135    pub use crate::system::object::IObjectMethods;
136    #[cfg(feature = "system-valuetype")]
137    pub use crate::system::valuetype::IValueTypeMethods;
138    pub use crate::system::{object::IObject, valuetype::IValueType};
139}