engage/generated/tm_pro/
kerningpair.rs1#[cfg(feature = "tm_pro-kerningpair-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/kerningpair/KerningPair.md"))]
11 #[::unity::class(namespace = "TMPro", name = "KerningPair")]
12 #[parent(crate::system::object::Object)]
13 pub struct KerningPair {
14 #[offset(16)]
15 #[rename(name = "m_FirstGlyph")]
16 pub m_first_glyph: u32,
17 #[offset(20)]
18 #[rename(name = "m_FirstGlyphAdjustments")]
19 pub m_first_glyph_adjustments: crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy,
20 #[offset(36)]
21 #[rename(name = "m_SecondGlyph")]
22 pub m_second_glyph: u32,
23 #[offset(40)]
24 #[rename(name = "m_SecondGlyphAdjustments")]
25 pub m_second_glyph_adjustments: crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy,
26 #[offset(56)]
27 #[rename(name = "xOffset")]
28 pub x_offset: f32,
29 #[static_field]
30 #[rename(name = "empty")]
31 pub empty: crate::tm_pro::kerningpair::KerningPair,
32 #[offset(60)]
33 #[rename(name = "m_IgnoreSpacingAdjustments")]
34 pub m_ignore_spacing_adjustments: bool,
35 }
36}
37
38#[cfg(feature = "tm_pro-kerningpair-types")]
39pub use __types::*;
40
41#[cfg(feature = "tm_pro-kerningpair")]
42impl KerningPair {
43 #[doc = "`.cctor()` overload"]
44 pub fn cctor() -> () {
45 unsafe {
46 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c650usize)as*mut u8,();
47 )
48 }
49 }
50}
51
52#[cfg(feature = "tm_pro-kerningpair")]
53pub trait IKerningPairMethods: IKerningPair {
54 #[doc = "`get_firstGlyph()` overload"]
55 fn get_first_glyph(self) -> u32 {
56 unsafe {
57 let __receiver = <KerningPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c4b0usize)as*mut u8,u32;
59(KerningPair)__receiver)
60 }
61 }
62 #[doc = "`set_firstGlyph(u32)` overload"]
63 fn set_first_glyph(self, value: impl ::core::convert::Into<u32>) -> () {
64 unsafe {
65 let __receiver = <KerningPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c4c0usize)as*mut u8,();
67(KerningPair)__receiver,(u32)::core::convert::Into::into(value))
68 }
69 }
70 #[doc = "`get_firstGlyphAdjustments()` overload"]
71 fn get_first_glyph_adjustments(self) -> crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy {
72 unsafe {
73 let __receiver = <KerningPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c4d0usize)as*mut u8,crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy;
75(KerningPair)__receiver)
76 }
77 }
78 #[doc = "`get_secondGlyph()` overload"]
79 fn get_second_glyph(self) -> u32 {
80 unsafe {
81 let __receiver = <KerningPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c4e0usize)as*mut u8,u32;
83(KerningPair)__receiver)
84 }
85 }
86 #[doc = "`set_secondGlyph(u32)` overload"]
87 fn set_second_glyph(self, value: impl ::core::convert::Into<u32>) -> () {
88 unsafe {
89 let __receiver = <KerningPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c4f0usize)as*mut u8,();
91(KerningPair)__receiver,(u32)::core::convert::Into::into(value))
92 }
93 }
94 #[doc = "`get_secondGlyphAdjustments()` overload"]
95 fn get_second_glyph_adjustments(self) -> crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy {
96 unsafe {
97 let __receiver = <KerningPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c500usize)as*mut u8,crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy;
99(KerningPair)__receiver)
100 }
101 }
102 #[doc = "`get_ignoreSpacingAdjustments()` overload"]
103 fn get_ignore_spacing_adjustments(self) -> bool {
104 unsafe {
105 let __receiver = <KerningPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c510usize)as*mut u8,bool;
107(KerningPair)__receiver)
108 }
109 }
110 #[doc = "`.ctor()` overload"]
111 fn ctor(self) -> () {
112 unsafe {
113 let __receiver = <KerningPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c520usize)as*mut u8,();
115(KerningPair)__receiver)
116 }
117 }
118 #[doc = "`.ctor(u32, u32, f32)` overload"]
119 fn ctor_2(self, left: impl ::core::convert::Into<u32>, right: impl ::core::convert::Into<u32>, offset: impl ::core::convert::Into<f32>) -> () {
120 unsafe {
121 let __receiver = <KerningPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c550usize)as*mut u8,();
123(KerningPair)__receiver,(u32)::core::convert::Into::into(left),(u32)::core::convert::Into::into(right),(f32)::core::convert::Into::into(offset))
124 }
125 }
126 #[doc = "`.ctor(u32, crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy, u32, crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)` overload"]
127 fn ctor_3(
128 self,
129 first_glyph: impl ::core::convert::Into<u32>,
130 first_glyph_adjustments: impl ::core::convert::Into<crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy>,
131 second_glyph: impl ::core::convert::Into<u32>,
132 second_glyph_adjustments: impl ::core::convert::Into<crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy>,
133 ) -> () {
134 unsafe {
135 let __receiver = <KerningPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c5a0usize)as*mut u8,();
137(KerningPair)__receiver,(u32)::core::convert::Into::into(first_glyph),(crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)::core::convert::Into::into(first_glyph_adjustments),(u32)::core::convert::Into::into(second_glyph),(crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)::core::convert::Into::into(second_glyph_adjustments))
138 }
139 }
140 #[doc = "`ConvertLegacyKerningData()` overload"]
141 fn convert_legacy_kerning_data(self) -> () {
142 unsafe {
143 let __receiver = <KerningPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c640usize)as*mut u8,();
145(KerningPair)__receiver)
146 }
147 }
148}
149
150#[cfg(feature = "tm_pro-kerningpair")]
151impl<__T: IKerningPair> IKerningPairMethods for __T {}
152
153#[cfg(feature = "tm_pro-kerningpair")]
154impl KerningPair {
155 pub fn get_first_glyph_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
157 }
158
159 pub fn set_first_glyph_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
161 }
162
163 pub fn get_first_glyph_adjustments_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
165 }
166
167 pub fn get_second_glyph_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
169 }
170
171 pub fn set_second_glyph_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
173 }
174
175 pub fn get_second_glyph_adjustments_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
177 }
178
179 pub fn get_ignore_spacing_adjustments_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
181 }
182
183 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
185 }
186
187 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
189 }
190
191 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
193 }
194
195 pub fn convert_legacy_kerning_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
197 }
198
199 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
201 }
202}
203
204#[cfg(feature = "tm_pro-kerningpair")]
205impl KerningPair {
206 #[doc = "`.ctor()` — no args"]
207 pub fn new() -> Self {
208 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
209 panic!(
210 "{}
211::{}
212 failed to instantiate",
213 ::core::stringify!(KerningPair),
214 ::core::stringify!(new),
215 )
216 });
217 <Self as IKerningPairMethods>::ctor(this);
218 this
219 }
220
221 #[doc = "`.ctor(u32, u32, f32)` — overload selector"]
222 pub fn new_2(left: u32, right: u32, offset: f32) -> Self {
223 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
224 panic!(
225 "{}
226::{}
227 failed to instantiate",
228 ::core::stringify!(KerningPair),
229 ::core::stringify!(new_2),
230 )
231 });
232 <Self as IKerningPairMethods>::ctor_2(this, left, right, offset);
233 this
234 }
235
236 #[doc = "`.ctor(u32, crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy, u32, crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)` — overload selector"]
237 pub fn new_3(
238 first_glyph: u32,
239 first_glyph_adjustments: crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy,
240 second_glyph: u32,
241 second_glyph_adjustments: crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy,
242 ) -> Self {
243 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
244 panic!(
245 "{}
246::{}
247 failed to instantiate",
248 ::core::stringify!(KerningPair),
249 ::core::stringify!(new_3),
250 )
251 });
252 <Self as IKerningPairMethods>::ctor_3(this, first_glyph, first_glyph_adjustments, second_glyph, second_glyph_adjustments);
253 this
254 }
255}
256
257#[cfg(feature = "tm_pro-kerningpair")]
258#[doc(hidden)]
259pub mod prelude {
260 pub use super::{IKerningPair, IKerningPairMethods, KerningPair};
261 pub use crate::system::object::IObject;
262 #[cfg(feature = "system-object")]
263 pub use crate::system::object::IObjectMethods;
264}