Skip to main content

engage/generated/tm_pro/
tmp_offset.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_offset-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/tmp_offset/TMP_Offset.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct TMP_Offset {
17        pub m_left: f32,
18        pub m_right: f32,
19        pub m_top: f32,
20        pub m_bottom: f32,
21    }
22    impl ::unity::ClassIdentity for TMP_Offset {
23        const NAME: &'static str = "TMP_Offset";
24        const NAMESPACE: &'static str = "TMPro";
25
26        fn class() -> ::unity::Class {
27            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
28            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
29        }
30    }
31    impl ::unity::IlType for TMP_Offset {
32        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
33            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
34        }
35    }
36    impl TMP_Offset {
37        #[inline]
38        pub fn k_zero_offset() -> crate::tm_pro::tmp_offset::TMP_Offset {
39            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
40            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "k_ZeroOffset");
41            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
42        }
43
44        #[inline]
45        pub fn set_k_zero_offset(value: crate::tm_pro::tmp_offset::TMP_Offset) {
46            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
47            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "k_ZeroOffset");
48            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
49        }
50    }
51}
52
53#[cfg(feature = "tm_pro-tmp_offset-types")]
54pub use __types::*;
55
56#[cfg(feature = "tm_pro-tmp_offset")]
57impl TMP_Offset {
58    #[doc = "`get_zero()` overload"]
59    pub fn get_zero() -> crate::tm_pro::tmp_offset::TMP_Offset {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x2829d10usize)as*mut u8,crate::tm_pro::tmp_offset::TMP_Offset;
62            )
63        }
64    }
65
66    #[doc = "`op_Equality(crate::tm_pro::tmp_offset::TMP_Offset, crate::tm_pro::tmp_offset::TMP_Offset)` overload"]
67    pub fn op_equality(
68        lhs: impl ::core::convert::Into<crate::tm_pro::tmp_offset::TMP_Offset>,
69        rhs: impl ::core::convert::Into<crate::tm_pro::tmp_offset::TMP_Offset>,
70    ) -> bool {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x2829dc0usize)as*mut u8,bool;
73(crate::tm_pro::tmp_offset::TMP_Offset)::core::convert::Into::into(lhs),(crate::tm_pro::tmp_offset::TMP_Offset)::core::convert::Into::into(rhs))
74        }
75    }
76
77    #[doc = "`op_Inequality(crate::tm_pro::tmp_offset::TMP_Offset, crate::tm_pro::tmp_offset::TMP_Offset)` overload"]
78    pub fn op_inequality(
79        lhs: impl ::core::convert::Into<crate::tm_pro::tmp_offset::TMP_Offset>,
80        rhs: impl ::core::convert::Into<crate::tm_pro::tmp_offset::TMP_Offset>,
81    ) -> bool {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x2829df0usize)as*mut u8,bool;
84(crate::tm_pro::tmp_offset::TMP_Offset)::core::convert::Into::into(lhs),(crate::tm_pro::tmp_offset::TMP_Offset)::core::convert::Into::into(rhs))
85        }
86    }
87
88    #[doc = "`op_Multiply(crate::tm_pro::tmp_offset::TMP_Offset, f32)` overload"]
89    pub fn op_multiply(
90        a: impl ::core::convert::Into<crate::tm_pro::tmp_offset::TMP_Offset>,
91        b: impl ::core::convert::Into<f32>,
92    ) -> crate::tm_pro::tmp_offset::TMP_Offset {
93        unsafe {
94            ::unity::il2cpp_call!((::unity::module_base()+0x2829eb0usize)as*mut u8,crate::tm_pro::tmp_offset::TMP_Offset;
95(crate::tm_pro::tmp_offset::TMP_Offset)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b))
96        }
97    }
98
99    #[doc = "`.cctor()` overload"]
100    pub fn cctor() -> () {
101        unsafe {
102            ::unity::il2cpp_call!((::unity::module_base()+0x282a080usize)as*mut u8,();
103            )
104        }
105    }
106}
107
108#[cfg(feature = "tm_pro-tmp_offset")]
109impl TMP_Offset {
110    #[doc = "`get_left()` overload"]
111    pub fn get_left(&mut self) -> f32 {
112        unsafe {
113            ::unity::il2cpp_call!((::unity::module_base()+0x2829c50usize)as*mut u8,f32;
114(*mut TMP_Offset)self as*mut TMP_Offset)
115        }
116    }
117
118    #[doc = "`set_left(f32)` overload"]
119    pub fn set_left(&mut self, value: impl ::core::convert::Into<f32>) -> () {
120        unsafe {
121            ::unity::il2cpp_call!((::unity::module_base()+0x2829c60usize)as*mut u8,();
122(*mut TMP_Offset)self as*mut TMP_Offset,(f32)::core::convert::Into::into(value))
123        }
124    }
125
126    #[doc = "`get_right()` overload"]
127    pub fn get_right(&mut self) -> f32 {
128        unsafe {
129            ::unity::il2cpp_call!((::unity::module_base()+0x2829c70usize)as*mut u8,f32;
130(*mut TMP_Offset)self as*mut TMP_Offset)
131        }
132    }
133
134    #[doc = "`set_right(f32)` overload"]
135    pub fn set_right(&mut self, value: impl ::core::convert::Into<f32>) -> () {
136        unsafe {
137            ::unity::il2cpp_call!((::unity::module_base()+0x2829c80usize)as*mut u8,();
138(*mut TMP_Offset)self as*mut TMP_Offset,(f32)::core::convert::Into::into(value))
139        }
140    }
141
142    #[doc = "`get_top()` overload"]
143    pub fn get_top(&mut self) -> f32 {
144        unsafe {
145            ::unity::il2cpp_call!((::unity::module_base()+0x2829c90usize)as*mut u8,f32;
146(*mut TMP_Offset)self as*mut TMP_Offset)
147        }
148    }
149
150    #[doc = "`set_top(f32)` overload"]
151    pub fn set_top(&mut self, value: impl ::core::convert::Into<f32>) -> () {
152        unsafe {
153            ::unity::il2cpp_call!((::unity::module_base()+0x2829ca0usize)as*mut u8,();
154(*mut TMP_Offset)self as*mut TMP_Offset,(f32)::core::convert::Into::into(value))
155        }
156    }
157
158    #[doc = "`get_bottom()` overload"]
159    pub fn get_bottom(&mut self) -> f32 {
160        unsafe {
161            ::unity::il2cpp_call!((::unity::module_base()+0x2829cb0usize)as*mut u8,f32;
162(*mut TMP_Offset)self as*mut TMP_Offset)
163        }
164    }
165
166    #[doc = "`set_bottom(f32)` overload"]
167    pub fn set_bottom(&mut self, value: impl ::core::convert::Into<f32>) -> () {
168        unsafe {
169            ::unity::il2cpp_call!((::unity::module_base()+0x2829cc0usize)as*mut u8,();
170(*mut TMP_Offset)self as*mut TMP_Offset,(f32)::core::convert::Into::into(value))
171        }
172    }
173
174    #[doc = "`get_horizontal()` overload"]
175    pub fn get_horizontal(&mut self) -> f32 {
176        unsafe {
177            ::unity::il2cpp_call!((::unity::module_base()+0x2829cd0usize)as*mut u8,f32;
178(*mut TMP_Offset)self as*mut TMP_Offset)
179        }
180    }
181
182    #[doc = "`set_horizontal(f32)` overload"]
183    pub fn set_horizontal(&mut self, value: impl ::core::convert::Into<f32>) -> () {
184        unsafe {
185            ::unity::il2cpp_call!((::unity::module_base()+0x2829ce0usize)as*mut u8,();
186(*mut TMP_Offset)self as*mut TMP_Offset,(f32)::core::convert::Into::into(value))
187        }
188    }
189
190    #[doc = "`get_vertical()` overload"]
191    pub fn get_vertical(&mut self) -> f32 {
192        unsafe {
193            ::unity::il2cpp_call!((::unity::module_base()+0x2829cf0usize)as*mut u8,f32;
194(*mut TMP_Offset)self as*mut TMP_Offset)
195        }
196    }
197
198    #[doc = "`set_vertical(f32)` overload"]
199    pub fn set_vertical(&mut self, value: impl ::core::convert::Into<f32>) -> () {
200        unsafe {
201            ::unity::il2cpp_call!((::unity::module_base()+0x2829d00usize)as*mut u8,();
202(*mut TMP_Offset)self as*mut TMP_Offset,(f32)::core::convert::Into::into(value))
203        }
204    }
205
206    #[doc = "`.ctor(f32, f32, f32, f32)` overload"]
207    pub fn ctor(
208        &mut self,
209        left: impl ::core::convert::Into<f32>,
210        right: impl ::core::convert::Into<f32>,
211        top: impl ::core::convert::Into<f32>,
212        bottom: impl ::core::convert::Into<f32>,
213    ) -> () {
214        unsafe {
215            ::unity::il2cpp_call!((::unity::module_base()+0x2829d80usize)as*mut u8,();
216(*mut TMP_Offset)self as*mut TMP_Offset,(f32)::core::convert::Into::into(left),(f32)::core::convert::Into::into(right),(f32)::core::convert::Into::into(top),(f32)::core::convert::Into::into(bottom))
217        }
218    }
219
220    #[doc = "`.ctor(f32, f32)` overload"]
221    pub fn ctor_2(&mut self, horizontal: impl ::core::convert::Into<f32>, vertical: impl ::core::convert::Into<f32>) -> () {
222        unsafe {
223            ::unity::il2cpp_call!((::unity::module_base()+0x2829da0usize)as*mut u8,();
224(*mut TMP_Offset)self as*mut TMP_Offset,(f32)::core::convert::Into::into(horizontal),(f32)::core::convert::Into::into(vertical))
225        }
226    }
227
228    #[doc = "`GetHashCode()` overload"]
229    pub fn get_hash_code(&mut self) -> i32 {
230        unsafe {
231            ::unity::il2cpp_call!((::unity::module_base()+0x2829ed0usize)as*mut u8,i32;
232(*mut TMP_Offset)self as*mut TMP_Offset)
233        }
234    }
235
236    #[doc = "`Equals(crate::system::object::Object)` overload"]
237    pub fn equals(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
238        unsafe {
239            ::unity::il2cpp_call!((::unity::module_base()+0x2829f40usize)as*mut u8,bool;
240(*mut TMP_Offset)self as*mut TMP_Offset,(crate::system::object::Object)::core::convert::Into::into(obj))
241        }
242    }
243
244    #[doc = "`Equals(crate::tm_pro::tmp_offset::TMP_Offset)` overload"]
245    pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::tm_pro::tmp_offset::TMP_Offset>) -> bool {
246        unsafe {
247            ::unity::il2cpp_call!((::unity::module_base()+0x2829fc0usize)as*mut u8,bool;
248(*mut TMP_Offset)self as*mut TMP_Offset,(crate::tm_pro::tmp_offset::TMP_Offset)::core::convert::Into::into(other))
249        }
250    }
251}
252
253#[cfg(feature = "tm_pro-tmp_offset")]
254impl TMP_Offset {
255    pub fn get_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
257    }
258
259    pub fn set_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
261    }
262
263    pub fn get_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
265    }
266
267    pub fn set_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
269    }
270
271    pub fn get_top_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
273    }
274
275    pub fn set_top_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
277    }
278
279    pub fn get_bottom_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
281    }
282
283    pub fn set_bottom_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
285    }
286
287    pub fn get_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
289    }
290
291    pub fn set_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
293    }
294
295    pub fn get_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
297    }
298
299    pub fn set_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
301    }
302
303    pub fn get_zero_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
305    }
306
307    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
309    }
310
311    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
313    }
314
315    pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
317    }
318
319    pub fn op_inequality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
321    }
322
323    pub fn op_multiply_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
325    }
326
327    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
329    }
330
331    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
333    }
334
335    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
337    }
338
339    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
341    }
342}
343
344#[cfg(feature = "tm_pro-tmp_offset")]
345#[doc(hidden)]
346pub mod prelude {
347    pub use super::TMP_Offset;
348    #[cfg(feature = "system-object")]
349    pub use crate::system::object::IObjectMethods;
350    #[cfg(feature = "system-valuetype")]
351    pub use crate::system::valuetype::IValueTypeMethods;
352    pub use crate::system::{object::IObject, valuetype::IValueType};
353}