Skip to main content

engage/generated/tm_pro/
tmp_glyphpairadjustmentrecord.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_glyphpairadjustmentrecord-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/tmp_glyphpairadjustmentrecord/TMP_GlyphPairAdjustmentRecord.md"))]
11    #[::unity::class(namespace = "TMPro", name = "TMP_GlyphPairAdjustmentRecord")]
12    #[parent(crate::system::object::Object)]
13    pub struct TMP_GlyphPairAdjustmentRecord {
14        #[offset(16)]
15        #[rename(name = "m_FirstAdjustmentRecord")]
16        pub m_first_adjustment_record: crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord,
17        #[offset(36)]
18        #[rename(name = "m_SecondAdjustmentRecord")]
19        pub m_second_adjustment_record: crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord,
20        #[offset(56)]
21        #[rename(name = "m_FeatureLookupFlags")]
22        pub m_feature_lookup_flags: crate::tm_pro::fontfeaturelookupflags_2::FontFeatureLookupFlags_2,
23    }
24}
25
26#[cfg(feature = "tm_pro-tmp_glyphpairadjustmentrecord-types")]
27pub use __types::*;
28
29#[cfg(feature = "tm_pro-tmp_glyphpairadjustmentrecord")]
30pub trait ITMP_GlyphPairAdjustmentRecordMethods: ITMP_GlyphPairAdjustmentRecord {
31    #[doc = "`get_firstAdjustmentRecord()` overload"]
32    fn get_first_adjustment_record(self) -> crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord {
33        unsafe {
34            let __receiver =
35                <TMP_GlyphPairAdjustmentRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x33a2d70usize)as*mut u8,crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord;
37(TMP_GlyphPairAdjustmentRecord)__receiver)
38        }
39    }
40    #[doc = "`set_firstAdjustmentRecord(crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord)` overload"]
41    fn set_first_adjustment_record(
42        self,
43        value: impl ::core::convert::Into<crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord>,
44    ) -> () {
45        unsafe {
46            let __receiver =
47                <TMP_GlyphPairAdjustmentRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x33a2d90usize)as*mut u8,();
49(TMP_GlyphPairAdjustmentRecord)__receiver,(crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord)::core::convert::Into::into(value))
50        }
51    }
52    #[doc = "`get_secondAdjustmentRecord()` overload"]
53    fn get_second_adjustment_record(self) -> crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord {
54        unsafe {
55            let __receiver =
56                <TMP_GlyphPairAdjustmentRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57            ::unity::il2cpp_call!((::unity::module_base()+0x33a2db0usize)as*mut u8,crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord;
58(TMP_GlyphPairAdjustmentRecord)__receiver)
59        }
60    }
61    #[doc = "`set_secondAdjustmentRecord(crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord)` overload"]
62    fn set_second_adjustment_record(
63        self,
64        value: impl ::core::convert::Into<crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord>,
65    ) -> () {
66        unsafe {
67            let __receiver =
68                <TMP_GlyphPairAdjustmentRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            ::unity::il2cpp_call!((::unity::module_base()+0x33a2dd0usize)as*mut u8,();
70(TMP_GlyphPairAdjustmentRecord)__receiver,(crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord)::core::convert::Into::into(value))
71        }
72    }
73    #[doc = "`get_featureLookupFlags()` overload"]
74    fn get_feature_lookup_flags(self) -> crate::tm_pro::fontfeaturelookupflags_2::FontFeatureLookupFlags_2 {
75        unsafe {
76            let __receiver =
77                <TMP_GlyphPairAdjustmentRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            ::unity::il2cpp_call!((::unity::module_base()+0x33a2df0usize)as*mut u8,crate::tm_pro::fontfeaturelookupflags_2::FontFeatureLookupFlags_2;
79(TMP_GlyphPairAdjustmentRecord)__receiver)
80        }
81    }
82    #[doc = "`set_featureLookupFlags(crate::tm_pro::fontfeaturelookupflags_2::FontFeatureLookupFlags_2)` overload"]
83    fn set_feature_lookup_flags(self, value: impl ::core::convert::Into<crate::tm_pro::fontfeaturelookupflags_2::FontFeatureLookupFlags_2>) -> () {
84        unsafe {
85            let __receiver =
86                <TMP_GlyphPairAdjustmentRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x33a2e00usize)as*mut u8,();
88(TMP_GlyphPairAdjustmentRecord)__receiver,(crate::tm_pro::fontfeaturelookupflags_2::FontFeatureLookupFlags_2)::core::convert::Into::into(value))
89        }
90    }
91    #[doc = "`.ctor(crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord, crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord)` overload"]
92    fn ctor(
93        self,
94        first_adjustment_record: impl ::core::convert::Into<crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord>,
95        second_adjustment_record: impl ::core::convert::Into<crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord>,
96    ) -> () {
97        unsafe {
98            let __receiver =
99                <TMP_GlyphPairAdjustmentRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            ::unity::il2cpp_call!((::unity::module_base()+0x33a2e10usize)as*mut u8,();
101(TMP_GlyphPairAdjustmentRecord)__receiver,(crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord)::core::convert::Into::into(first_adjustment_record),(crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord)::core::convert::Into::into(second_adjustment_record))
102        }
103    }
104    #[doc = "`.ctor(crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord)` overload"]
105    fn ctor_2(
106        self,
107        glyph_pair_adjustment_record: impl ::core::convert::Into<
108            crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord,
109        >,
110    ) -> () {
111        unsafe {
112            let __receiver =
113                <TMP_GlyphPairAdjustmentRecord as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            ::unity::il2cpp_call!((::unity::module_base()+0x33a2e70usize)as*mut u8,();
115(TMP_GlyphPairAdjustmentRecord)__receiver,(crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord)::core::convert::Into::into(glyph_pair_adjustment_record))
116        }
117    }
118}
119
120#[cfg(feature = "tm_pro-tmp_glyphpairadjustmentrecord")]
121impl<__T: ITMP_GlyphPairAdjustmentRecord> ITMP_GlyphPairAdjustmentRecordMethods for __T {}
122
123#[cfg(feature = "tm_pro-tmp_glyphpairadjustmentrecord")]
124impl TMP_GlyphPairAdjustmentRecord {
125    pub fn get_first_adjustment_record_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
127    }
128
129    pub fn set_first_adjustment_record_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
131    }
132
133    pub fn get_second_adjustment_record_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
135    }
136
137    pub fn set_second_adjustment_record_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
139    }
140
141    pub fn get_feature_lookup_flags_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
143    }
144
145    pub fn set_feature_lookup_flags_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
147    }
148
149    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
151    }
152
153    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
155    }
156}
157
158#[cfg(feature = "tm_pro-tmp_glyphpairadjustmentrecord")]
159impl TMP_GlyphPairAdjustmentRecord {
160    #[doc = "`.ctor(crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord, crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord)` — overload selector"]
161    pub fn new(
162        first_adjustment_record: crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord,
163        second_adjustment_record: crate::tm_pro::tmp_glyphadjustmentrecord::TMP_GlyphAdjustmentRecord,
164    ) -> Self {
165        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
166            panic!(
167                "{}
168::{}
169 failed to instantiate",
170                ::core::stringify!(TMP_GlyphPairAdjustmentRecord),
171                ::core::stringify!(new),
172            )
173        });
174        <Self as ITMP_GlyphPairAdjustmentRecordMethods>::ctor(this, first_adjustment_record, second_adjustment_record);
175        this
176    }
177
178    #[doc = "`.ctor(crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord)` — overload selector"]
179    pub fn new_2(
180        glyph_pair_adjustment_record: crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord,
181    ) -> Self {
182        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
183            panic!(
184                "{}
185::{}
186 failed to instantiate",
187                ::core::stringify!(TMP_GlyphPairAdjustmentRecord),
188                ::core::stringify!(new_2),
189            )
190        });
191        <Self as ITMP_GlyphPairAdjustmentRecordMethods>::ctor_2(this, glyph_pair_adjustment_record);
192        this
193    }
194}
195
196#[cfg(feature = "tm_pro-tmp_glyphpairadjustmentrecord")]
197#[doc(hidden)]
198pub mod prelude {
199    pub use super::{ITMP_GlyphPairAdjustmentRecord, ITMP_GlyphPairAdjustmentRecordMethods, TMP_GlyphPairAdjustmentRecord};
200    pub use crate::system::object::IObject;
201    #[cfg(feature = "system-object")]
202    pub use crate::system::object::IObjectMethods;
203}