engage/generated/tm_pro/
tmp_glyph.rs1#[cfg(feature = "tm_pro-tmp_glyph-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 tm_pro::tmp_textelement_legacy::{ITMP_TextElement_Legacy, TMP_TextElement_Legacy},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_glyph/TMP_Glyph.md"))]
14 #[::unity::class(namespace = "TMPro", name = "TMP_Glyph")]
15 #[parent(crate::tm_pro::tmp_textelement_legacy::TMP_TextElement_Legacy)]
16 pub struct TMP_Glyph {}
17}
18
19#[cfg(feature = "tm_pro-tmp_glyph-types")]
20pub use __types::*;
21
22#[cfg(feature = "tm_pro-tmp_glyph")]
23impl TMP_Glyph {
24 #[doc = "`Clone(crate::tm_pro::tmp_glyph::TMP_Glyph)` overload"]
25 pub fn clone(source: impl ::core::convert::Into<crate::tm_pro::tmp_glyph::TMP_Glyph>) -> crate::tm_pro::tmp_glyph::TMP_Glyph {
26 unsafe {
27 ::unity::il2cpp_call!((::unity::module_base()+0x33a2b20usize)as*mut u8,crate::tm_pro::tmp_glyph::TMP_Glyph;
28(crate::tm_pro::tmp_glyph::TMP_Glyph)::core::convert::Into::into(source))
29 }
30 }
31}
32
33#[cfg(feature = "tm_pro-tmp_glyph")]
34pub trait ITMP_GlyphMethods: ITMP_Glyph {
35 #[doc = "`.ctor()` overload"]
36 fn ctor(self) -> () {
37 unsafe {
38 let __receiver = <TMP_Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39 ::unity::il2cpp_call!((::unity::module_base()+0x33a2bd0usize)as*mut u8,();
40(TMP_Glyph)__receiver)
41 }
42 }
43}
44
45#[cfg(feature = "tm_pro-tmp_glyph")]
46impl<__T: ITMP_Glyph> ITMP_GlyphMethods for __T {}
47
48#[cfg(feature = "tm_pro-tmp_glyph")]
49impl TMP_Glyph {
50 pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
51 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
52 }
53
54 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
55 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
56 }
57}
58
59#[cfg(feature = "tm_pro-tmp_glyph")]
60impl TMP_Glyph {
61 #[doc = "`.ctor()` — no args"]
62 pub fn new() -> Self {
63 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
64 panic!(
65 "{}
66::{}
67 failed to instantiate",
68 ::core::stringify!(TMP_Glyph),
69 ::core::stringify!(new),
70 )
71 });
72 <Self as ITMP_GlyphMethods>::ctor(this);
73 this
74 }
75}
76
77#[cfg(feature = "tm_pro-tmp_glyph")]
78#[doc(hidden)]
79pub mod prelude {
80 pub use super::{ITMP_Glyph, ITMP_GlyphMethods, TMP_Glyph};
81 #[cfg(feature = "system-object")]
82 pub use crate::system::object::IObjectMethods;
83 #[cfg(feature = "tm_pro-tmp_textelement_legacy")]
84 pub use crate::tm_pro::tmp_textelement_legacy::ITMP_TextElement_LegacyMethods;
85 pub use crate::{system::object::IObject, tm_pro::tmp_textelement_legacy::ITMP_TextElement_Legacy};
86}