1#[cfg(feature = "tm_pro-textcontainer-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 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/textcontainer/TextContainer.md"))]
20 #[::unity::class(namespace = "TMPro", name = "TextContainer")]
21 #[parent(crate::unity_engine::event_systems::uibehaviour::UIBehaviour)]
22 pub struct TextContainer {
23 #[offset(24)]
24 #[rename(name = "m_hasChanged")]
25 pub m_has_changed: bool,
26 #[offset(28)]
27 #[rename(name = "m_pivot")]
28 pub m_pivot: crate::unity_engine::vector2::Vector2,
29 #[offset(36)]
30 #[rename(name = "m_anchorPosition")]
31 pub m_anchor_position: crate::tm_pro::textcontaineranchors::TextContainerAnchors,
32 #[offset(40)]
33 #[rename(name = "m_rect")]
34 pub m_rect: crate::unity_engine::rect::Rect,
35 #[offset(56)]
36 #[rename(name = "m_isDefaultWidth")]
37 pub m_is_default_width: bool,
38 #[offset(57)]
39 #[rename(name = "m_isDefaultHeight")]
40 pub m_is_default_height: bool,
41 #[offset(58)]
42 #[rename(name = "m_isAutoFitting")]
43 pub m_is_auto_fitting: bool,
44 #[offset(64)]
45 #[rename(name = "m_corners")]
46 pub m_corners: ::unity::Array<crate::unity_engine::vector3::Vector3>,
47 #[offset(72)]
48 #[rename(name = "m_worldCorners")]
49 pub m_world_corners: ::unity::Array<crate::unity_engine::vector3::Vector3>,
50 #[offset(80)]
51 #[rename(name = "m_margins")]
52 pub m_margins: crate::unity_engine::vector4::Vector4,
53 #[offset(96)]
54 #[rename(name = "m_rectTransform")]
55 pub m_rect_transform: crate::unity_engine::recttransform::RectTransform,
56 #[static_field]
57 #[rename(name = "k_defaultSize")]
58 pub k_default_size: crate::unity_engine::vector2::Vector2,
59 #[offset(104)]
60 #[rename(name = "m_textMeshPro")]
61 pub m_text_mesh_pro: crate::tm_pro::textmeshpro::TextMeshPro,
62 }
63}
64
65#[cfg(feature = "tm_pro-textcontainer-types")]
66pub use __types::*;
67
68#[cfg(feature = "tm_pro-textcontainer")]
69impl TextContainer {
70 #[doc = "`.cctor()` overload"]
71 pub fn cctor() -> () {
72 unsafe {
73 ::unity::il2cpp_call!((::unity::module_base()+0x2e6aec0usize)as*mut u8,();
74 )
75 }
76 }
77}
78
79#[cfg(feature = "tm_pro-textcontainer")]
80pub trait ITextContainerMethods: ITextContainer {
81 #[doc = "`get_hasChanged()` overload"]
82 fn get_has_changed(self) -> bool {
83 unsafe {
84 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 ::unity::il2cpp_call!((::unity::module_base()+0x2e69dc0usize)as*mut u8,bool;
86(TextContainer)__receiver)
87 }
88 }
89 #[doc = "`set_hasChanged(bool)` overload"]
90 fn set_has_changed(self, value: impl ::core::convert::Into<bool>) -> () {
91 unsafe {
92 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 ::unity::il2cpp_call!((::unity::module_base()+0x2e69dd0usize)as*mut u8,();
94(TextContainer)__receiver,(bool)::core::convert::Into::into(value))
95 }
96 }
97 #[doc = "`get_pivot()` overload"]
98 fn get_pivot(self) -> crate::unity_engine::vector2::Vector2 {
99 unsafe {
100 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 ::unity::il2cpp_call!((::unity::module_base()+0x2e69de0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
102(TextContainer)__receiver)
103 }
104 }
105 #[doc = "`set_pivot(crate::unity_engine::vector2::Vector2)` overload"]
106 fn set_pivot(self, value: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
107 unsafe {
108 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x2e69df0usize)as*mut u8,();
110(TextContainer)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(value))
111 }
112 }
113 #[doc = "`get_anchorPosition()` overload"]
114 fn get_anchor_position(self) -> crate::tm_pro::textcontaineranchors::TextContainerAnchors {
115 unsafe {
116 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a2a0usize)as*mut u8,crate::tm_pro::textcontaineranchors::TextContainerAnchors;
118(TextContainer)__receiver)
119 }
120 }
121 #[doc = "`set_anchorPosition(crate::tm_pro::textcontaineranchors::TextContainerAnchors)` overload"]
122 fn set_anchor_position(self, value: impl ::core::convert::Into<crate::tm_pro::textcontaineranchors::TextContainerAnchors>) -> () {
123 unsafe {
124 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a2b0usize)as*mut u8,();
126(TextContainer)__receiver,(crate::tm_pro::textcontaineranchors::TextContainerAnchors)::core::convert::Into::into(value))
127 }
128 }
129 #[doc = "`get_rect()` overload"]
130 fn get_rect(self) -> crate::unity_engine::rect::Rect {
131 unsafe {
132 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a380usize)as*mut u8,crate::unity_engine::rect::Rect;
134(TextContainer)__receiver)
135 }
136 }
137 #[doc = "`set_rect(crate::unity_engine::rect::Rect)` overload"]
138 fn set_rect(self, value: impl ::core::convert::Into<crate::unity_engine::rect::Rect>) -> () {
139 unsafe {
140 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a390usize)as*mut u8,();
142(TextContainer)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(value))
143 }
144 }
145 #[doc = "`get_size()` overload"]
146 fn get_size(self) -> crate::unity_engine::vector2::Vector2 {
147 unsafe {
148 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a420usize)as*mut u8,crate::unity_engine::vector2::Vector2;
150(TextContainer)__receiver)
151 }
152 }
153 #[doc = "`set_size(crate::unity_engine::vector2::Vector2)` overload"]
154 fn set_size(self, value: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
155 unsafe {
156 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a470usize)as*mut u8,();
158(TextContainer)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(value))
159 }
160 }
161 #[doc = "`get_width()` overload"]
162 fn get_width(self) -> f32 {
163 unsafe {
164 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a5f0usize)as*mut u8,f32;
166(TextContainer)__receiver)
167 }
168 }
169 #[doc = "`set_width(f32)` overload"]
170 fn set_width(self, value: impl ::core::convert::Into<f32>) -> () {
171 unsafe {
172 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a600usize)as*mut u8,();
174(TextContainer)__receiver,(f32)::core::convert::Into::into(value))
175 }
176 }
177 #[doc = "`get_height()` overload"]
178 fn get_height(self) -> f32 {
179 unsafe {
180 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a6b0usize)as*mut u8,f32;
182(TextContainer)__receiver)
183 }
184 }
185 #[doc = "`set_height(f32)` overload"]
186 fn set_height(self, value: impl ::core::convert::Into<f32>) -> () {
187 unsafe {
188 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a6c0usize)as*mut u8,();
190(TextContainer)__receiver,(f32)::core::convert::Into::into(value))
191 }
192 }
193 #[doc = "`get_isDefaultWidth()` overload"]
194 fn get_is_default_width(self) -> bool {
195 unsafe {
196 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a770usize)as*mut u8,bool;
198(TextContainer)__receiver)
199 }
200 }
201 #[doc = "`get_isDefaultHeight()` overload"]
202 fn get_is_default_height(self) -> bool {
203 unsafe {
204 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a780usize)as*mut u8,bool;
206(TextContainer)__receiver)
207 }
208 }
209 #[doc = "`get_isAutoFitting()` overload"]
210 fn get_is_auto_fitting(self) -> bool {
211 unsafe {
212 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a790usize)as*mut u8,bool;
214(TextContainer)__receiver)
215 }
216 }
217 #[doc = "`set_isAutoFitting(bool)` overload"]
218 fn set_is_auto_fitting(self, value: impl ::core::convert::Into<bool>) -> () {
219 unsafe {
220 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a7a0usize)as*mut u8,();
222(TextContainer)__receiver,(bool)::core::convert::Into::into(value))
223 }
224 }
225 #[doc = "`get_corners()` overload"]
226 fn get_corners(self) -> ::unity::Array<crate::unity_engine::vector3::Vector3> {
227 unsafe {
228 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a7b0usize)as*mut u8, ::unity::Array<crate::unity_engine::vector3::Vector3> ;
230(TextContainer)__receiver)
231 }
232 }
233 #[doc = "`get_worldCorners()` overload"]
234 fn get_world_corners(self) -> ::unity::Array<crate::unity_engine::vector3::Vector3> {
235 unsafe {
236 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a7c0usize)as*mut u8, ::unity::Array<crate::unity_engine::vector3::Vector3> ;
238(TextContainer)__receiver)
239 }
240 }
241 #[doc = "`get_margins()` overload"]
242 fn get_margins(self) -> crate::unity_engine::vector4::Vector4 {
243 unsafe {
244 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a7d0usize)as*mut u8,crate::unity_engine::vector4::Vector4;
246(TextContainer)__receiver)
247 }
248 }
249 #[doc = "`set_margins(crate::unity_engine::vector4::Vector4)` overload"]
250 fn set_margins(self, value: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>) -> () {
251 unsafe {
252 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a7e0usize)as*mut u8,();
254(TextContainer)__receiver,(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(value))
255 }
256 }
257 #[doc = "`get_rectTransform()` overload"]
258 fn get_rect_transform(self) -> crate::unity_engine::recttransform::RectTransform {
259 unsafe {
260 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a850usize)as*mut u8,crate::unity_engine::recttransform::RectTransform;
262(TextContainer)__receiver)
263 }
264 }
265 #[doc = "`get_textMeshPro()` overload"]
266 fn get_text_mesh_pro(self) -> crate::tm_pro::textmeshpro::TextMeshPro {
267 unsafe {
268 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a910usize)as*mut u8,crate::tm_pro::textmeshpro::TextMeshPro;
270(TextContainer)__receiver)
271 }
272 }
273 #[doc = "`Awake()` overload"]
274 fn awake(self) -> () {
275 unsafe {
276 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277 {
278 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
279 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
280 panic!(
281 "unity: virtual slot {}
282 out of range (vtable len {}
283) on the runtime class behind {}
284 (method `{}
285`)",
286 4usize,
287 __vt.len(),
288 <TextContainer as ::unity::ClassIdentity>::NAME,
289 "Awake",
290 )
291 });
292 let __inner: extern "C" fn(TextContainer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
293 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
294 __inner(__receiver, __mi)
295 }
296 }
297 }
298 #[doc = "`OnEnable()` overload"]
299 fn on_enable(self) -> () {
300 unsafe {
301 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
302 {
303 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
304 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
305 panic!(
306 "unity: virtual slot {}
307 out of range (vtable len {}
308) on the runtime class behind {}
309 (method `{}
310`)",
311 5usize,
312 __vt.len(),
313 <TextContainer as ::unity::ClassIdentity>::NAME,
314 "OnEnable",
315 )
316 });
317 let __inner: extern "C" fn(TextContainer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
318 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
319 __inner(__receiver, __mi)
320 }
321 }
322 }
323 #[doc = "`OnDisable()` overload"]
324 fn on_disable(self) -> () {
325 unsafe {
326 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
327 {
328 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
329 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
330 panic!(
331 "unity: virtual slot {}
332 out of range (vtable len {}
333) on the runtime class behind {}
334 (method `{}
335`)",
336 7usize,
337 __vt.len(),
338 <TextContainer as ::unity::ClassIdentity>::NAME,
339 "OnDisable",
340 )
341 });
342 let __inner: extern "C" fn(TextContainer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
343 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
344 __inner(__receiver, __mi)
345 }
346 }
347 }
348 #[doc = "`OnContainerChanged()` overload"]
349 fn on_container_changed(self) -> () {
350 unsafe {
351 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
352 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a150usize)as*mut u8,();
353(TextContainer)__receiver)
354 }
355 }
356 #[doc = "`OnRectTransformDimensionsChange()` overload"]
357 fn on_rect_transform_dimensions_change(self) -> () {
358 unsafe {
359 let __receiver = <TextContainer 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(10usize).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 10usize,
370 __vt.len(),
371 <TextContainer as ::unity::ClassIdentity>::NAME,
372 "OnRectTransformDimensionsChange",
373 )
374 });
375 let __inner: extern "C" fn(TextContainer, ::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 = "`SetRect(crate::unity_engine::vector2::Vector2)` overload"]
382 fn set_rect_2(self, size: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
383 unsafe {
384 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
385 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a560usize)as*mut u8,();
386(TextContainer)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(size))
387 }
388 }
389 #[doc = "`UpdateCorners()` overload"]
390 fn update_corners(self) -> () {
391 unsafe {
392 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
393 ::unity::il2cpp_call!((::unity::module_base()+0x2e6aac0usize)as*mut u8,();
394(TextContainer)__receiver)
395 }
396 }
397 #[doc = "`GetPivot(crate::tm_pro::textcontaineranchors::TextContainerAnchors)` overload"]
398 fn get_pivot_2(
399 self,
400 anchor: impl ::core::convert::Into<crate::tm_pro::textcontaineranchors::TextContainerAnchors>,
401 ) -> crate::unity_engine::vector2::Vector2 {
402 unsafe {
403 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
404 ::unity::il2cpp_call!((::unity::module_base()+0x2e6a330usize)as*mut u8,crate::unity_engine::vector2::Vector2;
405(TextContainer)__receiver,(crate::tm_pro::textcontaineranchors::TextContainerAnchors)::core::convert::Into::into(anchor))
406 }
407 }
408 #[doc = "`GetAnchorPosition(crate::unity_engine::vector2::Vector2)` overload"]
409 fn get_anchor_position_2(
410 self,
411 pivot: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
412 ) -> crate::tm_pro::textcontaineranchors::TextContainerAnchors {
413 unsafe {
414 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
415 ::unity::il2cpp_call!((::unity::module_base()+0x2e69ff0usize)as*mut u8,crate::tm_pro::textcontaineranchors::TextContainerAnchors;
416(TextContainer)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(pivot))
417 }
418 }
419 #[doc = "`.ctor()` overload"]
420 fn ctor(self) -> () {
421 unsafe {
422 let __receiver = <TextContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
423 ::unity::il2cpp_call!((::unity::module_base()+0x2e6ae20usize)as*mut u8,();
424(TextContainer)__receiver)
425 }
426 }
427}
428
429#[cfg(feature = "tm_pro-textcontainer")]
430impl<__T: ITextContainer> ITextContainerMethods for __T {}
431
432#[cfg(feature = "tm_pro-textcontainer")]
433impl TextContainer {
434 pub fn get_has_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
435 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
436 }
437
438 pub fn set_has_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
439 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
440 }
441
442 pub fn get_pivot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
443 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
444 }
445
446 pub fn set_pivot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
447 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
448 }
449
450 pub fn get_anchor_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
451 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
452 }
453
454 pub fn set_anchor_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
456 }
457
458 pub fn get_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
460 }
461
462 pub fn set_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
464 }
465
466 pub fn get_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
468 }
469
470 pub fn set_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
471 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
472 }
473
474 pub fn get_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
475 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
476 }
477
478 pub fn set_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
479 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
480 }
481
482 pub fn get_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
483 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
484 }
485
486 pub fn set_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
488 }
489
490 pub fn get_is_default_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
491 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
492 }
493
494 pub fn get_is_default_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
495 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
496 }
497
498 pub fn get_is_auto_fitting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
499 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
500 }
501
502 pub fn set_is_auto_fitting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
503 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
504 }
505
506 pub fn get_corners_method_info() -> &'static ::unity::il2cpp::MethodInfo {
507 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
508 }
509
510 pub fn get_world_corners_method_info() -> &'static ::unity::il2cpp::MethodInfo {
511 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
512 }
513
514 pub fn get_margins_method_info() -> &'static ::unity::il2cpp::MethodInfo {
515 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
516 }
517
518 pub fn set_margins_method_info() -> &'static ::unity::il2cpp::MethodInfo {
519 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
520 }
521
522 pub fn get_rect_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
523 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
524 }
525
526 pub fn get_text_mesh_pro_method_info() -> &'static ::unity::il2cpp::MethodInfo {
527 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
528 }
529
530 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
531 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
532 }
533
534 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
535 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
536 }
537
538 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
539 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
540 }
541
542 pub fn on_container_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
543 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
544 }
545
546 pub fn on_rect_transform_dimensions_change_method_info() -> &'static ::unity::il2cpp::MethodInfo {
547 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
548 }
549
550 pub fn set_rect_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
551 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
552 }
553
554 pub fn update_corners_method_info() -> &'static ::unity::il2cpp::MethodInfo {
555 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
556 }
557
558 pub fn get_pivot_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
559 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
560 }
561
562 pub fn get_anchor_position_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
563 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
564 }
565
566 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
567 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
568 }
569
570 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
571 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
572 }
573}
574
575#[cfg(feature = "tm_pro-textcontainer")]
576impl TextContainer {
577 #[doc = "Direct (non-virtual) call to `TextContainer`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
578 pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
579 let __mi = Self::awake_method_info();
580 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
581 __inner(this.into(), ::core::option::Option::None)
582 }
583
584 #[doc = "Direct (non-virtual) call to `TextContainer`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
585 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
586 let __mi = Self::on_enable_method_info();
587 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
588 __inner(this.into(), ::core::option::Option::None)
589 }
590
591 #[doc = "Direct (non-virtual) call to `TextContainer`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
592 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
593 let __mi = Self::on_disable_method_info();
594 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
595 __inner(this.into(), ::core::option::Option::None)
596 }
597
598 #[doc = "Direct (non-virtual) call to `TextContainer`'s own `OnRectTransformDimensionsChange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
599 pub unsafe fn on_rect_transform_dimensions_change(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
600 let __mi = Self::on_rect_transform_dimensions_change_method_info();
601 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
602 __inner(this.into(), ::core::option::Option::None)
603 }
604}
605
606#[cfg(feature = "tm_pro-textcontainer")]
607impl TextContainer {
608 #[doc = "`.ctor()` — no args"]
609 pub fn new() -> Self {
610 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
611 panic!(
612 "{}
613::{}
614 failed to instantiate",
615 ::core::stringify!(TextContainer),
616 ::core::stringify!(new),
617 )
618 });
619 <Self as ITextContainerMethods>::ctor(this);
620 this
621 }
622}
623
624#[cfg(feature = "tm_pro-textcontainer")]
625#[doc(hidden)]
626pub mod prelude {
627 pub use super::{ITextContainer, ITextContainerMethods, TextContainer};
628 #[cfg(feature = "system-object")]
629 pub use crate::system::object::IObjectMethods;
630 #[cfg(feature = "unity_engine-behaviour")]
631 pub use crate::unity_engine::behaviour::IBehaviourMethods;
632 #[cfg(feature = "unity_engine-component")]
633 pub use crate::unity_engine::component::IComponentMethods;
634 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
635 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
636 #[cfg(feature = "unity_engine-monobehaviour")]
637 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
638 #[cfg(feature = "unity_engine-object_2")]
639 pub use crate::unity_engine::object_2::IObject_2Methods;
640 pub use crate::{
641 system::object::IObject,
642 unity_engine::{
643 behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
644 object_2::IObject_2,
645 },
646 };
647}