engage/generated/tm_pro/
tmp_style.rs1#[cfg(feature = "tm_pro-tmp_style-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_style/TMP_Style.md"))]
11 #[::unity::class(namespace = "TMPro", name = "TMP_Style")]
12 #[parent(crate::system::object::Object)]
13 pub struct TMP_Style {
14 #[static_field]
15 #[rename(name = "k_NormalStyle")]
16 pub k_normal_style: crate::tm_pro::tmp_style::TMP_Style,
17 #[offset(16)]
18 #[rename(name = "m_Name")]
19 pub m_name: ::unity::Il2CppString,
20 #[offset(24)]
21 #[rename(name = "m_HashCode")]
22 pub m_hash_code: i32,
23 #[offset(32)]
24 #[rename(name = "m_OpeningDefinition")]
25 pub m_opening_definition: ::unity::Il2CppString,
26 #[offset(40)]
27 #[rename(name = "m_ClosingDefinition")]
28 pub m_closing_definition: ::unity::Il2CppString,
29 #[offset(48)]
30 #[rename(name = "m_OpeningTagArray")]
31 pub m_opening_tag_array: ::unity::Array<i32>,
32 #[offset(56)]
33 #[rename(name = "m_ClosingTagArray")]
34 pub m_closing_tag_array: ::unity::Array<i32>,
35 #[offset(64)]
36 #[rename(name = "m_OpeningTagUnicodeArray")]
37 pub m_opening_tag_unicode_array: ::unity::Array<u32>,
38 #[offset(72)]
39 #[rename(name = "m_ClosingTagUnicodeArray")]
40 pub m_closing_tag_unicode_array: ::unity::Array<u32>,
41 }
42}
43
44#[cfg(feature = "tm_pro-tmp_style-types")]
45pub use __types::*;
46
47#[cfg(feature = "tm_pro-tmp_style")]
48impl TMP_Style {
49 #[doc = "`get_NormalStyle()` overload"]
50 pub fn get_normal_style() -> crate::tm_pro::tmp_style::TMP_Style {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x282dcb0usize)as*mut u8,crate::tm_pro::tmp_style::TMP_Style;
53 )
54 }
55 }
56}
57
58#[cfg(feature = "tm_pro-tmp_style")]
59pub trait ITMP_StyleMethods: ITMP_Style {
60 #[doc = "`get_name()` overload"]
61 fn get_name(self) -> ::unity::Il2CppString {
62 unsafe {
63 let __receiver = <TMP_Style as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x282de50usize)as*mut u8, ::unity::Il2CppString;
65(TMP_Style)__receiver)
66 }
67 }
68 #[doc = "`set_name(::unity::Il2CppString)` overload"]
69 fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
70 unsafe {
71 let __receiver = <TMP_Style as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!((::unity::module_base()+0x282de60usize)as*mut u8,();
73(TMP_Style)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
74 }
75 }
76 #[doc = "`get_hashCode()` overload"]
77 fn get_hash_code(self) -> i32 {
78 unsafe {
79 let __receiver = <TMP_Style as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x282deb0usize)as*mut u8,i32;
81(TMP_Style)__receiver)
82 }
83 }
84 #[doc = "`set_hashCode(i32)` overload"]
85 fn set_hash_code(self, value: impl ::core::convert::Into<i32>) -> () {
86 unsafe {
87 let __receiver = <TMP_Style as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x282dec0usize)as*mut u8,();
89(TMP_Style)__receiver,(i32)::core::convert::Into::into(value))
90 }
91 }
92 #[doc = "`get_styleOpeningDefinition()` overload"]
93 fn get_style_opening_definition(self) -> ::unity::Il2CppString {
94 unsafe {
95 let __receiver = <TMP_Style as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x282dee0usize)as*mut u8, ::unity::Il2CppString;
97(TMP_Style)__receiver)
98 }
99 }
100 #[doc = "`get_styleClosingDefinition()` overload"]
101 fn get_style_closing_definition(self) -> ::unity::Il2CppString {
102 unsafe {
103 let __receiver = <TMP_Style as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 ::unity::il2cpp_call!((::unity::module_base()+0x282def0usize)as*mut u8, ::unity::Il2CppString;
105(TMP_Style)__receiver)
106 }
107 }
108 #[doc = "`get_styleOpeningTagArray()` overload"]
109 fn get_style_opening_tag_array(self) -> ::unity::Array<i32> {
110 unsafe {
111 let __receiver = <TMP_Style as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x282df00usize)as*mut u8, ::unity::Array<i32> ;
113(TMP_Style)__receiver)
114 }
115 }
116 #[doc = "`get_styleClosingTagArray()` overload"]
117 fn get_style_closing_tag_array(self) -> ::unity::Array<i32> {
118 unsafe {
119 let __receiver = <TMP_Style as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x282df10usize)as*mut u8, ::unity::Array<i32> ;
121(TMP_Style)__receiver)
122 }
123 }
124 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
125 fn ctor(
126 self,
127 style_name: impl ::core::convert::Into<::unity::Il2CppString>,
128 style_opening_definition: impl ::core::convert::Into<::unity::Il2CppString>,
129 style_closing_definition: impl ::core::convert::Into<::unity::Il2CppString>,
130 ) -> () {
131 unsafe {
132 let __receiver = <TMP_Style as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x282dd80usize)as*mut u8,();
134(TMP_Style)__receiver,(::unity::Il2CppString)::core::convert::Into::into(style_name),(::unity::Il2CppString)::core::convert::Into::into(style_opening_definition),(::unity::Il2CppString)::core::convert::Into::into(style_closing_definition))
135 }
136 }
137 #[doc = "`RefreshStyle()` overload"]
138 fn refresh_style(self) -> () {
139 unsafe {
140 let __receiver = <TMP_Style as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x282df20usize)as*mut u8,();
142(TMP_Style)__receiver)
143 }
144 }
145}
146
147#[cfg(feature = "tm_pro-tmp_style")]
148impl<__T: ITMP_Style> ITMP_StyleMethods for __T {}
149
150#[cfg(feature = "tm_pro-tmp_style")]
151impl TMP_Style {
152 pub fn get_normal_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
154 }
155
156 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
158 }
159
160 pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
162 }
163
164 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
166 }
167
168 pub fn set_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
170 }
171
172 pub fn get_style_opening_definition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
174 }
175
176 pub fn get_style_closing_definition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
178 }
179
180 pub fn get_style_opening_tag_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
182 }
183
184 pub fn get_style_closing_tag_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
186 }
187
188 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
190 }
191
192 pub fn refresh_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
194 }
195}
196
197#[cfg(feature = "tm_pro-tmp_style")]
198impl TMP_Style {
199 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` — overload selector"]
200 pub fn new(
201 style_name: ::unity::Il2CppString,
202 style_opening_definition: ::unity::Il2CppString,
203 style_closing_definition: ::unity::Il2CppString,
204 ) -> Self {
205 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
206 panic!(
207 "{}
208::{}
209 failed to instantiate",
210 ::core::stringify!(TMP_Style),
211 ::core::stringify!(new),
212 )
213 });
214 <Self as ITMP_StyleMethods>::ctor(this, style_name, style_opening_definition, style_closing_definition);
215 this
216 }
217}
218
219#[cfg(feature = "tm_pro-tmp_style")]
220#[doc(hidden)]
221pub mod prelude {
222 pub use super::{ITMP_Style, ITMP_StyleMethods, TMP_Style};
223 pub use crate::system::object::IObject;
224 #[cfg(feature = "system-object")]
225 pub use crate::system::object::IObjectMethods;
226}