engage/generated/tm_pro/
tmp_glyphadjustmentrecord.rs1#[cfg(feature = "tm_pro-tmp_glyphadjustmentrecord-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/tm_pro/tmp_glyphadjustmentrecord/TMP_GlyphAdjustmentRecord.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct TMP_GlyphAdjustmentRecord {
17 pub m_glyph_index: u32,
18 pub m_glyph_value_record: crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord,
19 }
20 impl ::unity::ClassIdentity for TMP_GlyphAdjustmentRecord {
21 const NAME: &'static str = "TMP_GlyphAdjustmentRecord";
22 const NAMESPACE: &'static str = "TMPro";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for TMP_GlyphAdjustmentRecord {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34}
35
36#[cfg(feature = "tm_pro-tmp_glyphadjustmentrecord-types")]
37pub use __types::*;
38
39#[cfg(feature = "tm_pro-tmp_glyphadjustmentrecord")]
40impl TMP_GlyphAdjustmentRecord {
41 #[doc = "`get_glyphIndex()` overload"]
42 pub fn get_glyph_index(&mut self) -> u32 {
43 unsafe {
44 ::unity::il2cpp_call!((::unity::module_base()+0x33a2be0usize)as*mut u8,u32;
45(*mut TMP_GlyphAdjustmentRecord)self as*mut TMP_GlyphAdjustmentRecord)
46 }
47 }
48
49 #[doc = "`set_glyphIndex(u32)` overload"]
50 pub fn set_glyph_index(&mut self, value: impl ::core::convert::Into<u32>) -> () {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x33a2bf0usize)as*mut u8,();
53(*mut TMP_GlyphAdjustmentRecord)self as*mut TMP_GlyphAdjustmentRecord,(u32)::core::convert::Into::into(value))
54 }
55 }
56
57 #[doc = "`get_glyphValueRecord()` overload"]
58 pub fn get_glyph_value_record(&mut self) -> crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord {
59 unsafe {
60 ::unity::il2cpp_call!((::unity::module_base()+0x33a2c00usize)as*mut u8,crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord;
61(*mut TMP_GlyphAdjustmentRecord)self as*mut TMP_GlyphAdjustmentRecord)
62 }
63 }
64
65 #[doc = "`set_glyphValueRecord(crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord)` overload"]
66 pub fn set_glyph_value_record(&mut self, value: impl ::core::convert::Into<crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord>) -> () {
67 unsafe {
68 ::unity::il2cpp_call!((::unity::module_base()+0x33a2c10usize)as*mut u8,();
69(*mut TMP_GlyphAdjustmentRecord)self as*mut TMP_GlyphAdjustmentRecord,(crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord)::core::convert::Into::into(value))
70 }
71 }
72
73 #[doc = "`.ctor(u32, crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord)` overload"]
74 pub fn ctor(
75 &mut self,
76 glyph_index: impl ::core::convert::Into<u32>,
77 glyph_value_record: impl ::core::convert::Into<crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord>,
78 ) -> () {
79 unsafe {
80 ::unity::il2cpp_call!((::unity::module_base()+0x33a2c30usize)as*mut u8,();
81(*mut TMP_GlyphAdjustmentRecord)self as*mut TMP_GlyphAdjustmentRecord,(u32)::core::convert::Into::into(glyph_index),(crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord)::core::convert::Into::into(glyph_value_record))
82 }
83 }
84
85 #[doc = "`.ctor(crate::unity_engine::text_core::low_level::glyphadjustmentrecord::GlyphAdjustmentRecord)` overload"]
86 pub fn ctor_2(
87 &mut self,
88 adjustment_record: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphadjustmentrecord::GlyphAdjustmentRecord>,
89 ) -> () {
90 unsafe {
91 ::unity::il2cpp_call!((::unity::module_base()+0x33a2c50usize)as*mut u8,();
92(*mut TMP_GlyphAdjustmentRecord)self as*mut TMP_GlyphAdjustmentRecord,(crate::unity_engine::text_core::low_level::glyphadjustmentrecord::GlyphAdjustmentRecord)::core::convert::Into::into(adjustment_record))
93 }
94 }
95}
96
97#[cfg(feature = "tm_pro-tmp_glyphadjustmentrecord")]
98impl TMP_GlyphAdjustmentRecord {
99 pub fn get_glyph_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
101 }
102
103 pub fn set_glyph_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
105 }
106
107 pub fn get_glyph_value_record_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
109 }
110
111 pub fn set_glyph_value_record_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
113 }
114
115 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
117 }
118
119 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
121 }
122}
123
124#[cfg(feature = "tm_pro-tmp_glyphadjustmentrecord")]
125#[doc(hidden)]
126pub mod prelude {
127 pub use super::TMP_GlyphAdjustmentRecord;
128 #[cfg(feature = "system-object")]
129 pub use crate::system::object::IObjectMethods;
130 #[cfg(feature = "system-valuetype")]
131 pub use crate::system::valuetype::IValueTypeMethods;
132 pub use crate::system::{object::IObject, valuetype::IValueType};
133}