engage/generated/tm_pro/
extents.rs1#[cfg(feature = "tm_pro-extents-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/extents/Extents.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct Extents {
17 pub min: crate::unity_engine::vector2::Vector2,
18 pub max: crate::unity_engine::vector2::Vector2,
19 }
20 impl ::unity::ClassIdentity for Extents {
21 const NAME: &'static str = "Extents";
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 Extents {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl Extents {
35 #[inline]
36 pub fn zero() -> crate::tm_pro::extents::Extents {
37 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
38 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "zero");
39 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
40 }
41
42 #[inline]
43 pub fn set_zero(value: crate::tm_pro::extents::Extents) {
44 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
45 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "zero");
46 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
47 }
48
49 #[inline]
50 pub fn uninitialized() -> crate::tm_pro::extents::Extents {
51 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
52 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "uninitialized");
53 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
54 }
55
56 #[inline]
57 pub fn set_uninitialized(value: crate::tm_pro::extents::Extents) {
58 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
59 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "uninitialized");
60 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
61 }
62 }
63}
64
65#[cfg(feature = "tm_pro-extents-types")]
66pub use __types::*;
67
68#[cfg(feature = "tm_pro-extents")]
69impl Extents {
70 #[doc = "`.cctor()` overload"]
71 pub fn cctor() -> () {
72 unsafe {
73 ::unity::il2cpp_call!((::unity::module_base()+0x2d8b980usize)as*mut u8,();
74 )
75 }
76 }
77}
78
79#[cfg(feature = "tm_pro-extents")]
80impl Extents {
81 #[doc = "`.ctor(crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2)` overload"]
82 pub fn ctor(
83 &mut self,
84 min: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
85 max: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
86 ) -> () {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x2d8b5f0usize)as*mut u8,();
89(*mut Extents)self as*mut Extents,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(min),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(max))
90 }
91 }
92
93 #[doc = "`ToString()` overload"]
94 pub fn to_string(&mut self) -> ::unity::Il2CppString {
95 unsafe {
96 ::unity::il2cpp_call!((::unity::module_base()+0x2d8b610usize)as*mut u8, ::unity::Il2CppString;
97(*mut Extents)self as*mut Extents)
98 }
99 }
100}
101
102#[cfg(feature = "tm_pro-extents")]
103impl Extents {
104 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
106 }
107
108 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
110 }
111
112 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
114 }
115}
116
117#[cfg(feature = "tm_pro-extents")]
118#[doc(hidden)]
119pub mod prelude {
120 pub use super::Extents;
121 #[cfg(feature = "system-object")]
122 pub use crate::system::object::IObjectMethods;
123 #[cfg(feature = "system-valuetype")]
124 pub use crate::system::valuetype::IValueTypeMethods;
125 pub use crate::system::{object::IObject, valuetype::IValueType};
126}