Skip to main content

engage/generated/tm_pro/
tmp_textelement_legacy.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_textelement_legacy-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_textelement_legacy/TMP_TextElement_Legacy.md"))]
11    #[::unity::class(namespace = "TMPro", name = "TMP_TextElement_Legacy")]
12    #[parent(crate::system::object::Object)]
13    pub struct TMP_TextElement_Legacy {
14        #[offset(16)]
15        #[rename(name = "id")]
16        pub id: i32,
17        #[offset(20)]
18        #[rename(name = "x")]
19        pub x: f32,
20        #[offset(24)]
21        #[rename(name = "y")]
22        pub y: f32,
23        #[offset(28)]
24        #[rename(name = "width")]
25        pub width: f32,
26        #[offset(32)]
27        #[rename(name = "height")]
28        pub height: f32,
29        #[offset(36)]
30        #[rename(name = "xOffset")]
31        pub x_offset: f32,
32        #[offset(40)]
33        #[rename(name = "yOffset")]
34        pub y_offset: f32,
35        #[offset(44)]
36        #[rename(name = "xAdvance")]
37        pub x_advance: f32,
38        #[offset(48)]
39        #[rename(name = "scale")]
40        pub scale: f32,
41    }
42}
43
44#[cfg(feature = "tm_pro-tmp_textelement_legacy-types")]
45pub use __types::*;
46
47#[cfg(feature = "tm_pro-tmp_textelement_legacy")]
48pub trait ITMP_TextElement_LegacyMethods: ITMP_TextElement_Legacy {
49    #[doc = "`.ctor()` overload"]
50    fn ctor(self) -> () {
51        unsafe {
52            let __receiver =
53                <TMP_TextElement_Legacy as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            ::unity::il2cpp_call!((::unity::module_base()+0x2e60900usize)as*mut u8,();
55(TMP_TextElement_Legacy)__receiver)
56        }
57    }
58}
59
60#[cfg(feature = "tm_pro-tmp_textelement_legacy")]
61impl<__T: ITMP_TextElement_Legacy> ITMP_TextElement_LegacyMethods for __T {}
62
63#[cfg(feature = "tm_pro-tmp_textelement_legacy")]
64impl TMP_TextElement_Legacy {
65    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
67    }
68}
69
70#[cfg(feature = "tm_pro-tmp_textelement_legacy")]
71impl TMP_TextElement_Legacy {
72    #[doc = "`.ctor()` — no args"]
73    pub fn new() -> Self {
74        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
75            panic!(
76                "{}
77::{}
78 failed to instantiate",
79                ::core::stringify!(TMP_TextElement_Legacy),
80                ::core::stringify!(new),
81            )
82        });
83        <Self as ITMP_TextElement_LegacyMethods>::ctor(this);
84        this
85    }
86}
87
88#[cfg(feature = "tm_pro-tmp_textelement_legacy")]
89#[doc(hidden)]
90pub mod prelude {
91    pub use super::{ITMP_TextElement_Legacy, ITMP_TextElement_LegacyMethods, TMP_TextElement_Legacy};
92    pub use crate::system::object::IObject;
93    #[cfg(feature = "system-object")]
94    pub use crate::system::object::IObjectMethods;
95}