engage/generated/tm_pro/
mesh_extents.rs1#[cfg(feature = "tm_pro-mesh_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/mesh_extents/Mesh_Extents.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct Mesh_Extents {
17 pub min: crate::unity_engine::vector2::Vector2,
18 pub max: crate::unity_engine::vector2::Vector2,
19 }
20 impl ::unity::ClassIdentity for Mesh_Extents {
21 const NAME: &'static str = "Mesh_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 Mesh_Extents {
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-mesh_extents-types")]
37pub use __types::*;
38
39#[cfg(feature = "tm_pro-mesh_extents")]
40impl Mesh_Extents {
41 #[doc = "`.ctor(crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2)` overload"]
42 pub fn ctor(
43 &mut self,
44 min: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
45 max: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
46 ) -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x2d8e590usize)as*mut u8,();
49(*mut Mesh_Extents)self as*mut Mesh_Extents,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(min),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(max))
50 }
51 }
52
53 #[doc = "`ToString()` overload"]
54 pub fn to_string(&mut self) -> ::unity::Il2CppString {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x2d8e5b0usize)as*mut u8, ::unity::Il2CppString;
57(*mut Mesh_Extents)self as*mut Mesh_Extents)
58 }
59 }
60}
61
62#[cfg(feature = "tm_pro-mesh_extents")]
63impl Mesh_Extents {
64 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
66 }
67
68 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
70 }
71}
72
73#[cfg(feature = "tm_pro-mesh_extents")]
74#[doc(hidden)]
75pub mod prelude {
76 pub use super::Mesh_Extents;
77 #[cfg(feature = "system-object")]
78 pub use crate::system::object::IObjectMethods;
79 #[cfg(feature = "system-valuetype")]
80 pub use crate::system::valuetype::IValueTypeMethods;
81 pub use crate::system::{object::IObject, valuetype::IValueType};
82}