engage/generated/tm_pro/
faceinfo_legacy.rs1#[cfg(feature = "tm_pro-faceinfo_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/faceinfo_legacy/FaceInfo_Legacy.md"))]
11 #[::unity::class(namespace = "TMPro", name = "FaceInfo_Legacy")]
12 #[parent(crate::system::object::Object)]
13 pub struct FaceInfo_Legacy {
14 #[offset(16)]
15 #[rename(name = "Name")]
16 pub name: ::unity::Il2CppString,
17 #[offset(24)]
18 #[rename(name = "PointSize")]
19 pub point_size: f32,
20 #[offset(28)]
21 #[rename(name = "Scale")]
22 pub scale: f32,
23 #[offset(32)]
24 #[rename(name = "CharacterCount")]
25 pub character_count: i32,
26 #[offset(36)]
27 #[rename(name = "LineHeight")]
28 pub line_height: f32,
29 #[offset(40)]
30 #[rename(name = "Baseline")]
31 pub baseline: f32,
32 #[offset(44)]
33 #[rename(name = "Ascender")]
34 pub ascender: f32,
35 #[offset(48)]
36 #[rename(name = "CapHeight")]
37 pub cap_height: f32,
38 #[offset(52)]
39 #[rename(name = "Descender")]
40 pub descender: f32,
41 #[offset(56)]
42 #[rename(name = "CenterLine")]
43 pub center_line: f32,
44 #[offset(60)]
45 #[rename(name = "SuperscriptOffset")]
46 pub superscript_offset: f32,
47 #[offset(64)]
48 #[rename(name = "SubscriptOffset")]
49 pub subscript_offset: f32,
50 #[offset(68)]
51 #[rename(name = "SubSize")]
52 pub sub_size: f32,
53 #[offset(72)]
54 #[rename(name = "Underline")]
55 pub underline: f32,
56 #[offset(76)]
57 #[rename(name = "UnderlineThickness")]
58 pub underline_thickness: f32,
59 #[offset(80)]
60 #[rename(name = "strikethrough")]
61 pub strikethrough: f32,
62 #[offset(84)]
63 #[rename(name = "strikethroughThickness")]
64 pub strikethrough_thickness: f32,
65 #[offset(88)]
66 #[rename(name = "TabWidth")]
67 pub tab_width: f32,
68 #[offset(92)]
69 #[rename(name = "Padding")]
70 pub padding: f32,
71 #[offset(96)]
72 #[rename(name = "AtlasWidth")]
73 pub atlas_width: f32,
74 #[offset(100)]
75 #[rename(name = "AtlasHeight")]
76 pub atlas_height: f32,
77 }
78}
79
80#[cfg(feature = "tm_pro-faceinfo_legacy-types")]
81pub use __types::*;
82
83#[cfg(feature = "tm_pro-faceinfo_legacy")]
84pub trait IFaceInfo_LegacyMethods: IFaceInfo_Legacy {
85 #[doc = "`.ctor()` overload"]
86 fn ctor(self) -> () {
87 unsafe {
88 let __receiver = <FaceInfo_Legacy as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x2d8ba20usize)as*mut u8,();
90(FaceInfo_Legacy)__receiver)
91 }
92 }
93}
94
95#[cfg(feature = "tm_pro-faceinfo_legacy")]
96impl<__T: IFaceInfo_Legacy> IFaceInfo_LegacyMethods for __T {}
97
98#[cfg(feature = "tm_pro-faceinfo_legacy")]
99impl FaceInfo_Legacy {
100 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
102 }
103}
104
105#[cfg(feature = "tm_pro-faceinfo_legacy")]
106impl FaceInfo_Legacy {
107 #[doc = "`.ctor()` — no args"]
108 pub fn new() -> Self {
109 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
110 panic!(
111 "{}
112::{}
113 failed to instantiate",
114 ::core::stringify!(FaceInfo_Legacy),
115 ::core::stringify!(new),
116 )
117 });
118 <Self as IFaceInfo_LegacyMethods>::ctor(this);
119 this
120 }
121}
122
123#[cfg(feature = "tm_pro-faceinfo_legacy")]
124#[doc(hidden)]
125pub mod prelude {
126 pub use super::{FaceInfo_Legacy, IFaceInfo_Legacy, IFaceInfo_LegacyMethods};
127 pub use crate::system::object::IObject;
128 #[cfg(feature = "system-object")]
129 pub use crate::system::object::IObjectMethods;
130}