engage/generated/tm_pro/
kerningtable.rs1#[cfg(feature = "tm_pro-kerningtable-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/kerningtable/KerningTable.md"))]
11 #[::unity::class(namespace = "TMPro", name = "KerningTable")]
12 #[parent(crate::system::object::Object)]
13 pub struct KerningTable {
14 #[offset(16)]
15 #[rename(name = "kerningPairs")]
16 pub kerning_pairs: crate::system::collections::generic::list_1::List_1<crate::tm_pro::kerningpair::KerningPair>,
17 }
18}
19
20#[cfg(feature = "tm_pro-kerningtable-types")]
21pub use __types::*;
22
23#[cfg(feature = "tm_pro-kerningtable")]
24pub trait IKerningTableMethods: IKerningTable {
25 #[doc = "`.ctor()` overload"]
26 fn ctor(self) -> () {
27 unsafe {
28 let __receiver = <KerningTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c6e0usize)as*mut u8,();
30(KerningTable)__receiver)
31 }
32 }
33 #[doc = "`AddKerningPair()` overload"]
34 fn add_kerning_pair(self) -> () {
35 unsafe {
36 let __receiver = <KerningTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c770usize)as*mut u8,();
38(KerningTable)__receiver)
39 }
40 }
41 #[doc = "`AddKerningPair(u32, u32, f32)` overload"]
42 fn add_kerning_pair_2(
43 self,
44 first: impl ::core::convert::Into<u32>,
45 second: impl ::core::convert::Into<u32>,
46 offset: impl ::core::convert::Into<f32>,
47 ) -> i32 {
48 unsafe {
49 let __receiver = <KerningTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c8a0usize)as*mut u8,i32;
51(KerningTable)__receiver,(u32)::core::convert::Into::into(first),(u32)::core::convert::Into::into(second),(f32)::core::convert::Into::into(offset))
52 }
53 }
54 #[doc = "`AddGlyphPairAdjustmentRecord(u32, crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy, u32, crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)` overload"]
55 fn add_glyph_pair_adjustment_record(
56 self,
57 first: impl ::core::convert::Into<u32>,
58 first_adjustments: impl ::core::convert::Into<crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy>,
59 second: impl ::core::convert::Into<u32>,
60 second_adjustments: impl ::core::convert::Into<crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy>,
61 ) -> i32 {
62 unsafe {
63 let __receiver = <KerningTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x2d8ca30usize)as*mut u8,i32;
65(KerningTable)__receiver,(u32)::core::convert::Into::into(first),(crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)::core::convert::Into::into(first_adjustments),(u32)::core::convert::Into::into(second),(crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)::core::convert::Into::into(second_adjustments))
66 }
67 }
68 #[doc = "`RemoveKerningPair(i32, i32)` overload"]
69 fn remove_kerning_pair(self, left: impl ::core::convert::Into<i32>, right: impl ::core::convert::Into<i32>) -> () {
70 unsafe {
71 let __receiver = <KerningTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!((::unity::module_base()+0x2d8cc00usize)as*mut u8,();
73(KerningTable)__receiver,(i32)::core::convert::Into::into(left),(i32)::core::convert::Into::into(right))
74 }
75 }
76 #[doc = "`RemoveKerningPair(i32)` overload"]
77 fn remove_kerning_pair_2(self, index: impl ::core::convert::Into<i32>) -> () {
78 unsafe {
79 let __receiver = <KerningTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x2d8cd50usize)as*mut u8,();
81(KerningTable)__receiver,(i32)::core::convert::Into::into(index))
82 }
83 }
84 #[doc = "`SortKerningPairs()` overload"]
85 fn sort_kerning_pairs(self) -> () {
86 unsafe {
87 let __receiver = <KerningTable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x2d8cdb0usize)as*mut u8,();
89(KerningTable)__receiver)
90 }
91 }
92}
93
94#[cfg(feature = "tm_pro-kerningtable")]
95impl<__T: IKerningTable> IKerningTableMethods for __T {}
96
97#[cfg(feature = "tm_pro-kerningtable")]
98impl KerningTable {
99 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
101 }
102
103 pub fn add_kerning_pair_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
105 }
106
107 pub fn add_kerning_pair_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
109 }
110
111 pub fn add_glyph_pair_adjustment_record_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
113 }
114
115 pub fn remove_kerning_pair_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
117 }
118
119 pub fn remove_kerning_pair_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
121 }
122
123 pub fn sort_kerning_pairs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
125 }
126}
127
128#[cfg(feature = "tm_pro-kerningtable")]
129impl KerningTable {
130 #[doc = "`.ctor()` — no args"]
131 pub fn new() -> Self {
132 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
133 panic!(
134 "{}
135::{}
136 failed to instantiate",
137 ::core::stringify!(KerningTable),
138 ::core::stringify!(new),
139 )
140 });
141 <Self as IKerningTableMethods>::ctor(this);
142 this
143 }
144}
145
146#[cfg(feature = "tm_pro-kerningtable")]
147#[doc(hidden)]
148pub mod prelude {
149 pub use super::{IKerningTable, IKerningTableMethods, KerningTable};
150 pub use crate::system::object::IObject;
151 #[cfg(feature = "system-object")]
152 pub use crate::system::object::IObjectMethods;
153}