Skip to main content

engage/generated/unity_engine/ui/
fontdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-ui-fontdata-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/unity_engine/ui/fontdata/FontData.md"))]
11    #[::unity::class(namespace = "UnityEngine.UI", name = "FontData")]
12    #[parent(crate::system::object::Object)]
13    pub struct FontData {
14        #[offset(16)]
15        #[rename(name = "m_Font")]
16        pub m_font: crate::unity_engine::font::Font,
17        #[offset(24)]
18        #[rename(name = "m_FontSize")]
19        pub m_font_size: i32,
20        #[offset(28)]
21        #[rename(name = "m_FontStyle")]
22        pub m_font_style: crate::unity_engine::fontstyle::FontStyle,
23        #[offset(32)]
24        #[rename(name = "m_BestFit")]
25        pub m_best_fit: bool,
26        #[offset(36)]
27        #[rename(name = "m_MinSize")]
28        pub m_min_size: i32,
29        #[offset(40)]
30        #[rename(name = "m_MaxSize")]
31        pub m_max_size: i32,
32        #[offset(44)]
33        #[rename(name = "m_Alignment")]
34        pub m_alignment: crate::unity_engine::textanchor::TextAnchor,
35        #[offset(48)]
36        #[rename(name = "m_AlignByGeometry")]
37        pub m_align_by_geometry: bool,
38        #[offset(49)]
39        #[rename(name = "m_RichText")]
40        pub m_rich_text: bool,
41        #[offset(52)]
42        #[rename(name = "m_HorizontalOverflow")]
43        pub m_horizontal_overflow: crate::unity_engine::horizontalwrapmode::HorizontalWrapMode,
44        #[offset(56)]
45        #[rename(name = "m_VerticalOverflow")]
46        pub m_vertical_overflow: crate::unity_engine::verticalwrapmode::VerticalWrapMode,
47        #[offset(60)]
48        #[rename(name = "m_LineSpacing")]
49        pub m_line_spacing: f32,
50    }
51}
52
53#[cfg(feature = "unity_engine-ui-fontdata-types")]
54pub use __types::*;
55
56#[cfg(feature = "unity_engine-ui-fontdata")]
57impl FontData {
58    #[doc = "`get_defaultFontData()` overload"]
59    pub fn get_default_font_data() -> crate::unity_engine::ui::fontdata::FontData {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x318b5c0usize)as*mut u8,crate::unity_engine::ui::fontdata::FontData;
62            )
63        }
64    }
65}
66
67#[cfg(feature = "unity_engine-ui-fontdata")]
68pub trait IFontDataMethods: IFontData {
69    #[doc = "`get_font()` overload"]
70    fn get_font(self) -> crate::unity_engine::font::Font {
71        unsafe {
72            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x318b660usize)as*mut u8,crate::unity_engine::font::Font;
74(FontData)__receiver)
75        }
76    }
77    #[doc = "`set_font(crate::unity_engine::font::Font)` overload"]
78    fn set_font(self, value: impl ::core::convert::Into<crate::unity_engine::font::Font>) -> () {
79        unsafe {
80            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x318b670usize)as*mut u8,();
82(FontData)__receiver,(crate::unity_engine::font::Font)::core::convert::Into::into(value))
83        }
84    }
85    #[doc = "`get_fontSize()` overload"]
86    fn get_font_size(self) -> i32 {
87        unsafe {
88            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            ::unity::il2cpp_call!((::unity::module_base()+0x318b680usize)as*mut u8,i32;
90(FontData)__receiver)
91        }
92    }
93    #[doc = "`set_fontSize(i32)` overload"]
94    fn set_font_size(self, value: impl ::core::convert::Into<i32>) -> () {
95        unsafe {
96            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x318b690usize)as*mut u8,();
98(FontData)__receiver,(i32)::core::convert::Into::into(value))
99        }
100    }
101    #[doc = "`get_fontStyle()` overload"]
102    fn get_font_style(self) -> crate::unity_engine::fontstyle::FontStyle {
103        unsafe {
104            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x318b6a0usize)as*mut u8,crate::unity_engine::fontstyle::FontStyle;
106(FontData)__receiver)
107        }
108    }
109    #[doc = "`set_fontStyle(crate::unity_engine::fontstyle::FontStyle)` overload"]
110    fn set_font_style(self, value: impl ::core::convert::Into<crate::unity_engine::fontstyle::FontStyle>) -> () {
111        unsafe {
112            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            ::unity::il2cpp_call!((::unity::module_base()+0x318b6b0usize)as*mut u8,();
114(FontData)__receiver,(crate::unity_engine::fontstyle::FontStyle)::core::convert::Into::into(value))
115        }
116    }
117    #[doc = "`get_bestFit()` overload"]
118    fn get_best_fit(self) -> bool {
119        unsafe {
120            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121            ::unity::il2cpp_call!((::unity::module_base()+0x318b6c0usize)as*mut u8,bool;
122(FontData)__receiver)
123        }
124    }
125    #[doc = "`set_bestFit(bool)` overload"]
126    fn set_best_fit(self, value: impl ::core::convert::Into<bool>) -> () {
127        unsafe {
128            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            ::unity::il2cpp_call!((::unity::module_base()+0x318b6d0usize)as*mut u8,();
130(FontData)__receiver,(bool)::core::convert::Into::into(value))
131        }
132    }
133    #[doc = "`get_minSize()` overload"]
134    fn get_min_size(self) -> i32 {
135        unsafe {
136            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            ::unity::il2cpp_call!((::unity::module_base()+0x318b6e0usize)as*mut u8,i32;
138(FontData)__receiver)
139        }
140    }
141    #[doc = "`set_minSize(i32)` overload"]
142    fn set_min_size(self, value: impl ::core::convert::Into<i32>) -> () {
143        unsafe {
144            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            ::unity::il2cpp_call!((::unity::module_base()+0x318b6f0usize)as*mut u8,();
146(FontData)__receiver,(i32)::core::convert::Into::into(value))
147        }
148    }
149    #[doc = "`get_maxSize()` overload"]
150    fn get_max_size(self) -> i32 {
151        unsafe {
152            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            ::unity::il2cpp_call!((::unity::module_base()+0x318b700usize)as*mut u8,i32;
154(FontData)__receiver)
155        }
156    }
157    #[doc = "`set_maxSize(i32)` overload"]
158    fn set_max_size(self, value: impl ::core::convert::Into<i32>) -> () {
159        unsafe {
160            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x318b710usize)as*mut u8,();
162(FontData)__receiver,(i32)::core::convert::Into::into(value))
163        }
164    }
165    #[doc = "`get_alignment()` overload"]
166    fn get_alignment(self) -> crate::unity_engine::textanchor::TextAnchor {
167        unsafe {
168            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169            ::unity::il2cpp_call!((::unity::module_base()+0x318b720usize)as*mut u8,crate::unity_engine::textanchor::TextAnchor;
170(FontData)__receiver)
171        }
172    }
173    #[doc = "`set_alignment(crate::unity_engine::textanchor::TextAnchor)` overload"]
174    fn set_alignment(self, value: impl ::core::convert::Into<crate::unity_engine::textanchor::TextAnchor>) -> () {
175        unsafe {
176            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            ::unity::il2cpp_call!((::unity::module_base()+0x318b730usize)as*mut u8,();
178(FontData)__receiver,(crate::unity_engine::textanchor::TextAnchor)::core::convert::Into::into(value))
179        }
180    }
181    #[doc = "`get_alignByGeometry()` overload"]
182    fn get_align_by_geometry(self) -> bool {
183        unsafe {
184            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            ::unity::il2cpp_call!((::unity::module_base()+0x318b740usize)as*mut u8,bool;
186(FontData)__receiver)
187        }
188    }
189    #[doc = "`set_alignByGeometry(bool)` overload"]
190    fn set_align_by_geometry(self, value: impl ::core::convert::Into<bool>) -> () {
191        unsafe {
192            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            ::unity::il2cpp_call!((::unity::module_base()+0x318b750usize)as*mut u8,();
194(FontData)__receiver,(bool)::core::convert::Into::into(value))
195        }
196    }
197    #[doc = "`get_richText()` overload"]
198    fn get_rich_text(self) -> bool {
199        unsafe {
200            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201            ::unity::il2cpp_call!((::unity::module_base()+0x318b760usize)as*mut u8,bool;
202(FontData)__receiver)
203        }
204    }
205    #[doc = "`set_richText(bool)` overload"]
206    fn set_rich_text(self, value: impl ::core::convert::Into<bool>) -> () {
207        unsafe {
208            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209            ::unity::il2cpp_call!((::unity::module_base()+0x318b770usize)as*mut u8,();
210(FontData)__receiver,(bool)::core::convert::Into::into(value))
211        }
212    }
213    #[doc = "`get_horizontalOverflow()` overload"]
214    fn get_horizontal_overflow(self) -> crate::unity_engine::horizontalwrapmode::HorizontalWrapMode {
215        unsafe {
216            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217            ::unity::il2cpp_call!((::unity::module_base()+0x318b780usize)as*mut u8,crate::unity_engine::horizontalwrapmode::HorizontalWrapMode;
218(FontData)__receiver)
219        }
220    }
221    #[doc = "`set_horizontalOverflow(crate::unity_engine::horizontalwrapmode::HorizontalWrapMode)` overload"]
222    fn set_horizontal_overflow(self, value: impl ::core::convert::Into<crate::unity_engine::horizontalwrapmode::HorizontalWrapMode>) -> () {
223        unsafe {
224            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225            ::unity::il2cpp_call!((::unity::module_base()+0x318b790usize)as*mut u8,();
226(FontData)__receiver,(crate::unity_engine::horizontalwrapmode::HorizontalWrapMode)::core::convert::Into::into(value))
227        }
228    }
229    #[doc = "`get_verticalOverflow()` overload"]
230    fn get_vertical_overflow(self) -> crate::unity_engine::verticalwrapmode::VerticalWrapMode {
231        unsafe {
232            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233            ::unity::il2cpp_call!((::unity::module_base()+0x318b7a0usize)as*mut u8,crate::unity_engine::verticalwrapmode::VerticalWrapMode;
234(FontData)__receiver)
235        }
236    }
237    #[doc = "`set_verticalOverflow(crate::unity_engine::verticalwrapmode::VerticalWrapMode)` overload"]
238    fn set_vertical_overflow(self, value: impl ::core::convert::Into<crate::unity_engine::verticalwrapmode::VerticalWrapMode>) -> () {
239        unsafe {
240            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
241            ::unity::il2cpp_call!((::unity::module_base()+0x318b7b0usize)as*mut u8,();
242(FontData)__receiver,(crate::unity_engine::verticalwrapmode::VerticalWrapMode)::core::convert::Into::into(value))
243        }
244    }
245    #[doc = "`get_lineSpacing()` overload"]
246    fn get_line_spacing(self) -> f32 {
247        unsafe {
248            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249            ::unity::il2cpp_call!((::unity::module_base()+0x318b7c0usize)as*mut u8,f32;
250(FontData)__receiver)
251        }
252    }
253    #[doc = "`set_lineSpacing(f32)` overload"]
254    fn set_line_spacing(self, value: impl ::core::convert::Into<f32>) -> () {
255        unsafe {
256            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257            ::unity::il2cpp_call!((::unity::module_base()+0x318b7d0usize)as*mut u8,();
258(FontData)__receiver,(f32)::core::convert::Into::into(value))
259        }
260    }
261    #[doc = "`UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize()` overload"]
262    fn unity_engine_i_serialization_callback_receiver_on_before_serialize(self) -> () {
263        unsafe {
264            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265            {
266                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
267                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
268                    panic!(
269                        "unity: virtual slot {}
270 out of range (vtable len {}
271) on the runtime class behind {}
272 (method `{}
273`)",
274                        4usize,
275                        __vt.len(),
276                        <FontData as ::unity::ClassIdentity>::NAME,
277                        "UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize",
278                    )
279                });
280                let __inner: extern "C" fn(FontData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
281                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
282                __inner(__receiver, __mi)
283            }
284        }
285    }
286    #[doc = "`UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize()` overload"]
287    fn unity_engine_i_serialization_callback_receiver_on_after_deserialize(self) -> () {
288        unsafe {
289            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290            {
291                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
292                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
293                    panic!(
294                        "unity: virtual slot {}
295 out of range (vtable len {}
296) on the runtime class behind {}
297 (method `{}
298`)",
299                        5usize,
300                        __vt.len(),
301                        <FontData as ::unity::ClassIdentity>::NAME,
302                        "UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize",
303                    )
304                });
305                let __inner: extern "C" fn(FontData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
306                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
307                __inner(__receiver, __mi)
308            }
309        }
310    }
311    #[doc = "`.ctor()` overload"]
312    fn ctor(self) -> () {
313        unsafe {
314            let __receiver = <FontData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315            ::unity::il2cpp_call!((::unity::module_base()+0x318b650usize)as*mut u8,();
316(FontData)__receiver)
317        }
318    }
319}
320
321#[cfg(feature = "unity_engine-ui-fontdata")]
322impl<__T: IFontData> IFontDataMethods for __T {}
323
324#[cfg(feature = "unity_engine-ui-fontdata")]
325impl FontData {
326    pub fn get_default_font_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
328    }
329
330    pub fn get_font_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
332    }
333
334    pub fn set_font_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
336    }
337
338    pub fn get_font_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
340    }
341
342    pub fn set_font_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
344    }
345
346    pub fn get_font_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
348    }
349
350    pub fn set_font_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
352    }
353
354    pub fn get_best_fit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
356    }
357
358    pub fn set_best_fit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
360    }
361
362    pub fn get_min_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
364    }
365
366    pub fn set_min_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
368    }
369
370    pub fn get_max_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
372    }
373
374    pub fn set_max_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
376    }
377
378    pub fn get_alignment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
380    }
381
382    pub fn set_alignment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
384    }
385
386    pub fn get_align_by_geometry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
388    }
389
390    pub fn set_align_by_geometry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
392    }
393
394    pub fn get_rich_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
396    }
397
398    pub fn set_rich_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
400    }
401
402    pub fn get_horizontal_overflow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
403        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
404    }
405
406    pub fn set_horizontal_overflow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
408    }
409
410    pub fn get_vertical_overflow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
411        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
412    }
413
414    pub fn set_vertical_overflow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
416    }
417
418    pub fn get_line_spacing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
419        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
420    }
421
422    pub fn set_line_spacing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
423        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
424    }
425
426    pub fn unity_engine_i_serialization_callback_receiver_on_before_serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
427        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
428    }
429
430    pub fn unity_engine_i_serialization_callback_receiver_on_after_deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
431        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
432    }
433
434    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
435        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
436    }
437}
438
439#[cfg(feature = "unity_engine-ui-fontdata")]
440impl FontData {
441    #[doc = "Direct (non-virtual) call to `FontData`'s own `UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
442    pub unsafe fn unity_engine_i_serialization_callback_receiver_on_before_serialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
443        let __mi = Self::unity_engine_i_serialization_callback_receiver_on_before_serialize_method_info();
444        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
445        __inner(this.into(), ::core::option::Option::None)
446    }
447
448    #[doc = "Direct (non-virtual) call to `FontData`'s own `UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
449    pub unsafe fn unity_engine_i_serialization_callback_receiver_on_after_deserialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
450        let __mi = Self::unity_engine_i_serialization_callback_receiver_on_after_deserialize_method_info();
451        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
452        __inner(this.into(), ::core::option::Option::None)
453    }
454}
455
456#[cfg(feature = "unity_engine-ui-fontdata")]
457impl FontData {
458    #[doc = "`.ctor()` — no args"]
459    pub fn new() -> Self {
460        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
461            panic!(
462                "{}
463::{}
464 failed to instantiate",
465                ::core::stringify!(FontData),
466                ::core::stringify!(new),
467            )
468        });
469        <Self as IFontDataMethods>::ctor(this);
470        this
471    }
472}
473
474#[cfg(feature = "unity_engine-ui-fontdata")]
475#[doc(hidden)]
476pub mod prelude {
477    pub use super::{FontData, IFontData, IFontDataMethods};
478    pub use crate::system::object::IObject;
479    #[cfg(feature = "system-object")]
480    pub use crate::system::object::IObjectMethods;
481}