Skip to main content

engage/generated/tm_pro/
tmp_fontfeaturetable.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_fontfeaturetable-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_fontfeaturetable/TMP_FontFeatureTable.md"))]
11    #[::unity::class(namespace = "TMPro", name = "TMP_FontFeatureTable")]
12    #[parent(crate::system::object::Object)]
13    pub struct TMP_FontFeatureTable {
14        #[offset(16)]
15        #[rename(name = "m_GlyphPairAdjustmentRecords")]
16        pub m_glyph_pair_adjustment_records:
17            crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_glyphpairadjustmentrecord::TMP_GlyphPairAdjustmentRecord>,
18        #[offset(24)]
19        #[rename(name = "m_GlyphPairAdjustmentRecordLookupDictionary")]
20        pub m_glyph_pair_adjustment_record_lookup_dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<
21            u32,
22            crate::tm_pro::tmp_glyphpairadjustmentrecord::TMP_GlyphPairAdjustmentRecord,
23        >,
24    }
25}
26
27#[cfg(feature = "tm_pro-tmp_fontfeaturetable-types")]
28pub use __types::*;
29
30#[cfg(feature = "tm_pro-tmp_fontfeaturetable")]
31pub trait ITMP_FontFeatureTableMethods: ITMP_FontFeatureTable {
32    #[doc = "`get_glyphPairAdjustmentRecords()` overload"]
33    fn get_glyph_pair_adjustment_records(
34        self,
35    ) -> crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_glyphpairadjustmentrecord::TMP_GlyphPairAdjustmentRecord> {
36        unsafe {
37            let __receiver = <TMP_FontFeatureTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            ::unity::il2cpp_call!((::unity::module_base()+0x33a20d0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_glyphpairadjustmentrecord::TMP_GlyphPairAdjustmentRecord> ;
39(TMP_FontFeatureTable)__receiver)
40        }
41    }
42    #[doc = "`set_glyphPairAdjustmentRecords(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_glyphpairadjustmentrecord::TMP_GlyphPairAdjustmentRecord>)` overload"]
43    fn set_glyph_pair_adjustment_records(
44        self,
45        value: impl ::core::convert::Into<
46            crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_glyphpairadjustmentrecord::TMP_GlyphPairAdjustmentRecord>,
47        >,
48    ) -> () {
49        unsafe {
50            let __receiver = <TMP_FontFeatureTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x33a20e0usize)as*mut u8,();
52(TMP_FontFeatureTable)__receiver,(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_glyphpairadjustmentrecord::TMP_GlyphPairAdjustmentRecord>)::core::convert::Into::into(value))
53        }
54    }
55    #[doc = "`.ctor()` overload"]
56    fn ctor(self) -> () {
57        unsafe {
58            let __receiver = <TMP_FontFeatureTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x33a20f0usize)as*mut u8,();
60(TMP_FontFeatureTable)__receiver)
61        }
62    }
63    #[doc = "`SortGlyphPairAdjustmentRecords()` overload"]
64    fn sort_glyph_pair_adjustment_records(self) -> () {
65        unsafe {
66            let __receiver = <TMP_FontFeatureTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x33a21d0usize)as*mut u8,();
68(TMP_FontFeatureTable)__receiver)
69        }
70    }
71}
72
73#[cfg(feature = "tm_pro-tmp_fontfeaturetable")]
74impl<__T: ITMP_FontFeatureTable> ITMP_FontFeatureTableMethods for __T {}
75
76#[cfg(feature = "tm_pro-tmp_fontfeaturetable")]
77impl TMP_FontFeatureTable {
78    pub fn get_glyph_pair_adjustment_records_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
80    }
81
82    pub fn set_glyph_pair_adjustment_records_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
84    }
85
86    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
87        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
88    }
89
90    pub fn sort_glyph_pair_adjustment_records_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
92    }
93}
94
95#[cfg(feature = "tm_pro-tmp_fontfeaturetable")]
96impl TMP_FontFeatureTable {
97    #[doc = "`.ctor()` — no args"]
98    pub fn new() -> Self {
99        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
100            panic!(
101                "{}
102::{}
103 failed to instantiate",
104                ::core::stringify!(TMP_FontFeatureTable),
105                ::core::stringify!(new),
106            )
107        });
108        <Self as ITMP_FontFeatureTableMethods>::ctor(this);
109        this
110    }
111}
112
113#[cfg(feature = "tm_pro-tmp_fontfeaturetable")]
114#[doc(hidden)]
115pub mod prelude {
116    pub use super::{ITMP_FontFeatureTable, ITMP_FontFeatureTableMethods, TMP_FontFeatureTable};
117    pub use crate::system::object::IObject;
118    #[cfg(feature = "system-object")]
119    pub use crate::system::object::IObjectMethods;
120}