Skip to main content

engage/generated/unity_engine/text_core/
faceinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-text_core-faceinfo-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/text_core/faceinfo/FaceInfo.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct FaceInfo {
17        pub m_face_index: i32,
18        pub m_family_name: ::unity::Il2CppString,
19        pub m_style_name: ::unity::Il2CppString,
20        pub m_point_size: i32,
21        pub m_scale: f32,
22        pub m_line_height: f32,
23        pub m_ascent_line: f32,
24        pub m_cap_line: f32,
25        pub m_mean_line: f32,
26        pub m_baseline: f32,
27        pub m_descent_line: f32,
28        pub m_superscript_offset: f32,
29        pub m_superscript_size: f32,
30        pub m_subscript_offset: f32,
31        pub m_subscript_size: f32,
32        pub m_underline_offset: f32,
33        pub m_underline_thickness: f32,
34        pub m_strikethrough_offset: f32,
35        pub m_strikethrough_thickness: f32,
36        pub m_tab_width: f32,
37    }
38    impl ::unity::ClassIdentity for FaceInfo {
39        const NAME: &'static str = "FaceInfo";
40        const NAMESPACE: &'static str = "UnityEngine.TextCore";
41
42        fn class() -> ::unity::Class {
43            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
44            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
45        }
46    }
47    impl ::unity::IlType for FaceInfo {
48        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
49            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
50        }
51    }
52}
53
54#[cfg(feature = "unity_engine-text_core-faceinfo-types")]
55pub use __types::*;
56
57#[cfg(feature = "unity_engine-text_core-faceinfo")]
58impl FaceInfo {
59    #[doc = "`set_familyName(::unity::Il2CppString)` overload"]
60    pub fn set_family_name(&mut self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c230usize)as*mut u8,();
63(*mut FaceInfo)self as*mut FaceInfo,(::unity::Il2CppString)::core::convert::Into::into(value))
64        }
65    }
66
67    #[doc = "`set_styleName(::unity::Il2CppString)` overload"]
68    pub fn set_style_name(&mut self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
69        unsafe {
70            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c240usize)as*mut u8,();
71(*mut FaceInfo)self as*mut FaceInfo,(::unity::Il2CppString)::core::convert::Into::into(value))
72        }
73    }
74
75    #[doc = "`get_pointSize()` overload"]
76    pub fn get_point_size(&mut self) -> i32 {
77        unsafe {
78            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c250usize)as*mut u8,i32;
79(*mut FaceInfo)self as*mut FaceInfo)
80        }
81    }
82
83    #[doc = "`set_pointSize(i32)` overload"]
84    pub fn set_point_size(&mut self, value: impl ::core::convert::Into<i32>) -> () {
85        unsafe {
86            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c260usize)as*mut u8,();
87(*mut FaceInfo)self as*mut FaceInfo,(i32)::core::convert::Into::into(value))
88        }
89    }
90
91    #[doc = "`get_scale()` overload"]
92    pub fn get_scale(&mut self) -> f32 {
93        unsafe {
94            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c270usize)as*mut u8,f32;
95(*mut FaceInfo)self as*mut FaceInfo)
96        }
97    }
98
99    #[doc = "`set_scale(f32)` overload"]
100    pub fn set_scale(&mut self, value: impl ::core::convert::Into<f32>) -> () {
101        unsafe {
102            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c280usize)as*mut u8,();
103(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
104        }
105    }
106
107    #[doc = "`get_lineHeight()` overload"]
108    pub fn get_line_height(&mut self) -> f32 {
109        unsafe {
110            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c290usize)as*mut u8,f32;
111(*mut FaceInfo)self as*mut FaceInfo)
112        }
113    }
114
115    #[doc = "`set_lineHeight(f32)` overload"]
116    pub fn set_line_height(&mut self, value: impl ::core::convert::Into<f32>) -> () {
117        unsafe {
118            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c2a0usize)as*mut u8,();
119(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
120        }
121    }
122
123    #[doc = "`get_ascentLine()` overload"]
124    pub fn get_ascent_line(&mut self) -> f32 {
125        unsafe {
126            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c2b0usize)as*mut u8,f32;
127(*mut FaceInfo)self as*mut FaceInfo)
128        }
129    }
130
131    #[doc = "`set_ascentLine(f32)` overload"]
132    pub fn set_ascent_line(&mut self, value: impl ::core::convert::Into<f32>) -> () {
133        unsafe {
134            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c2c0usize)as*mut u8,();
135(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
136        }
137    }
138
139    #[doc = "`get_capLine()` overload"]
140    pub fn get_cap_line(&mut self) -> f32 {
141        unsafe {
142            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c2d0usize)as*mut u8,f32;
143(*mut FaceInfo)self as*mut FaceInfo)
144        }
145    }
146
147    #[doc = "`set_capLine(f32)` overload"]
148    pub fn set_cap_line(&mut self, value: impl ::core::convert::Into<f32>) -> () {
149        unsafe {
150            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c2e0usize)as*mut u8,();
151(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
152        }
153    }
154
155    #[doc = "`get_meanLine()` overload"]
156    pub fn get_mean_line(&mut self) -> f32 {
157        unsafe {
158            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c2f0usize)as*mut u8,f32;
159(*mut FaceInfo)self as*mut FaceInfo)
160        }
161    }
162
163    #[doc = "`set_meanLine(f32)` overload"]
164    pub fn set_mean_line(&mut self, value: impl ::core::convert::Into<f32>) -> () {
165        unsafe {
166            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c300usize)as*mut u8,();
167(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
168        }
169    }
170
171    #[doc = "`get_baseline()` overload"]
172    pub fn get_baseline(&mut self) -> f32 {
173        unsafe {
174            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c310usize)as*mut u8,f32;
175(*mut FaceInfo)self as*mut FaceInfo)
176        }
177    }
178
179    #[doc = "`set_baseline(f32)` overload"]
180    pub fn set_baseline(&mut self, value: impl ::core::convert::Into<f32>) -> () {
181        unsafe {
182            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c320usize)as*mut u8,();
183(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
184        }
185    }
186
187    #[doc = "`get_descentLine()` overload"]
188    pub fn get_descent_line(&mut self) -> f32 {
189        unsafe {
190            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c330usize)as*mut u8,f32;
191(*mut FaceInfo)self as*mut FaceInfo)
192        }
193    }
194
195    #[doc = "`set_descentLine(f32)` overload"]
196    pub fn set_descent_line(&mut self, value: impl ::core::convert::Into<f32>) -> () {
197        unsafe {
198            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c340usize)as*mut u8,();
199(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
200        }
201    }
202
203    #[doc = "`get_superscriptOffset()` overload"]
204    pub fn get_superscript_offset(&mut self) -> f32 {
205        unsafe {
206            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c350usize)as*mut u8,f32;
207(*mut FaceInfo)self as*mut FaceInfo)
208        }
209    }
210
211    #[doc = "`set_superscriptOffset(f32)` overload"]
212    pub fn set_superscript_offset(&mut self, value: impl ::core::convert::Into<f32>) -> () {
213        unsafe {
214            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c360usize)as*mut u8,();
215(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
216        }
217    }
218
219    #[doc = "`get_superscriptSize()` overload"]
220    pub fn get_superscript_size(&mut self) -> f32 {
221        unsafe {
222            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c370usize)as*mut u8,f32;
223(*mut FaceInfo)self as*mut FaceInfo)
224        }
225    }
226
227    #[doc = "`set_superscriptSize(f32)` overload"]
228    pub fn set_superscript_size(&mut self, value: impl ::core::convert::Into<f32>) -> () {
229        unsafe {
230            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c380usize)as*mut u8,();
231(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
232        }
233    }
234
235    #[doc = "`get_subscriptOffset()` overload"]
236    pub fn get_subscript_offset(&mut self) -> f32 {
237        unsafe {
238            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c390usize)as*mut u8,f32;
239(*mut FaceInfo)self as*mut FaceInfo)
240        }
241    }
242
243    #[doc = "`set_subscriptOffset(f32)` overload"]
244    pub fn set_subscript_offset(&mut self, value: impl ::core::convert::Into<f32>) -> () {
245        unsafe {
246            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c3a0usize)as*mut u8,();
247(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
248        }
249    }
250
251    #[doc = "`get_subscriptSize()` overload"]
252    pub fn get_subscript_size(&mut self) -> f32 {
253        unsafe {
254            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c3b0usize)as*mut u8,f32;
255(*mut FaceInfo)self as*mut FaceInfo)
256        }
257    }
258
259    #[doc = "`set_subscriptSize(f32)` overload"]
260    pub fn set_subscript_size(&mut self, value: impl ::core::convert::Into<f32>) -> () {
261        unsafe {
262            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c3c0usize)as*mut u8,();
263(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
264        }
265    }
266
267    #[doc = "`get_underlineOffset()` overload"]
268    pub fn get_underline_offset(&mut self) -> f32 {
269        unsafe {
270            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c3d0usize)as*mut u8,f32;
271(*mut FaceInfo)self as*mut FaceInfo)
272        }
273    }
274
275    #[doc = "`set_underlineOffset(f32)` overload"]
276    pub fn set_underline_offset(&mut self, value: impl ::core::convert::Into<f32>) -> () {
277        unsafe {
278            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c3e0usize)as*mut u8,();
279(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
280        }
281    }
282
283    #[doc = "`get_underlineThickness()` overload"]
284    pub fn get_underline_thickness(&mut self) -> f32 {
285        unsafe {
286            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c3f0usize)as*mut u8,f32;
287(*mut FaceInfo)self as*mut FaceInfo)
288        }
289    }
290
291    #[doc = "`set_underlineThickness(f32)` overload"]
292    pub fn set_underline_thickness(&mut self, value: impl ::core::convert::Into<f32>) -> () {
293        unsafe {
294            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c400usize)as*mut u8,();
295(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
296        }
297    }
298
299    #[doc = "`get_strikethroughOffset()` overload"]
300    pub fn get_strikethrough_offset(&mut self) -> f32 {
301        unsafe {
302            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c410usize)as*mut u8,f32;
303(*mut FaceInfo)self as*mut FaceInfo)
304        }
305    }
306
307    #[doc = "`set_strikethroughOffset(f32)` overload"]
308    pub fn set_strikethrough_offset(&mut self, value: impl ::core::convert::Into<f32>) -> () {
309        unsafe {
310            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c420usize)as*mut u8,();
311(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
312        }
313    }
314
315    #[doc = "`set_strikethroughThickness(f32)` overload"]
316    pub fn set_strikethrough_thickness(&mut self, value: impl ::core::convert::Into<f32>) -> () {
317        unsafe {
318            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c430usize)as*mut u8,();
319(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
320        }
321    }
322
323    #[doc = "`get_tabWidth()` overload"]
324    pub fn get_tab_width(&mut self) -> f32 {
325        unsafe {
326            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c440usize)as*mut u8,f32;
327(*mut FaceInfo)self as*mut FaceInfo)
328        }
329    }
330
331    #[doc = "`set_tabWidth(f32)` overload"]
332    pub fn set_tab_width(&mut self, value: impl ::core::convert::Into<f32>) -> () {
333        unsafe {
334            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c450usize)as*mut u8,();
335(*mut FaceInfo)self as*mut FaceInfo,(f32)::core::convert::Into::into(value))
336        }
337    }
338}
339
340#[cfg(feature = "unity_engine-text_core-faceinfo")]
341impl FaceInfo {
342    pub fn set_family_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
344    }
345
346    pub fn set_style_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
348    }
349
350    pub fn get_point_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
352    }
353
354    pub fn set_point_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
356    }
357
358    pub fn get_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
360    }
361
362    pub fn set_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
364    }
365
366    pub fn get_line_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
368    }
369
370    pub fn set_line_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
372    }
373
374    pub fn get_ascent_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
376    }
377
378    pub fn set_ascent_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
380    }
381
382    pub fn get_cap_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
384    }
385
386    pub fn set_cap_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
388    }
389
390    pub fn get_mean_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
392    }
393
394    pub fn set_mean_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
396    }
397
398    pub fn get_baseline_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
400    }
401
402    pub fn set_baseline_method_info() -> &'static ::unity::il2cpp::MethodInfo {
403        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
404    }
405
406    pub fn get_descent_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
408    }
409
410    pub fn set_descent_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
411        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
412    }
413
414    pub fn get_superscript_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
416    }
417
418    pub fn set_superscript_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
419        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
420    }
421
422    pub fn get_superscript_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
423        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
424    }
425
426    pub fn set_superscript_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
427        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
428    }
429
430    pub fn get_subscript_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
431        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
432    }
433
434    pub fn set_subscript_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
435        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
436    }
437
438    pub fn get_subscript_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
439        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
440    }
441
442    pub fn set_subscript_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
443        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
444    }
445
446    pub fn get_underline_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
447        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
448    }
449
450    pub fn set_underline_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
451        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
452    }
453
454    pub fn get_underline_thickness_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
456    }
457
458    pub fn set_underline_thickness_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
460    }
461
462    pub fn get_strikethrough_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
464    }
465
466    pub fn set_strikethrough_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
468    }
469
470    pub fn set_strikethrough_thickness_method_info() -> &'static ::unity::il2cpp::MethodInfo {
471        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
472    }
473
474    pub fn get_tab_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
475        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
476    }
477
478    pub fn set_tab_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
479        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
480    }
481}
482
483#[cfg(feature = "unity_engine-text_core-faceinfo")]
484#[doc(hidden)]
485pub mod prelude {
486    pub use super::FaceInfo;
487    #[cfg(feature = "system-object")]
488    pub use crate::system::object::IObjectMethods;
489    #[cfg(feature = "system-valuetype")]
490    pub use crate::system::valuetype::IValueTypeMethods;
491    pub use crate::system::{object::IObject, valuetype::IValueType};
492}