1#[cfg(feature = "unity_engine-ui-text-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/unity_engine/ui/text/Text.md"))]
24 #[::unity::class(namespace = "UnityEngine.UI", name = "Text")]
25 #[parent(crate::unity_engine::ui::maskablegraphic::MaskableGraphic)]
26 pub struct Text {
27 #[offset(208)]
28 #[rename(name = "m_FontData")]
29 pub m_font_data: crate::unity_engine::ui::fontdata::FontData,
30 #[offset(216)]
31 #[rename(name = "m_Text")]
32 pub m_text: ::unity::Il2CppString,
33 #[offset(224)]
34 #[rename(name = "m_TextCache")]
35 pub m_text_cache: crate::unity_engine::textgenerator::TextGenerator,
36 #[offset(232)]
37 #[rename(name = "m_TextCacheForLayout")]
38 pub m_text_cache_for_layout: crate::unity_engine::textgenerator::TextGenerator,
39 #[static_field]
40 #[rename(name = "s_DefaultText")]
41 pub s_default_text: crate::unity_engine::material::Material,
42 #[offset(240)]
43 #[rename(name = "m_DisableFontTextureRebuiltCallback")]
44 pub m_disable_font_texture_rebuilt_callback: bool,
45 #[offset(248)]
46 #[rename(name = "m_TempVerts")]
47 pub m_temp_verts: ::unity::Array<crate::unity_engine::uivertex::UIVertex>,
48 }
49}
50
51#[cfg(feature = "unity_engine-ui-text-types")]
52pub use __types::*;
53
54#[cfg(feature = "unity_engine-ui-text")]
55impl Text {
56 #[doc = "`GetTextAnchorPivot(crate::unity_engine::textanchor::TextAnchor)` overload"]
57 pub fn get_text_anchor_pivot(
58 anchor: impl ::core::convert::Into<crate::unity_engine::textanchor::TextAnchor>,
59 ) -> crate::unity_engine::vector2::Vector2 {
60 unsafe {
61 ::unity::il2cpp_call!((::unity::module_base()+0x3c06ec0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
62(crate::unity_engine::textanchor::TextAnchor)::core::convert::Into::into(anchor))
63 }
64 }
65
66 #[doc = "`.cctor()` overload"]
67 pub fn cctor() -> () {
68 unsafe {
69 ::unity::il2cpp_call!((::unity::module_base()+0x3c07c80usize)as*mut u8,();
70 )
71 }
72 }
73}
74
75#[cfg(feature = "unity_engine-ui-text")]
76pub trait ITextMethods: IText {
77 #[doc = "`.ctor()` overload"]
78 fn ctor(self) -> () {
79 unsafe {
80 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x3c05c90usize)as*mut u8,();
82(Text)__receiver)
83 }
84 }
85 #[doc = "`get_cachedTextGenerator()` overload"]
86 fn get_cached_text_generator(self) -> crate::unity_engine::textgenerator::TextGenerator {
87 unsafe {
88 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x3c05d50usize)as*mut u8,crate::unity_engine::textgenerator::TextGenerator;
90(Text)__receiver)
91 }
92 }
93 #[doc = "`get_cachedTextGeneratorForLayout()` overload"]
94 fn get_cached_text_generator_for_layout(self) -> crate::unity_engine::textgenerator::TextGenerator {
95 unsafe {
96 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x3c05df0usize)as*mut u8,crate::unity_engine::textgenerator::TextGenerator;
98(Text)__receiver)
99 }
100 }
101 #[doc = "`get_mainTexture()` overload"]
102 fn get_main_texture(self) -> crate::unity_engine::texture::Texture {
103 unsafe {
104 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105 {
106 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
107 let __vi = *__vt.get(35usize).unwrap_or_else(|| {
108 panic!(
109 "unity: virtual slot {}
110 out of range (vtable len {}
111) on the runtime class behind {}
112 (method `{}
113`)",
114 35usize,
115 __vt.len(),
116 <Text as ::unity::ClassIdentity>::NAME,
117 "get_mainTexture",
118 )
119 });
120 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> crate::unity_engine::texture::Texture =
121 ::core::mem::transmute(__vi.method_ptr);
122 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123 __inner(__receiver, __mi)
124 }
125 }
126 }
127 #[doc = "`FontTextureChanged()` overload"]
128 fn font_texture_changed(self) -> () {
129 unsafe {
130 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 ::unity::il2cpp_call!((::unity::module_base()+0x3c06050usize)as*mut u8,();
132(Text)__receiver)
133 }
134 }
135 #[doc = "`get_font()` overload"]
136 fn get_font(self) -> crate::unity_engine::font::Font {
137 unsafe {
138 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 ::unity::il2cpp_call!((::unity::module_base()+0x3c06040usize)as*mut u8,crate::unity_engine::font::Font;
140(Text)__receiver)
141 }
142 }
143 #[doc = "`set_font(crate::unity_engine::font::Font)` overload"]
144 fn set_font(self, value: impl ::core::convert::Into<crate::unity_engine::font::Font>) -> () {
145 unsafe {
146 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 ::unity::il2cpp_call!((::unity::module_base()+0x3c06200usize)as*mut u8,();
148(Text)__receiver,(crate::unity_engine::font::Font)::core::convert::Into::into(value))
149 }
150 }
151 #[doc = "`get_text()` overload"]
152 fn get_text(self) -> ::unity::Il2CppString {
153 unsafe {
154 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 {
156 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
157 let __vi = *__vt.get(74usize).unwrap_or_else(|| {
158 panic!(
159 "unity: virtual slot {}
160 out of range (vtable len {}
161) on the runtime class behind {}
162 (method `{}
163`)",
164 74usize,
165 __vt.len(),
166 <Text as ::unity::ClassIdentity>::NAME,
167 "get_text",
168 )
169 });
170 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
171 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
172 __inner(__receiver, __mi)
173 }
174 }
175 }
176 #[doc = "`set_text(::unity::Il2CppString)` overload"]
177 fn set_text(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
178 unsafe {
179 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 {
181 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
182 let __vi = *__vt.get(75usize).unwrap_or_else(|| {
183 panic!(
184 "unity: virtual slot {}
185 out of range (vtable len {}
186) on the runtime class behind {}
187 (method `{}
188`)",
189 75usize,
190 __vt.len(),
191 <Text as ::unity::ClassIdentity>::NAME,
192 "set_text",
193 )
194 });
195 let __inner: extern "C" fn(Text, ::unity::Il2CppString, ::unity::OptionalMethod) -> () = ::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_supportRichText()` overload"]
202 fn get_support_rich_text(self) -> bool {
203 unsafe {
204 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x3c06440usize)as*mut u8,bool;
206(Text)__receiver)
207 }
208 }
209 #[doc = "`set_supportRichText(bool)` overload"]
210 fn set_support_rich_text(self, value: impl ::core::convert::Into<bool>) -> () {
211 unsafe {
212 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x3c06450usize)as*mut u8,();
214(Text)__receiver,(bool)::core::convert::Into::into(value))
215 }
216 }
217 #[doc = "`get_resizeTextForBestFit()` overload"]
218 fn get_resize_text_for_best_fit(self) -> bool {
219 unsafe {
220 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x3c064c0usize)as*mut u8,bool;
222(Text)__receiver)
223 }
224 }
225 #[doc = "`set_resizeTextForBestFit(bool)` overload"]
226 fn set_resize_text_for_best_fit(self, value: impl ::core::convert::Into<bool>) -> () {
227 unsafe {
228 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x3c064d0usize)as*mut u8,();
230(Text)__receiver,(bool)::core::convert::Into::into(value))
231 }
232 }
233 #[doc = "`get_resizeTextMinSize()` overload"]
234 fn get_resize_text_min_size(self) -> i32 {
235 unsafe {
236 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x3c06540usize)as*mut u8,i32;
238(Text)__receiver)
239 }
240 }
241 #[doc = "`set_resizeTextMinSize(i32)` overload"]
242 fn set_resize_text_min_size(self, value: impl ::core::convert::Into<i32>) -> () {
243 unsafe {
244 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x3c06550usize)as*mut u8,();
246(Text)__receiver,(i32)::core::convert::Into::into(value))
247 }
248 }
249 #[doc = "`get_resizeTextMaxSize()` overload"]
250 fn get_resize_text_max_size(self) -> i32 {
251 unsafe {
252 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x3c065b0usize)as*mut u8,i32;
254(Text)__receiver)
255 }
256 }
257 #[doc = "`set_resizeTextMaxSize(i32)` overload"]
258 fn set_resize_text_max_size(self, value: impl ::core::convert::Into<i32>) -> () {
259 unsafe {
260 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x3c065c0usize)as*mut u8,();
262(Text)__receiver,(i32)::core::convert::Into::into(value))
263 }
264 }
265 #[doc = "`get_alignment()` overload"]
266 fn get_alignment(self) -> crate::unity_engine::textanchor::TextAnchor {
267 unsafe {
268 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269 ::unity::il2cpp_call!((::unity::module_base()+0x3c06620usize)as*mut u8,crate::unity_engine::textanchor::TextAnchor;
270(Text)__receiver)
271 }
272 }
273 #[doc = "`set_alignment(crate::unity_engine::textanchor::TextAnchor)` overload"]
274 fn set_alignment(self, value: impl ::core::convert::Into<crate::unity_engine::textanchor::TextAnchor>) -> () {
275 unsafe {
276 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277 ::unity::il2cpp_call!((::unity::module_base()+0x3c06630usize)as*mut u8,();
278(Text)__receiver,(crate::unity_engine::textanchor::TextAnchor)::core::convert::Into::into(value))
279 }
280 }
281 #[doc = "`get_alignByGeometry()` overload"]
282 fn get_align_by_geometry(self) -> bool {
283 unsafe {
284 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285 ::unity::il2cpp_call!((::unity::module_base()+0x3c06690usize)as*mut u8,bool;
286(Text)__receiver)
287 }
288 }
289 #[doc = "`set_alignByGeometry(bool)` overload"]
290 fn set_align_by_geometry(self, value: impl ::core::convert::Into<bool>) -> () {
291 unsafe {
292 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293 ::unity::il2cpp_call!((::unity::module_base()+0x3c066a0usize)as*mut u8,();
294(Text)__receiver,(bool)::core::convert::Into::into(value))
295 }
296 }
297 #[doc = "`get_fontSize()` overload"]
298 fn get_font_size(self) -> i32 {
299 unsafe {
300 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
301 ::unity::il2cpp_call!((::unity::module_base()+0x3c066e0usize)as*mut u8,i32;
302(Text)__receiver)
303 }
304 }
305 #[doc = "`set_fontSize(i32)` overload"]
306 fn set_font_size(self, value: impl ::core::convert::Into<i32>) -> () {
307 unsafe {
308 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
309 ::unity::il2cpp_call!((::unity::module_base()+0x3c066f0usize)as*mut u8,();
310(Text)__receiver,(i32)::core::convert::Into::into(value))
311 }
312 }
313 #[doc = "`get_horizontalOverflow()` overload"]
314 fn get_horizontal_overflow(self) -> crate::unity_engine::horizontalwrapmode::HorizontalWrapMode {
315 unsafe {
316 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
317 ::unity::il2cpp_call!((::unity::module_base()+0x3c06750usize)as*mut u8,crate::unity_engine::horizontalwrapmode::HorizontalWrapMode;
318(Text)__receiver)
319 }
320 }
321 #[doc = "`set_horizontalOverflow(crate::unity_engine::horizontalwrapmode::HorizontalWrapMode)` overload"]
322 fn set_horizontal_overflow(self, value: impl ::core::convert::Into<crate::unity_engine::horizontalwrapmode::HorizontalWrapMode>) -> () {
323 unsafe {
324 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
325 ::unity::il2cpp_call!((::unity::module_base()+0x3c06760usize)as*mut u8,();
326(Text)__receiver,(crate::unity_engine::horizontalwrapmode::HorizontalWrapMode)::core::convert::Into::into(value))
327 }
328 }
329 #[doc = "`get_verticalOverflow()` overload"]
330 fn get_vertical_overflow(self) -> crate::unity_engine::verticalwrapmode::VerticalWrapMode {
331 unsafe {
332 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333 ::unity::il2cpp_call!((::unity::module_base()+0x3c067c0usize)as*mut u8,crate::unity_engine::verticalwrapmode::VerticalWrapMode;
334(Text)__receiver)
335 }
336 }
337 #[doc = "`set_verticalOverflow(crate::unity_engine::verticalwrapmode::VerticalWrapMode)` overload"]
338 fn set_vertical_overflow(self, value: impl ::core::convert::Into<crate::unity_engine::verticalwrapmode::VerticalWrapMode>) -> () {
339 unsafe {
340 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
341 ::unity::il2cpp_call!((::unity::module_base()+0x3c067d0usize)as*mut u8,();
342(Text)__receiver,(crate::unity_engine::verticalwrapmode::VerticalWrapMode)::core::convert::Into::into(value))
343 }
344 }
345 #[doc = "`get_lineSpacing()` overload"]
346 fn get_line_spacing(self) -> f32 {
347 unsafe {
348 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
349 ::unity::il2cpp_call!((::unity::module_base()+0x3c06830usize)as*mut u8,f32;
350(Text)__receiver)
351 }
352 }
353 #[doc = "`set_lineSpacing(f32)` overload"]
354 fn set_line_spacing(self, value: impl ::core::convert::Into<f32>) -> () {
355 unsafe {
356 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
357 ::unity::il2cpp_call!((::unity::module_base()+0x3c06840usize)as*mut u8,();
358(Text)__receiver,(f32)::core::convert::Into::into(value))
359 }
360 }
361 #[doc = "`get_fontStyle()` overload"]
362 fn get_font_style(self) -> crate::unity_engine::fontstyle::FontStyle {
363 unsafe {
364 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
365 ::unity::il2cpp_call!((::unity::module_base()+0x3c068a0usize)as*mut u8,crate::unity_engine::fontstyle::FontStyle;
366(Text)__receiver)
367 }
368 }
369 #[doc = "`set_fontStyle(crate::unity_engine::fontstyle::FontStyle)` overload"]
370 fn set_font_style(self, value: impl ::core::convert::Into<crate::unity_engine::fontstyle::FontStyle>) -> () {
371 unsafe {
372 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
373 ::unity::il2cpp_call!((::unity::module_base()+0x3c068b0usize)as*mut u8,();
374(Text)__receiver,(crate::unity_engine::fontstyle::FontStyle)::core::convert::Into::into(value))
375 }
376 }
377 #[doc = "`get_pixelsPerUnit()` overload"]
378 fn get_pixels_per_unit(self) -> f32 {
379 unsafe {
380 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
381 ::unity::il2cpp_call!((::unity::module_base()+0x3c06910usize)as*mut u8,f32;
382(Text)__receiver)
383 }
384 }
385 #[doc = "`OnEnable()` overload"]
386 fn on_enable(self) -> () {
387 unsafe {
388 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
389 {
390 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
391 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
392 panic!(
393 "unity: virtual slot {}
394 out of range (vtable len {}
395) on the runtime class behind {}
396 (method `{}
397`)",
398 5usize,
399 __vt.len(),
400 <Text as ::unity::ClassIdentity>::NAME,
401 "OnEnable",
402 )
403 });
404 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
405 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
406 __inner(__receiver, __mi)
407 }
408 }
409 }
410 #[doc = "`OnDisable()` overload"]
411 fn on_disable(self) -> () {
412 unsafe {
413 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
414 {
415 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
416 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
417 panic!(
418 "unity: virtual slot {}
419 out of range (vtable len {}
420) on the runtime class behind {}
421 (method `{}
422`)",
423 7usize,
424 __vt.len(),
425 <Text as ::unity::ClassIdentity>::NAME,
426 "OnDisable",
427 )
428 });
429 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
430 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
431 __inner(__receiver, __mi)
432 }
433 }
434 }
435 #[doc = "`UpdateGeometry()` overload"]
436 fn update_geometry(self) -> () {
437 unsafe {
438 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
439 {
440 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
441 let __vi = *__vt.get(41usize).unwrap_or_else(|| {
442 panic!(
443 "unity: virtual slot {}
444 out of range (vtable len {}
445) on the runtime class behind {}
446 (method `{}
447`)",
448 41usize,
449 __vt.len(),
450 <Text as ::unity::ClassIdentity>::NAME,
451 "UpdateGeometry",
452 )
453 });
454 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
455 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
456 __inner(__receiver, __mi)
457 }
458 }
459 }
460 #[doc = "`AssignDefaultFont()` overload"]
461 fn assign_default_font(self) -> () {
462 unsafe {
463 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
464 ::unity::il2cpp_call!((::unity::module_base()+0x3c06c80usize)as*mut u8,();
465(Text)__receiver)
466 }
467 }
468 #[doc = "`GetGenerationSettings(crate::unity_engine::vector2::Vector2)` overload"]
469 fn get_generation_settings(
470 self,
471 extents: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
472 ) -> crate::unity_engine::textgenerationsettings::TextGenerationSettings {
473 unsafe {
474 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
475 ::unity::il2cpp_call!((::unity::module_base()+0x3c06d00usize)as*mut u8,crate::unity_engine::textgenerationsettings::TextGenerationSettings;
476(Text)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(extents))
477 }
478 }
479 #[doc = "`OnPopulateMesh(crate::unity_engine::ui::vertexhelper::VertexHelper)` overload"]
480 fn on_populate_mesh(self, to_fill: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>) -> () {
481 unsafe {
482 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
483 {
484 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
485 let __vi = *__vt.get(44usize).unwrap_or_else(|| {
486 panic!(
487 "unity: virtual slot {}
488 out of range (vtable len {}
489) on the runtime class behind {}
490 (method `{}
491`)",
492 44usize,
493 __vt.len(),
494 <Text as ::unity::ClassIdentity>::NAME,
495 "OnPopulateMesh",
496 )
497 });
498 let __inner: extern "C" fn(Text, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
499 ::core::mem::transmute(__vi.method_ptr);
500 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
501 __inner(__receiver, ::core::convert::Into::into(to_fill), __mi)
502 }
503 }
504 }
505 #[doc = "`CalculateLayoutInputHorizontal()` overload"]
506 fn calculate_layout_input_horizontal(self) -> () {
507 unsafe {
508 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
509 {
510 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
511 let __vi = *__vt.get(76usize).unwrap_or_else(|| {
512 panic!(
513 "unity: virtual slot {}
514 out of range (vtable len {}
515) on the runtime class behind {}
516 (method `{}
517`)",
518 76usize,
519 __vt.len(),
520 <Text as ::unity::ClassIdentity>::NAME,
521 "CalculateLayoutInputHorizontal",
522 )
523 });
524 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
525 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
526 __inner(__receiver, __mi)
527 }
528 }
529 }
530 #[doc = "`CalculateLayoutInputVertical()` overload"]
531 fn calculate_layout_input_vertical(self) -> () {
532 unsafe {
533 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
534 {
535 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
536 let __vi = *__vt.get(77usize).unwrap_or_else(|| {
537 panic!(
538 "unity: virtual slot {}
539 out of range (vtable len {}
540) on the runtime class behind {}
541 (method `{}
542`)",
543 77usize,
544 __vt.len(),
545 <Text as ::unity::ClassIdentity>::NAME,
546 "CalculateLayoutInputVertical",
547 )
548 });
549 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
550 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
551 __inner(__receiver, __mi)
552 }
553 }
554 }
555 #[doc = "`get_minWidth()` overload"]
556 fn get_min_width(self) -> f32 {
557 unsafe {
558 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
559 {
560 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
561 let __vi = *__vt.get(78usize).unwrap_or_else(|| {
562 panic!(
563 "unity: virtual slot {}
564 out of range (vtable len {}
565) on the runtime class behind {}
566 (method `{}
567`)",
568 78usize,
569 __vt.len(),
570 <Text as ::unity::ClassIdentity>::NAME,
571 "get_minWidth",
572 )
573 });
574 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
575 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
576 __inner(__receiver, __mi)
577 }
578 }
579 }
580 #[doc = "`get_preferredWidth()` overload"]
581 fn get_preferred_width(self) -> f32 {
582 unsafe {
583 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
584 {
585 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
586 let __vi = *__vt.get(79usize).unwrap_or_else(|| {
587 panic!(
588 "unity: virtual slot {}
589 out of range (vtable len {}
590) on the runtime class behind {}
591 (method `{}
592`)",
593 79usize,
594 __vt.len(),
595 <Text as ::unity::ClassIdentity>::NAME,
596 "get_preferredWidth",
597 )
598 });
599 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
600 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
601 __inner(__receiver, __mi)
602 }
603 }
604 }
605 #[doc = "`get_flexibleWidth()` overload"]
606 fn get_flexible_width(self) -> f32 {
607 unsafe {
608 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
609 {
610 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
611 let __vi = *__vt.get(80usize).unwrap_or_else(|| {
612 panic!(
613 "unity: virtual slot {}
614 out of range (vtable len {}
615) on the runtime class behind {}
616 (method `{}
617`)",
618 80usize,
619 __vt.len(),
620 <Text as ::unity::ClassIdentity>::NAME,
621 "get_flexibleWidth",
622 )
623 });
624 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
625 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
626 __inner(__receiver, __mi)
627 }
628 }
629 }
630 #[doc = "`get_minHeight()` overload"]
631 fn get_min_height(self) -> f32 {
632 unsafe {
633 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
634 {
635 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
636 let __vi = *__vt.get(81usize).unwrap_or_else(|| {
637 panic!(
638 "unity: virtual slot {}
639 out of range (vtable len {}
640) on the runtime class behind {}
641 (method `{}
642`)",
643 81usize,
644 __vt.len(),
645 <Text as ::unity::ClassIdentity>::NAME,
646 "get_minHeight",
647 )
648 });
649 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
650 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
651 __inner(__receiver, __mi)
652 }
653 }
654 }
655 #[doc = "`get_preferredHeight()` overload"]
656 fn get_preferred_height(self) -> f32 {
657 unsafe {
658 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
659 {
660 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
661 let __vi = *__vt.get(82usize).unwrap_or_else(|| {
662 panic!(
663 "unity: virtual slot {}
664 out of range (vtable len {}
665) on the runtime class behind {}
666 (method `{}
667`)",
668 82usize,
669 __vt.len(),
670 <Text as ::unity::ClassIdentity>::NAME,
671 "get_preferredHeight",
672 )
673 });
674 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
675 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
676 __inner(__receiver, __mi)
677 }
678 }
679 }
680 #[doc = "`get_flexibleHeight()` overload"]
681 fn get_flexible_height(self) -> f32 {
682 unsafe {
683 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
684 {
685 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
686 let __vi = *__vt.get(83usize).unwrap_or_else(|| {
687 panic!(
688 "unity: virtual slot {}
689 out of range (vtable len {}
690) on the runtime class behind {}
691 (method `{}
692`)",
693 83usize,
694 __vt.len(),
695 <Text as ::unity::ClassIdentity>::NAME,
696 "get_flexibleHeight",
697 )
698 });
699 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
700 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
701 __inner(__receiver, __mi)
702 }
703 }
704 }
705 #[doc = "`get_layoutPriority()` overload"]
706 fn get_layout_priority(self) -> i32 {
707 unsafe {
708 let __receiver = <Text as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
709 {
710 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
711 let __vi = *__vt.get(84usize).unwrap_or_else(|| {
712 panic!(
713 "unity: virtual slot {}
714 out of range (vtable len {}
715) on the runtime class behind {}
716 (method `{}
717`)",
718 84usize,
719 __vt.len(),
720 <Text as ::unity::ClassIdentity>::NAME,
721 "get_layoutPriority",
722 )
723 });
724 let __inner: extern "C" fn(Text, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
725 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
726 __inner(__receiver, __mi)
727 }
728 }
729 }
730}
731
732#[cfg(feature = "unity_engine-ui-text")]
733impl<__T: IText> ITextMethods for __T {}
734
735#[cfg(feature = "unity_engine-ui-text")]
736impl Text {
737 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
738 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
739 }
740
741 pub fn get_cached_text_generator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
742 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
743 }
744
745 pub fn get_cached_text_generator_for_layout_method_info() -> &'static ::unity::il2cpp::MethodInfo {
746 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
747 }
748
749 pub fn get_main_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
750 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
751 }
752
753 pub fn font_texture_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
754 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
755 }
756
757 pub fn get_font_method_info() -> &'static ::unity::il2cpp::MethodInfo {
758 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
759 }
760
761 pub fn set_font_method_info() -> &'static ::unity::il2cpp::MethodInfo {
762 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
763 }
764
765 pub fn get_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
766 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
767 }
768
769 pub fn set_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
770 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
771 }
772
773 pub fn get_support_rich_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
774 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
775 }
776
777 pub fn set_support_rich_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
778 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
779 }
780
781 pub fn get_resize_text_for_best_fit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
782 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
783 }
784
785 pub fn set_resize_text_for_best_fit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
786 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
787 }
788
789 pub fn get_resize_text_min_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
790 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
791 }
792
793 pub fn set_resize_text_min_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
794 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
795 }
796
797 pub fn get_resize_text_max_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
798 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
799 }
800
801 pub fn set_resize_text_max_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
802 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
803 }
804
805 pub fn get_alignment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
806 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
807 }
808
809 pub fn set_alignment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
810 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
811 }
812
813 pub fn get_align_by_geometry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
814 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
815 }
816
817 pub fn set_align_by_geometry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
818 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
819 }
820
821 pub fn get_font_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
822 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
823 }
824
825 pub fn set_font_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
826 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
827 }
828
829 pub fn get_horizontal_overflow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
830 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
831 }
832
833 pub fn set_horizontal_overflow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
834 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
835 }
836
837 pub fn get_vertical_overflow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
838 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
839 }
840
841 pub fn set_vertical_overflow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
842 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
843 }
844
845 pub fn get_line_spacing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
846 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
847 }
848
849 pub fn set_line_spacing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
850 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
851 }
852
853 pub fn get_font_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
854 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
855 }
856
857 pub fn set_font_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
858 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
859 }
860
861 pub fn get_pixels_per_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
862 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
863 }
864
865 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
866 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
867 }
868
869 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
870 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
871 }
872
873 pub fn update_geometry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
874 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
875 }
876
877 pub fn assign_default_font_method_info() -> &'static ::unity::il2cpp::MethodInfo {
878 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
879 }
880
881 pub fn get_generation_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
882 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
883 }
884
885 pub fn get_text_anchor_pivot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
886 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
887 }
888
889 pub fn on_populate_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
890 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
891 }
892
893 pub fn calculate_layout_input_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
894 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
895 }
896
897 pub fn calculate_layout_input_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
898 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
899 }
900
901 pub fn get_min_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
902 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
903 }
904
905 pub fn get_preferred_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
906 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
907 }
908
909 pub fn get_flexible_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
910 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
911 }
912
913 pub fn get_min_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
914 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
915 }
916
917 pub fn get_preferred_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
918 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
919 }
920
921 pub fn get_flexible_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
922 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
923 }
924
925 pub fn get_layout_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
926 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
927 }
928
929 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
930 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
931 }
932}
933
934#[cfg(feature = "unity_engine-ui-text")]
935impl Text {
936 #[doc = "Direct (non-virtual) call to `Text`'s own `get_mainTexture`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
937 pub unsafe fn get_main_texture(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::texture::Texture {
938 let __mi = Self::get_main_texture_method_info();
939 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::texture::Texture =
940 ::core::mem::transmute(__mi.method_ptr);
941 __inner(this.into(), ::core::option::Option::None)
942 }
943
944 #[doc = "Direct (non-virtual) call to `Text`'s own `get_text`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
945 pub unsafe fn get_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
946 let __mi = Self::get_text_method_info();
947 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
948 __inner(this.into(), ::core::option::Option::None)
949 }
950
951 #[doc = "Direct (non-virtual) call to `Text`'s own `set_text`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
952 pub unsafe fn set_text(this: impl ::core::convert::Into<::unity::IlInstance>, value: ::unity::Il2CppString) -> () {
953 let __mi = Self::set_text_method_info();
954 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
955 ::core::mem::transmute(__mi.method_ptr);
956 __inner(this.into(), value, ::core::option::Option::None)
957 }
958
959 #[doc = "Direct (non-virtual) call to `Text`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
960 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
961 let __mi = Self::on_enable_method_info();
962 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
963 __inner(this.into(), ::core::option::Option::None)
964 }
965
966 #[doc = "Direct (non-virtual) call to `Text`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
967 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
968 let __mi = Self::on_disable_method_info();
969 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
970 __inner(this.into(), ::core::option::Option::None)
971 }
972
973 #[doc = "Direct (non-virtual) call to `Text`'s own `UpdateGeometry`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
974 pub unsafe fn update_geometry(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
975 let __mi = Self::update_geometry_method_info();
976 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
977 __inner(this.into(), ::core::option::Option::None)
978 }
979
980 #[doc = "Direct (non-virtual) call to `Text`'s own `OnPopulateMesh`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
981 pub unsafe fn on_populate_mesh(
982 this: impl ::core::convert::Into<::unity::IlInstance>,
983 to_fill: crate::unity_engine::ui::vertexhelper::VertexHelper,
984 ) -> () {
985 let __mi = Self::on_populate_mesh_method_info();
986 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
987 ::core::mem::transmute(__mi.method_ptr);
988 __inner(this.into(), to_fill, ::core::option::Option::None)
989 }
990
991 #[doc = "Direct (non-virtual) call to `Text`'s own `CalculateLayoutInputHorizontal`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
992 pub unsafe fn calculate_layout_input_horizontal(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
993 let __mi = Self::calculate_layout_input_horizontal_method_info();
994 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
995 __inner(this.into(), ::core::option::Option::None)
996 }
997
998 #[doc = "Direct (non-virtual) call to `Text`'s own `CalculateLayoutInputVertical`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
999 pub unsafe fn calculate_layout_input_vertical(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1000 let __mi = Self::calculate_layout_input_vertical_method_info();
1001 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1002 __inner(this.into(), ::core::option::Option::None)
1003 }
1004
1005 #[doc = "Direct (non-virtual) call to `Text`'s own `get_minWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1006 pub unsafe fn get_min_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1007 let __mi = Self::get_min_width_method_info();
1008 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1009 __inner(this.into(), ::core::option::Option::None)
1010 }
1011
1012 #[doc = "Direct (non-virtual) call to `Text`'s own `get_preferredWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1013 pub unsafe fn get_preferred_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1014 let __mi = Self::get_preferred_width_method_info();
1015 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1016 __inner(this.into(), ::core::option::Option::None)
1017 }
1018
1019 #[doc = "Direct (non-virtual) call to `Text`'s own `get_flexibleWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1020 pub unsafe fn get_flexible_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1021 let __mi = Self::get_flexible_width_method_info();
1022 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1023 __inner(this.into(), ::core::option::Option::None)
1024 }
1025
1026 #[doc = "Direct (non-virtual) call to `Text`'s own `get_minHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1027 pub unsafe fn get_min_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1028 let __mi = Self::get_min_height_method_info();
1029 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1030 __inner(this.into(), ::core::option::Option::None)
1031 }
1032
1033 #[doc = "Direct (non-virtual) call to `Text`'s own `get_preferredHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1034 pub unsafe fn get_preferred_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1035 let __mi = Self::get_preferred_height_method_info();
1036 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1037 __inner(this.into(), ::core::option::Option::None)
1038 }
1039
1040 #[doc = "Direct (non-virtual) call to `Text`'s own `get_flexibleHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1041 pub unsafe fn get_flexible_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1042 let __mi = Self::get_flexible_height_method_info();
1043 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1044 __inner(this.into(), ::core::option::Option::None)
1045 }
1046
1047 #[doc = "Direct (non-virtual) call to `Text`'s own `get_layoutPriority`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1048 pub unsafe fn get_layout_priority(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
1049 let __mi = Self::get_layout_priority_method_info();
1050 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
1051 __inner(this.into(), ::core::option::Option::None)
1052 }
1053}
1054
1055#[cfg(feature = "unity_engine-ui-text")]
1056impl Text {
1057 #[doc = "`.ctor()` — no args"]
1058 pub fn new() -> Self {
1059 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1060 panic!(
1061 "{}
1062::{}
1063 failed to instantiate",
1064 ::core::stringify!(Text),
1065 ::core::stringify!(new),
1066 )
1067 });
1068 <Self as ITextMethods>::ctor(this);
1069 this
1070 }
1071}
1072
1073#[cfg(feature = "unity_engine-ui-text")]
1074#[doc(hidden)]
1075pub mod prelude {
1076 pub use super::{IText, ITextMethods, Text};
1077 #[cfg(feature = "system-object")]
1078 pub use crate::system::object::IObjectMethods;
1079 #[cfg(feature = "unity_engine-behaviour")]
1080 pub use crate::unity_engine::behaviour::IBehaviourMethods;
1081 #[cfg(feature = "unity_engine-component")]
1082 pub use crate::unity_engine::component::IComponentMethods;
1083 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
1084 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
1085 #[cfg(feature = "unity_engine-monobehaviour")]
1086 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
1087 #[cfg(feature = "unity_engine-object_2")]
1088 pub use crate::unity_engine::object_2::IObject_2Methods;
1089 #[cfg(feature = "unity_engine-ui-graphic")]
1090 pub use crate::unity_engine::ui::graphic::IGraphicMethods;
1091 #[cfg(feature = "unity_engine-ui-maskablegraphic")]
1092 pub use crate::unity_engine::ui::maskablegraphic::IMaskableGraphicMethods;
1093 pub use crate::{
1094 system::object::IObject,
1095 unity_engine::{
1096 behaviour::IBehaviour,
1097 component::IComponent,
1098 event_systems::uibehaviour::IUIBehaviour,
1099 monobehaviour::IMonoBehaviour,
1100 object_2::IObject_2,
1101 ui::{graphic::IGraphic, maskablegraphic::IMaskableGraphic},
1102 },
1103 };
1104}