Skip to main content

engage/generated/tm_pro/
tmp_submeshui.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_submeshui-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16            ui::{
17                graphic::{Graphic, IGraphic},
18                maskablegraphic::{IMaskableGraphic, MaskableGraphic},
19            },
20        },
21    };
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_submeshui/TMP_SubMeshUI.md"))]
24    #[::unity::class(namespace = "TMPro", name = "TMP_SubMeshUI")]
25    #[parent(crate::unity_engine::ui::maskablegraphic::MaskableGraphic)]
26    pub struct TMP_SubMeshUI {
27        #[offset(208)]
28        #[rename(name = "m_fontAsset")]
29        pub m_font_asset: crate::tm_pro::tmp_fontasset::TMP_FontAsset,
30        #[offset(216)]
31        #[rename(name = "m_spriteAsset")]
32        pub m_sprite_asset: crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset,
33        #[offset(224)]
34        #[rename(name = "m_material")]
35        pub m_material: crate::unity_engine::material::Material,
36        #[offset(232)]
37        #[rename(name = "m_sharedMaterial")]
38        pub m_shared_material: crate::unity_engine::material::Material,
39        #[offset(240)]
40        #[rename(name = "m_fallbackMaterial")]
41        pub m_fallback_material: crate::unity_engine::material::Material,
42        #[offset(248)]
43        #[rename(name = "m_fallbackSourceMaterial")]
44        pub m_fallback_source_material: crate::unity_engine::material::Material,
45        #[offset(256)]
46        #[rename(name = "m_isDefaultMaterial")]
47        pub m_is_default_material: bool,
48        #[offset(260)]
49        #[rename(name = "m_padding")]
50        pub m_padding: f32,
51        #[offset(264)]
52        #[rename(name = "m_mesh")]
53        pub m_mesh: crate::unity_engine::mesh::Mesh,
54        #[offset(272)]
55        #[rename(name = "m_TextComponent")]
56        pub m_text_component: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
57        #[offset(280)]
58        #[rename(name = "m_isRegisteredForEvents")]
59        pub m_is_registered_for_events: bool,
60        #[offset(281)]
61        #[rename(name = "m_materialDirty")]
62        pub m_material_dirty: bool,
63        #[offset(284)]
64        #[rename(name = "m_materialReferenceIndex")]
65        pub m_material_reference_index: i32,
66        #[offset(288)]
67        #[rename(name = "m_RootCanvasTransform")]
68        pub m_root_canvas_transform: crate::unity_engine::transform::Transform,
69    }
70}
71
72#[cfg(feature = "tm_pro-tmp_submeshui-types")]
73pub use __types::*;
74
75#[cfg(feature = "tm_pro-tmp_submeshui")]
76impl TMP_SubMeshUI {
77    #[doc = "`AddSubTextObject(crate::tm_pro::textmeshprougui::TextMeshProUGUI, crate::tm_pro::materialreference::MaterialReference)` overload"]
78    pub fn add_sub_text_object(
79        text_component: impl ::core::convert::Into<crate::tm_pro::textmeshprougui::TextMeshProUGUI>,
80        material_reference: impl ::core::convert::Into<crate::tm_pro::materialreference::MaterialReference>,
81    ) -> crate::tm_pro::tmp_submeshui::TMP_SubMeshUI {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x2830680usize)as*mut u8,crate::tm_pro::tmp_submeshui::TMP_SubMeshUI;
84(crate::tm_pro::textmeshprougui::TextMeshProUGUI)::core::convert::Into::into(text_component),(crate::tm_pro::materialreference::MaterialReference)::core::convert::Into::into(material_reference))
85        }
86    }
87}
88
89#[cfg(feature = "tm_pro-tmp_submeshui")]
90pub trait ITMP_SubMeshUIMethods: ITMP_SubMeshUI {
91    #[doc = "`get_fontAsset()` overload"]
92    fn get_font_asset(self) -> crate::tm_pro::tmp_fontasset::TMP_FontAsset {
93        unsafe {
94            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            ::unity::il2cpp_call!((::unity::module_base()+0x282fcb0usize)as*mut u8,crate::tm_pro::tmp_fontasset::TMP_FontAsset;
96(TMP_SubMeshUI)__receiver)
97        }
98    }
99    #[doc = "`set_fontAsset(crate::tm_pro::tmp_fontasset::TMP_FontAsset)` overload"]
100    fn set_font_asset(self, value: impl ::core::convert::Into<crate::tm_pro::tmp_fontasset::TMP_FontAsset>) -> () {
101        unsafe {
102            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            ::unity::il2cpp_call!((::unity::module_base()+0x282fcc0usize)as*mut u8,();
104(TMP_SubMeshUI)__receiver,(crate::tm_pro::tmp_fontasset::TMP_FontAsset)::core::convert::Into::into(value))
105        }
106    }
107    #[doc = "`get_spriteAsset()` overload"]
108    fn get_sprite_asset(self) -> crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset {
109        unsafe {
110            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x282fcd0usize)as*mut u8,crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset;
112(TMP_SubMeshUI)__receiver)
113        }
114    }
115    #[doc = "`set_spriteAsset(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset)` overload"]
116    fn set_sprite_asset(self, value: impl ::core::convert::Into<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>) -> () {
117        unsafe {
118            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            ::unity::il2cpp_call!((::unity::module_base()+0x282fce0usize)as*mut u8,();
120(TMP_SubMeshUI)__receiver,(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset)::core::convert::Into::into(value))
121        }
122    }
123    #[doc = "`get_mainTexture()` overload"]
124    fn get_main_texture(self) -> crate::unity_engine::texture::Texture {
125        unsafe {
126            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            {
128                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
129                let __vi = *__vt.get(35usize).unwrap_or_else(|| {
130                    panic!(
131                        "unity: virtual slot {}
132 out of range (vtable len {}
133) on the runtime class behind {}
134 (method `{}
135`)",
136                        35usize,
137                        __vt.len(),
138                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
139                        "get_mainTexture",
140                    )
141                });
142                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> crate::unity_engine::texture::Texture =
143                    ::core::mem::transmute(__vi.method_ptr);
144                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
145                __inner(__receiver, __mi)
146            }
147        }
148    }
149    #[doc = "`get_material()` overload"]
150    fn get_material(self) -> crate::unity_engine::material::Material {
151        unsafe {
152            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            {
154                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
155                let __vi = *__vt.get(32usize).unwrap_or_else(|| {
156                    panic!(
157                        "unity: virtual slot {}
158 out of range (vtable len {}
159) on the runtime class behind {}
160 (method `{}
161`)",
162                        32usize,
163                        __vt.len(),
164                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
165                        "get_material",
166                    )
167                });
168                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
169                    ::core::mem::transmute(__vi.method_ptr);
170                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
171                __inner(__receiver, __mi)
172            }
173        }
174    }
175    #[doc = "`set_material(crate::unity_engine::material::Material)` overload"]
176    fn set_material(self, value: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> () {
177        unsafe {
178            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            {
180                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
181                let __vi = *__vt.get(33usize).unwrap_or_else(|| {
182                    panic!(
183                        "unity: virtual slot {}
184 out of range (vtable len {}
185) on the runtime class behind {}
186 (method `{}
187`)",
188                        33usize,
189                        __vt.len(),
190                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
191                        "set_material",
192                    )
193                });
194                let __inner: extern "C" fn(TMP_SubMeshUI, crate::unity_engine::material::Material, ::unity::OptionalMethod) -> () =
195                    ::core::mem::transmute(__vi.method_ptr);
196                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
197                __inner(__receiver, ::core::convert::Into::into(value), __mi)
198            }
199        }
200    }
201    #[doc = "`get_sharedMaterial()` overload"]
202    fn get_shared_material(self) -> crate::unity_engine::material::Material {
203        unsafe {
204            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205            ::unity::il2cpp_call!((::unity::module_base()+0x2830170usize)as*mut u8,crate::unity_engine::material::Material;
206(TMP_SubMeshUI)__receiver)
207        }
208    }
209    #[doc = "`set_sharedMaterial(crate::unity_engine::material::Material)` overload"]
210    fn set_shared_material(self, value: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> () {
211        unsafe {
212            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            ::unity::il2cpp_call!((::unity::module_base()+0x2830180usize)as*mut u8,();
214(TMP_SubMeshUI)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(value))
215        }
216    }
217    #[doc = "`get_fallbackMaterial()` overload"]
218    fn get_fallback_material(self) -> crate::unity_engine::material::Material {
219        unsafe {
220            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221            ::unity::il2cpp_call!((::unity::module_base()+0x2830260usize)as*mut u8,crate::unity_engine::material::Material;
222(TMP_SubMeshUI)__receiver)
223        }
224    }
225    #[doc = "`set_fallbackMaterial(crate::unity_engine::material::Material)` overload"]
226    fn set_fallback_material(self, value: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> () {
227        unsafe {
228            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229            ::unity::il2cpp_call!((::unity::module_base()+0x2830270usize)as*mut u8,();
230(TMP_SubMeshUI)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(value))
231        }
232    }
233    #[doc = "`get_fallbackSourceMaterial()` overload"]
234    fn get_fallback_source_material(self) -> crate::unity_engine::material::Material {
235        unsafe {
236            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237            ::unity::il2cpp_call!((::unity::module_base()+0x2830400usize)as*mut u8,crate::unity_engine::material::Material;
238(TMP_SubMeshUI)__receiver)
239        }
240    }
241    #[doc = "`set_fallbackSourceMaterial(crate::unity_engine::material::Material)` overload"]
242    fn set_fallback_source_material(self, value: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> () {
243        unsafe {
244            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            ::unity::il2cpp_call!((::unity::module_base()+0x2830410usize)as*mut u8,();
246(TMP_SubMeshUI)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(value))
247        }
248    }
249    #[doc = "`get_materialForRendering()` overload"]
250    fn get_material_for_rendering(self) -> crate::unity_engine::material::Material {
251        unsafe {
252            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253            {
254                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
255                let __vi = *__vt.get(34usize).unwrap_or_else(|| {
256                    panic!(
257                        "unity: virtual slot {}
258 out of range (vtable len {}
259) on the runtime class behind {}
260 (method `{}
261`)",
262                        34usize,
263                        __vt.len(),
264                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
265                        "get_materialForRendering",
266                    )
267                });
268                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
269                    ::core::mem::transmute(__vi.method_ptr);
270                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
271                __inner(__receiver, __mi)
272            }
273        }
274    }
275    #[doc = "`get_isDefaultMaterial()` overload"]
276    fn get_is_default_material(self) -> bool {
277        unsafe {
278            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279            ::unity::il2cpp_call!((::unity::module_base()+0x28304a0usize)as*mut u8,bool;
280(TMP_SubMeshUI)__receiver)
281        }
282    }
283    #[doc = "`set_isDefaultMaterial(bool)` overload"]
284    fn set_is_default_material(self, value: impl ::core::convert::Into<bool>) -> () {
285        unsafe {
286            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287            ::unity::il2cpp_call!((::unity::module_base()+0x28304b0usize)as*mut u8,();
288(TMP_SubMeshUI)__receiver,(bool)::core::convert::Into::into(value))
289        }
290    }
291    #[doc = "`get_padding()` overload"]
292    fn get_padding(self) -> f32 {
293        unsafe {
294            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
295            ::unity::il2cpp_call!((::unity::module_base()+0x28304c0usize)as*mut u8,f32;
296(TMP_SubMeshUI)__receiver)
297        }
298    }
299    #[doc = "`set_padding(f32)` overload"]
300    fn set_padding(self, value: impl ::core::convert::Into<f32>) -> () {
301        unsafe {
302            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
303            ::unity::il2cpp_call!((::unity::module_base()+0x28304d0usize)as*mut u8,();
304(TMP_SubMeshUI)__receiver,(f32)::core::convert::Into::into(value))
305        }
306    }
307    #[doc = "`get_mesh()` overload"]
308    fn get_mesh(self) -> crate::unity_engine::mesh::Mesh {
309        unsafe {
310            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
311            ::unity::il2cpp_call!((::unity::module_base()+0x28304e0usize)as*mut u8,crate::unity_engine::mesh::Mesh;
312(TMP_SubMeshUI)__receiver)
313        }
314    }
315    #[doc = "`set_mesh(crate::unity_engine::mesh::Mesh)` overload"]
316    fn set_mesh(self, value: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
317        unsafe {
318            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
319            ::unity::il2cpp_call!((::unity::module_base()+0x28305b0usize)as*mut u8,();
320(TMP_SubMeshUI)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(value))
321        }
322    }
323    #[doc = "`get_textComponent()` overload"]
324    fn get_text_component(self) -> crate::tm_pro::tmp_text::TMP_Text {
325        unsafe {
326            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
327            ::unity::il2cpp_call!((::unity::module_base()+0x28305c0usize)as*mut u8,crate::tm_pro::tmp_text::TMP_Text;
328(TMP_SubMeshUI)__receiver)
329        }
330    }
331    #[doc = "`OnEnable()` overload"]
332    fn on_enable(self) -> () {
333        unsafe {
334            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
335            {
336                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
337                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
338                    panic!(
339                        "unity: virtual slot {}
340 out of range (vtable len {}
341) on the runtime class behind {}
342 (method `{}
343`)",
344                        5usize,
345                        __vt.len(),
346                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
347                        "OnEnable",
348                    )
349                });
350                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
351                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
352                __inner(__receiver, __mi)
353            }
354        }
355    }
356    #[doc = "`OnDisable()` overload"]
357    fn on_disable(self) -> () {
358        unsafe {
359            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
360            {
361                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
362                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
363                    panic!(
364                        "unity: virtual slot {}
365 out of range (vtable len {}
366) on the runtime class behind {}
367 (method `{}
368`)",
369                        7usize,
370                        __vt.len(),
371                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
372                        "OnDisable",
373                    )
374                });
375                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
376                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
377                __inner(__receiver, __mi)
378            }
379        }
380    }
381    #[doc = "`OnDestroy()` overload"]
382    fn on_destroy(self) -> () {
383        unsafe {
384            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
385            {
386                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
387                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
388                    panic!(
389                        "unity: virtual slot {}
390 out of range (vtable len {}
391) on the runtime class behind {}
392 (method `{}
393`)",
394                        8usize,
395                        __vt.len(),
396                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
397                        "OnDestroy",
398                    )
399                });
400                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
401                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
402                __inner(__receiver, __mi)
403            }
404        }
405    }
406    #[doc = "`OnTransformParentChanged()` overload"]
407    fn on_transform_parent_changed(self) -> () {
408        unsafe {
409            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
410            {
411                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
412                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
413                    panic!(
414                        "unity: virtual slot {}
415 out of range (vtable len {}
416) on the runtime class behind {}
417 (method `{}
418`)",
419                        12usize,
420                        __vt.len(),
421                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
422                        "OnTransformParentChanged",
423                    )
424                });
425                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
426                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
427                __inner(__receiver, __mi)
428            }
429        }
430    }
431    #[doc = "`GetModifiedMaterial(crate::unity_engine::material::Material)` overload"]
432    fn get_modified_material(
433        self,
434        base_material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
435    ) -> crate::unity_engine::material::Material {
436        unsafe {
437            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
438            {
439                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
440                let __vi = *__vt.get(58usize).unwrap_or_else(|| {
441                    panic!(
442                        "unity: virtual slot {}
443 out of range (vtable len {}
444) on the runtime class behind {}
445 (method `{}
446`)",
447                        58usize,
448                        __vt.len(),
449                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
450                        "GetModifiedMaterial",
451                    )
452                });
453                let __inner: extern "C" fn(
454                    TMP_SubMeshUI,
455                    crate::unity_engine::material::Material,
456                    ::unity::OptionalMethod,
457                ) -> crate::unity_engine::material::Material = ::core::mem::transmute(__vi.method_ptr);
458                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
459                __inner(__receiver, ::core::convert::Into::into(base_material), __mi)
460            }
461        }
462    }
463    #[doc = "`GetPaddingForMaterial()` overload"]
464    fn get_padding_for_material(self) -> f32 {
465        unsafe {
466            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
467            ::unity::il2cpp_call!((::unity::module_base()+0x28300e0usize)as*mut u8,f32;
468(TMP_SubMeshUI)__receiver)
469        }
470    }
471    #[doc = "`GetPaddingForMaterial(crate::unity_engine::material::Material)` overload"]
472    fn get_padding_for_material_2(self, mat: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> f32 {
473        unsafe {
474            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
475            ::unity::il2cpp_call!((::unity::module_base()+0x2831040usize)as*mut u8,f32;
476(TMP_SubMeshUI)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(mat))
477        }
478    }
479    #[doc = "`UpdateMeshPadding(bool, bool)` overload"]
480    fn update_mesh_padding(self, is_extra_padding: impl ::core::convert::Into<bool>, is_using_bold: impl ::core::convert::Into<bool>) -> () {
481        unsafe {
482            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
483            ::unity::il2cpp_call!((::unity::module_base()+0x28310d0usize)as*mut u8,();
484(TMP_SubMeshUI)__receiver,(bool)::core::convert::Into::into(is_extra_padding),(bool)::core::convert::Into::into(is_using_bold))
485        }
486    }
487    #[doc = "`SetAllDirty()` overload"]
488    fn set_all_dirty(self) -> () {
489        unsafe {
490            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
491            {
492                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
493                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
494                    panic!(
495                        "unity: virtual slot {}
496 out of range (vtable len {}
497) on the runtime class behind {}
498 (method `{}
499`)",
500                        26usize,
501                        __vt.len(),
502                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
503                        "SetAllDirty",
504                    )
505                });
506                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
507                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
508                __inner(__receiver, __mi)
509            }
510        }
511    }
512    #[doc = "`SetVerticesDirty()` overload"]
513    fn set_vertices_dirty(self) -> () {
514        unsafe {
515            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
516            {
517                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
518                let __vi = *__vt.get(28usize).unwrap_or_else(|| {
519                    panic!(
520                        "unity: virtual slot {}
521 out of range (vtable len {}
522) on the runtime class behind {}
523 (method `{}
524`)",
525                        28usize,
526                        __vt.len(),
527                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
528                        "SetVerticesDirty",
529                    )
530                });
531                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
532                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
533                __inner(__receiver, __mi)
534            }
535        }
536    }
537    #[doc = "`SetLayoutDirty()` overload"]
538    fn set_layout_dirty(self) -> () {
539        unsafe {
540            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
541            {
542                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
543                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
544                    panic!(
545                        "unity: virtual slot {}
546 out of range (vtable len {}
547) on the runtime class behind {}
548 (method `{}
549`)",
550                        27usize,
551                        __vt.len(),
552                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
553                        "SetLayoutDirty",
554                    )
555                });
556                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
557                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
558                __inner(__receiver, __mi)
559            }
560        }
561    }
562    #[doc = "`SetMaterialDirty()` overload"]
563    fn set_material_dirty(self) -> () {
564        unsafe {
565            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
566            {
567                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
568                let __vi = *__vt.get(29usize).unwrap_or_else(|| {
569                    panic!(
570                        "unity: virtual slot {}
571 out of range (vtable len {}
572) on the runtime class behind {}
573 (method `{}
574`)",
575                        29usize,
576                        __vt.len(),
577                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
578                        "SetMaterialDirty",
579                    )
580                });
581                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
582                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
583                __inner(__receiver, __mi)
584            }
585        }
586    }
587    #[doc = "`SetPivotDirty()` overload"]
588    fn set_pivot_dirty(self) -> () {
589        unsafe {
590            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
591            ::unity::il2cpp_call!((::unity::module_base()+0x28312a0usize)as*mut u8,();
592(TMP_SubMeshUI)__receiver)
593        }
594    }
595    #[doc = "`GetRootCanvasTransform()` overload"]
596    fn get_root_canvas_transform(self) -> crate::unity_engine::transform::Transform {
597        unsafe {
598            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
599            ::unity::il2cpp_call!((::unity::module_base()+0x2831300usize)as*mut u8,crate::unity_engine::transform::Transform;
600(TMP_SubMeshUI)__receiver)
601        }
602    }
603    #[doc = "`Cull(crate::unity_engine::rect::Rect, bool)` overload"]
604    fn cull(self, clip_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>, valid_rect: impl ::core::convert::Into<bool>) -> () {
605        unsafe {
606            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
607            {
608                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
609                let __vi = *__vt.get(59usize).unwrap_or_else(|| {
610                    panic!(
611                        "unity: virtual slot {}
612 out of range (vtable len {}
613) on the runtime class behind {}
614 (method `{}
615`)",
616                        59usize,
617                        __vt.len(),
618                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
619                        "Cull",
620                    )
621                });
622                let __inner: extern "C" fn(TMP_SubMeshUI, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
623                    ::core::mem::transmute(__vi.method_ptr);
624                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
625                __inner(
626                    __receiver,
627                    ::core::convert::Into::into(clip_rect),
628                    ::core::convert::Into::into(valid_rect),
629                    __mi,
630                )
631            }
632        }
633    }
634    #[doc = "`UpdateGeometry()` overload"]
635    fn update_geometry(self) -> () {
636        unsafe {
637            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
638            {
639                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
640                let __vi = *__vt.get(41usize).unwrap_or_else(|| {
641                    panic!(
642                        "unity: virtual slot {}
643 out of range (vtable len {}
644) on the runtime class behind {}
645 (method `{}
646`)",
647                        41usize,
648                        __vt.len(),
649                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
650                        "UpdateGeometry",
651                    )
652                });
653                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
654                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
655                __inner(__receiver, __mi)
656            }
657        }
658    }
659    #[doc = "`Rebuild(crate::unity_engine::ui::canvasupdate::CanvasUpdate)` overload"]
660    fn rebuild(self, update: impl ::core::convert::Into<crate::unity_engine::ui::canvasupdate::CanvasUpdate>) -> () {
661        unsafe {
662            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
663            {
664                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
665                let __vi = *__vt.get(37usize).unwrap_or_else(|| {
666                    panic!(
667                        "unity: virtual slot {}
668 out of range (vtable len {}
669) on the runtime class behind {}
670 (method `{}
671`)",
672                        37usize,
673                        __vt.len(),
674                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
675                        "Rebuild",
676                    )
677                });
678                let __inner: extern "C" fn(TMP_SubMeshUI, crate::unity_engine::ui::canvasupdate::CanvasUpdate, ::unity::OptionalMethod) -> () =
679                    ::core::mem::transmute(__vi.method_ptr);
680                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
681                __inner(__receiver, ::core::convert::Into::into(update), __mi)
682            }
683        }
684    }
685    #[doc = "`RefreshMaterial()` overload"]
686    fn refresh_material(self) -> () {
687        unsafe {
688            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
689            ::unity::il2cpp_call!((::unity::module_base()+0x2831420usize)as*mut u8,();
690(TMP_SubMeshUI)__receiver)
691        }
692    }
693    #[doc = "`UpdateMaterial()` overload"]
694    fn update_material(self) -> () {
695        unsafe {
696            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
697            {
698                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
699                let __vi = *__vt.get(40usize).unwrap_or_else(|| {
700                    panic!(
701                        "unity: virtual slot {}
702 out of range (vtable len {}
703) on the runtime class behind {}
704 (method `{}
705`)",
706                        40usize,
707                        __vt.len(),
708                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
709                        "UpdateMaterial",
710                    )
711                });
712                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
713                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
714                __inner(__receiver, __mi)
715            }
716        }
717    }
718    #[doc = "`RecalculateClipping()` overload"]
719    fn recalculate_clipping(self) -> () {
720        unsafe {
721            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
722            {
723                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
724                let __vi = *__vt.get(63usize).unwrap_or_else(|| {
725                    panic!(
726                        "unity: virtual slot {}
727 out of range (vtable len {}
728) on the runtime class behind {}
729 (method `{}
730`)",
731                        63usize,
732                        __vt.len(),
733                        <TMP_SubMeshUI as ::unity::ClassIdentity>::NAME,
734                        "RecalculateClipping",
735                    )
736                });
737                let __inner: extern "C" fn(TMP_SubMeshUI, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
738                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
739                __inner(__receiver, __mi)
740            }
741        }
742    }
743    #[doc = "`GetMaterial(crate::unity_engine::material::Material)` overload"]
744    fn get_material_2(self, mat: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> crate::unity_engine::material::Material {
745        unsafe {
746            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
747            ::unity::il2cpp_call!((::unity::module_base()+0x282fde0usize)as*mut u8,crate::unity_engine::material::Material;
748(TMP_SubMeshUI)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(mat))
749        }
750    }
751    #[doc = "`CreateMaterialInstance(crate::unity_engine::material::Material)` overload"]
752    fn create_material_instance(
753        self,
754        source: impl ::core::convert::Into<crate::unity_engine::material::Material>,
755    ) -> crate::unity_engine::material::Material {
756        unsafe {
757            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
758            ::unity::il2cpp_call!((::unity::module_base()+0x28315e0usize)as*mut u8,crate::unity_engine::material::Material;
759(TMP_SubMeshUI)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(source))
760        }
761    }
762    #[doc = "`.ctor()` overload"]
763    fn ctor(self) -> () {
764        unsafe {
765            let __receiver = <TMP_SubMeshUI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
766            ::unity::il2cpp_call!((::unity::module_base()+0x28316c0usize)as*mut u8,();
767(TMP_SubMeshUI)__receiver)
768        }
769    }
770}
771
772#[cfg(feature = "tm_pro-tmp_submeshui")]
773impl<__T: ITMP_SubMeshUI> ITMP_SubMeshUIMethods for __T {}
774
775#[cfg(feature = "tm_pro-tmp_submeshui")]
776impl TMP_SubMeshUI {
777    pub fn get_font_asset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
778        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
779    }
780
781    pub fn set_font_asset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
782        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
783    }
784
785    pub fn get_sprite_asset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
786        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
787    }
788
789    pub fn set_sprite_asset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
790        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
791    }
792
793    pub fn get_main_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
794        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
795    }
796
797    pub fn get_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
798        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
799    }
800
801    pub fn set_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
802        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
803    }
804
805    pub fn get_shared_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
806        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
807    }
808
809    pub fn set_shared_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
810        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
811    }
812
813    pub fn get_fallback_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
814        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
815    }
816
817    pub fn set_fallback_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
818        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
819    }
820
821    pub fn get_fallback_source_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
822        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
823    }
824
825    pub fn set_fallback_source_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
826        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
827    }
828
829    pub fn get_material_for_rendering_method_info() -> &'static ::unity::il2cpp::MethodInfo {
830        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
831    }
832
833    pub fn get_is_default_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
834        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
835    }
836
837    pub fn set_is_default_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
838        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
839    }
840
841    pub fn get_padding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
842        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
843    }
844
845    pub fn set_padding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
846        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
847    }
848
849    pub fn get_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
850        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
851    }
852
853    pub fn set_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
854        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
855    }
856
857    pub fn get_text_component_method_info() -> &'static ::unity::il2cpp::MethodInfo {
858        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
859    }
860
861    pub fn add_sub_text_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
862        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
863    }
864
865    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
866        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
867    }
868
869    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
870        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
871    }
872
873    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
874        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
875    }
876
877    pub fn on_transform_parent_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
878        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
879    }
880
881    pub fn get_modified_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
882        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
883    }
884
885    pub fn get_padding_for_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
886        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
887    }
888
889    pub fn get_padding_for_material_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
890        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
891    }
892
893    pub fn update_mesh_padding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
894        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
895    }
896
897    pub fn set_all_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
898        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
899    }
900
901    pub fn set_vertices_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
902        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
903    }
904
905    pub fn set_layout_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
906        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
907    }
908
909    pub fn set_material_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
910        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
911    }
912
913    pub fn set_pivot_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
914        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
915    }
916
917    pub fn get_root_canvas_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
918        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
919    }
920
921    pub fn cull_method_info() -> &'static ::unity::il2cpp::MethodInfo {
922        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
923    }
924
925    pub fn update_geometry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
926        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
927    }
928
929    pub fn rebuild_method_info() -> &'static ::unity::il2cpp::MethodInfo {
930        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
931    }
932
933    pub fn refresh_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
934        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
935    }
936
937    pub fn update_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
938        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
939    }
940
941    pub fn recalculate_clipping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
942        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
943    }
944
945    pub fn get_material_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
946        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
947    }
948
949    pub fn create_material_instance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
950        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
951    }
952
953    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
954        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
955    }
956}
957
958#[cfg(feature = "tm_pro-tmp_submeshui")]
959impl TMP_SubMeshUI {
960    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `get_mainTexture`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
961    pub unsafe fn get_main_texture(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::texture::Texture {
962        let __mi = Self::get_main_texture_method_info();
963        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::texture::Texture =
964            ::core::mem::transmute(__mi.method_ptr);
965        __inner(this.into(), ::core::option::Option::None)
966    }
967
968    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `get_material`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
969    pub unsafe fn get_material(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::material::Material {
970        let __mi = Self::get_material_method_info();
971        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
972            ::core::mem::transmute(__mi.method_ptr);
973        __inner(this.into(), ::core::option::Option::None)
974    }
975
976    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `set_material`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
977    pub unsafe fn set_material(this: impl ::core::convert::Into<::unity::IlInstance>, value: crate::unity_engine::material::Material) -> () {
978        let __mi = Self::set_material_method_info();
979        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::material::Material, ::unity::OptionalMethod) -> () =
980            ::core::mem::transmute(__mi.method_ptr);
981        __inner(this.into(), value, ::core::option::Option::None)
982    }
983
984    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `get_materialForRendering`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
985    pub unsafe fn get_material_for_rendering(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::material::Material {
986        let __mi = Self::get_material_for_rendering_method_info();
987        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
988            ::core::mem::transmute(__mi.method_ptr);
989        __inner(this.into(), ::core::option::Option::None)
990    }
991
992    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
993    pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
994        let __mi = Self::on_enable_method_info();
995        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
996        __inner(this.into(), ::core::option::Option::None)
997    }
998
999    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1000    pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1001        let __mi = Self::on_disable_method_info();
1002        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1003        __inner(this.into(), ::core::option::Option::None)
1004    }
1005
1006    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `OnDestroy`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1007    pub unsafe fn on_destroy(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1008        let __mi = Self::on_destroy_method_info();
1009        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1010        __inner(this.into(), ::core::option::Option::None)
1011    }
1012
1013    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `OnTransformParentChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1014    pub unsafe fn on_transform_parent_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1015        let __mi = Self::on_transform_parent_changed_method_info();
1016        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1017        __inner(this.into(), ::core::option::Option::None)
1018    }
1019
1020    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `GetModifiedMaterial`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1021    pub unsafe fn get_modified_material(
1022        this: impl ::core::convert::Into<::unity::IlInstance>,
1023        base_material: crate::unity_engine::material::Material,
1024    ) -> crate::unity_engine::material::Material {
1025        let __mi = Self::get_modified_material_method_info();
1026        let __inner: extern "C" fn(
1027            ::unity::IlInstance,
1028            crate::unity_engine::material::Material,
1029            ::unity::OptionalMethod,
1030        ) -> crate::unity_engine::material::Material = ::core::mem::transmute(__mi.method_ptr);
1031        __inner(this.into(), base_material, ::core::option::Option::None)
1032    }
1033
1034    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `SetAllDirty`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1035    pub unsafe fn set_all_dirty(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1036        let __mi = Self::set_all_dirty_method_info();
1037        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1038        __inner(this.into(), ::core::option::Option::None)
1039    }
1040
1041    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `SetVerticesDirty`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1042    pub unsafe fn set_vertices_dirty(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1043        let __mi = Self::set_vertices_dirty_method_info();
1044        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1045        __inner(this.into(), ::core::option::Option::None)
1046    }
1047
1048    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `SetLayoutDirty`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1049    pub unsafe fn set_layout_dirty(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1050        let __mi = Self::set_layout_dirty_method_info();
1051        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1052        __inner(this.into(), ::core::option::Option::None)
1053    }
1054
1055    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `SetMaterialDirty`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1056    pub unsafe fn set_material_dirty(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1057        let __mi = Self::set_material_dirty_method_info();
1058        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1059        __inner(this.into(), ::core::option::Option::None)
1060    }
1061
1062    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `Cull`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1063    pub unsafe fn cull(this: impl ::core::convert::Into<::unity::IlInstance>, clip_rect: crate::unity_engine::rect::Rect, valid_rect: bool) -> () {
1064        let __mi = Self::cull_method_info();
1065        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
1066            ::core::mem::transmute(__mi.method_ptr);
1067        __inner(this.into(), clip_rect, valid_rect, ::core::option::Option::None)
1068    }
1069
1070    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `UpdateGeometry`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1071    pub unsafe fn update_geometry(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1072        let __mi = Self::update_geometry_method_info();
1073        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1074        __inner(this.into(), ::core::option::Option::None)
1075    }
1076
1077    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `Rebuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1078    pub unsafe fn rebuild(this: impl ::core::convert::Into<::unity::IlInstance>, update: crate::unity_engine::ui::canvasupdate::CanvasUpdate) -> () {
1079        let __mi = Self::rebuild_method_info();
1080        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::ui::canvasupdate::CanvasUpdate, ::unity::OptionalMethod) -> () =
1081            ::core::mem::transmute(__mi.method_ptr);
1082        __inner(this.into(), update, ::core::option::Option::None)
1083    }
1084
1085    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `UpdateMaterial`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1086    pub unsafe fn update_material(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1087        let __mi = Self::update_material_method_info();
1088        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1089        __inner(this.into(), ::core::option::Option::None)
1090    }
1091
1092    #[doc = "Direct (non-virtual) call to `TMP_SubMeshUI`'s own `RecalculateClipping`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1093    pub unsafe fn recalculate_clipping(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1094        let __mi = Self::recalculate_clipping_method_info();
1095        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1096        __inner(this.into(), ::core::option::Option::None)
1097    }
1098}
1099
1100#[cfg(feature = "tm_pro-tmp_submeshui")]
1101impl TMP_SubMeshUI {
1102    #[doc = "`.ctor()` — no args"]
1103    pub fn new() -> Self {
1104        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1105            panic!(
1106                "{}
1107::{}
1108 failed to instantiate",
1109                ::core::stringify!(TMP_SubMeshUI),
1110                ::core::stringify!(new),
1111            )
1112        });
1113        <Self as ITMP_SubMeshUIMethods>::ctor(this);
1114        this
1115    }
1116}
1117
1118#[cfg(feature = "tm_pro-tmp_submeshui")]
1119#[doc(hidden)]
1120pub mod prelude {
1121    pub use super::{ITMP_SubMeshUI, ITMP_SubMeshUIMethods, TMP_SubMeshUI};
1122    #[cfg(feature = "system-object")]
1123    pub use crate::system::object::IObjectMethods;
1124    #[cfg(feature = "unity_engine-behaviour")]
1125    pub use crate::unity_engine::behaviour::IBehaviourMethods;
1126    #[cfg(feature = "unity_engine-component")]
1127    pub use crate::unity_engine::component::IComponentMethods;
1128    #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
1129    pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
1130    #[cfg(feature = "unity_engine-monobehaviour")]
1131    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
1132    #[cfg(feature = "unity_engine-object_2")]
1133    pub use crate::unity_engine::object_2::IObject_2Methods;
1134    #[cfg(feature = "unity_engine-ui-graphic")]
1135    pub use crate::unity_engine::ui::graphic::IGraphicMethods;
1136    #[cfg(feature = "unity_engine-ui-maskablegraphic")]
1137    pub use crate::unity_engine::ui::maskablegraphic::IMaskableGraphicMethods;
1138    pub use crate::{
1139        system::object::IObject,
1140        unity_engine::{
1141            behaviour::IBehaviour,
1142            component::IComponent,
1143            event_systems::uibehaviour::IUIBehaviour,
1144            monobehaviour::IMonoBehaviour,
1145            object_2::IObject_2,
1146            ui::{graphic::IGraphic, maskablegraphic::IMaskableGraphic},
1147        },
1148    };
1149}