Skip to main content

engage/generated/unity_engine/
textgenerator.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-textgenerator-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/textgenerator/TextGenerator.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "TextGenerator")]
12    #[parent(crate::system::object::Object)]
13    pub struct TextGenerator {
14        #[offset(16)]
15        #[rename(name = "m_Ptr")]
16        pub m_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "m_LastString")]
19        pub m_last_string: ::unity::Il2CppString,
20        #[offset(32)]
21        #[rename(name = "m_LastSettings")]
22        pub m_last_settings: crate::unity_engine::textgenerationsettings::TextGenerationSettings,
23        #[offset(128)]
24        #[rename(name = "m_HasGenerated")]
25        pub m_has_generated: bool,
26        #[offset(132)]
27        #[rename(name = "m_LastValid")]
28        pub m_last_valid: crate::unity_engine::textgenerationerror::TextGenerationError,
29        #[offset(136)]
30        #[rename(name = "m_Verts")]
31        pub m_verts: crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>,
32        #[offset(144)]
33        #[rename(name = "m_Characters")]
34        pub m_characters: crate::system::collections::generic::list_1::List_1<crate::unity_engine::uicharinfo::UICharInfo>,
35        #[offset(152)]
36        #[rename(name = "m_Lines")]
37        pub m_lines: crate::system::collections::generic::list_1::List_1<crate::unity_engine::uilineinfo::UILineInfo>,
38        #[offset(160)]
39        #[rename(name = "m_CachedVerts")]
40        pub m_cached_verts: bool,
41        #[offset(161)]
42        #[rename(name = "m_CachedCharacters")]
43        pub m_cached_characters: bool,
44        #[offset(162)]
45        #[rename(name = "m_CachedLines")]
46        pub m_cached_lines: bool,
47    }
48}
49
50#[cfg(feature = "unity_engine-textgenerator-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-textgenerator")]
54impl TextGenerator {
55    #[doc = "`Internal_Create()` overload"]
56    pub fn internal_create() -> ::unity::IntPtr {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x3f2fa00usize)as*mut u8, ::unity::IntPtr;
59            )
60        }
61    }
62
63    #[doc = "`Internal_Destroy(::unity::IntPtr)` overload"]
64    pub fn internal_destroy(ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
65        unsafe {
66            ::unity::il2cpp_call!((::unity::module_base()+0x3f2fbc0usize)as*mut u8,();
67(::unity::IntPtr)::core::convert::Into::into(ptr))
68        }
69    }
70}
71
72#[cfg(feature = "unity_engine-textgenerator")]
73pub trait ITextGeneratorMethods: ITextGenerator {
74    #[doc = "`.ctor()` overload"]
75    fn ctor(self) -> () {
76        unsafe {
77            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            ::unity::il2cpp_call!((::unity::module_base()+0x3f2f870usize)as*mut u8,();
79(TextGenerator)__receiver)
80        }
81    }
82    #[doc = "`.ctor(i32)` overload"]
83    fn ctor_2(self, initial_capacity: impl ::core::convert::Into<i32>) -> () {
84        unsafe {
85            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x3f2f880usize)as*mut u8,();
87(TextGenerator)__receiver,(i32)::core::convert::Into::into(initial_capacity))
88        }
89    }
90    #[doc = "`Finalize()` overload"]
91    fn finalize(self) -> () {
92        unsafe {
93            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            {
95                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
96                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
97                    panic!(
98                        "unity: virtual slot {}
99 out of range (vtable len {}
100) on the runtime class behind {}
101 (method `{}
102`)",
103                        1usize,
104                        __vt.len(),
105                        <TextGenerator as ::unity::ClassIdentity>::NAME,
106                        "Finalize",
107                    )
108                });
109                let __inner: extern "C" fn(TextGenerator, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
110                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
111                __inner(__receiver, __mi)
112            }
113        }
114    }
115    #[doc = "`System.IDisposable.Dispose()` overload"]
116    fn system_i_disposable_dispose(self) -> () {
117        unsafe {
118            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            {
120                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
121                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
122                    panic!(
123                        "unity: virtual slot {}
124 out of range (vtable len {}
125) on the runtime class behind {}
126 (method `{}
127`)",
128                        4usize,
129                        __vt.len(),
130                        <TextGenerator as ::unity::ClassIdentity>::NAME,
131                        "System.IDisposable.Dispose",
132                    )
133                });
134                let __inner: extern "C" fn(TextGenerator, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
135                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
136                __inner(__receiver, __mi)
137            }
138        }
139    }
140    #[doc = "`get_characterCountVisible()` overload"]
141    fn get_character_count_visible(self) -> i32 {
142        unsafe {
143            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x3f2fc10usize)as*mut u8,i32;
145(TextGenerator)__receiver)
146        }
147    }
148    #[doc = "`ValidatedSettings(crate::unity_engine::textgenerationsettings::TextGenerationSettings)` overload"]
149    fn validated_settings(
150        self,
151        settings: impl ::core::convert::Into<crate::unity_engine::textgenerationsettings::TextGenerationSettings>,
152    ) -> crate::unity_engine::textgenerationsettings::TextGenerationSettings {
153        unsafe {
154            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!((::unity::module_base()+0x3f2fcb0usize)as*mut u8,crate::unity_engine::textgenerationsettings::TextGenerationSettings;
156(TextGenerator)__receiver,(crate::unity_engine::textgenerationsettings::TextGenerationSettings)::core::convert::Into::into(settings))
157        }
158    }
159    #[doc = "`Invalidate()` overload"]
160    fn invalidate(self) -> () {
161        unsafe {
162            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!((::unity::module_base()+0x3f30000usize)as*mut u8,();
164(TextGenerator)__receiver)
165        }
166    }
167    #[doc = "`GetCharacters(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uicharinfo::UICharInfo>)` overload"]
168    fn get_characters(
169        self,
170        characters: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::uicharinfo::UICharInfo>>,
171    ) -> () {
172        unsafe {
173            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x3f30010usize)as*mut u8,();
175(TextGenerator)__receiver,(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uicharinfo::UICharInfo>)::core::convert::Into::into(characters))
176        }
177    }
178    #[doc = "`GetLines(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uilineinfo::UILineInfo>)` overload"]
179    fn get_lines(
180        self,
181        lines: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::uilineinfo::UILineInfo>>,
182    ) -> () {
183        unsafe {
184            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            ::unity::il2cpp_call!((::unity::module_base()+0x3f300b0usize)as*mut u8,();
186(TextGenerator)__receiver,(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uilineinfo::UILineInfo>)::core::convert::Into::into(lines))
187        }
188    }
189    #[doc = "`GetVertices(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>)` overload"]
190    fn get_vertices(
191        self,
192        vertices: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>>,
193    ) -> () {
194        unsafe {
195            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196            ::unity::il2cpp_call!((::unity::module_base()+0x3f30150usize)as*mut u8,();
197(TextGenerator)__receiver,(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>)::core::convert::Into::into(vertices))
198        }
199    }
200    #[doc = "`GetPreferredWidth(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings)` overload"]
201    fn get_preferred_width(
202        self,
203        str: impl ::core::convert::Into<::unity::Il2CppString>,
204        settings: impl ::core::convert::Into<crate::unity_engine::textgenerationsettings::TextGenerationSettings>,
205    ) -> f32 {
206        unsafe {
207            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208            ::unity::il2cpp_call!((::unity::module_base()+0x3f301f0usize)as*mut u8,f32;
209(TextGenerator)__receiver,(::unity::Il2CppString)::core::convert::Into::into(str),(crate::unity_engine::textgenerationsettings::TextGenerationSettings)::core::convert::Into::into(settings))
210        }
211    }
212    #[doc = "`GetPreferredHeight(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings)` overload"]
213    fn get_preferred_height(
214        self,
215        str: impl ::core::convert::Into<::unity::Il2CppString>,
216        settings: impl ::core::convert::Into<crate::unity_engine::textgenerationsettings::TextGenerationSettings>,
217    ) -> f32 {
218        unsafe {
219            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220            ::unity::il2cpp_call!((::unity::module_base()+0x3f304c0usize)as*mut u8,f32;
221(TextGenerator)__receiver,(::unity::Il2CppString)::core::convert::Into::into(str),(crate::unity_engine::textgenerationsettings::TextGenerationSettings)::core::convert::Into::into(settings))
222        }
223    }
224    #[doc = "`PopulateWithErrors(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings, crate::unity_engine::gameobject::GameObject)` overload"]
225    fn populate_with_errors(
226        self,
227        str: impl ::core::convert::Into<::unity::Il2CppString>,
228        settings: impl ::core::convert::Into<crate::unity_engine::textgenerationsettings::TextGenerationSettings>,
229        context: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
230    ) -> bool {
231        unsafe {
232            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233            ::unity::il2cpp_call!((::unity::module_base()+0x3f30620usize)as*mut u8,bool;
234(TextGenerator)__receiver,(::unity::Il2CppString)::core::convert::Into::into(str),(crate::unity_engine::textgenerationsettings::TextGenerationSettings)::core::convert::Into::into(settings),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(context))
235        }
236    }
237    #[doc = "`Populate(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings)` overload"]
238    fn populate(
239        self,
240        str: impl ::core::convert::Into<::unity::Il2CppString>,
241        settings: impl ::core::convert::Into<crate::unity_engine::textgenerationsettings::TextGenerationSettings>,
242    ) -> bool {
243        unsafe {
244            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            ::unity::il2cpp_call!((::unity::module_base()+0x3f30350usize)as*mut u8,bool;
246(TextGenerator)__receiver,(::unity::Il2CppString)::core::convert::Into::into(str),(crate::unity_engine::textgenerationsettings::TextGenerationSettings)::core::convert::Into::into(settings))
247        }
248    }
249    #[doc = "`PopulateWithError(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings)` overload"]
250    fn populate_with_error(
251        self,
252        str: impl ::core::convert::Into<::unity::Il2CppString>,
253        settings: impl ::core::convert::Into<crate::unity_engine::textgenerationsettings::TextGenerationSettings>,
254    ) -> crate::unity_engine::textgenerationerror::TextGenerationError {
255        unsafe {
256            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257            ::unity::il2cpp_call!((::unity::module_base()+0x3f308c0usize)as*mut u8,crate::unity_engine::textgenerationerror::TextGenerationError;
258(TextGenerator)__receiver,(::unity::Il2CppString)::core::convert::Into::into(str),(crate::unity_engine::textgenerationsettings::TextGenerationSettings)::core::convert::Into::into(settings))
259        }
260    }
261    #[doc = "`PopulateAlways(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings)` overload"]
262    fn populate_always(
263        self,
264        str: impl ::core::convert::Into<::unity::Il2CppString>,
265        settings: impl ::core::convert::Into<crate::unity_engine::textgenerationsettings::TextGenerationSettings>,
266    ) -> crate::unity_engine::textgenerationerror::TextGenerationError {
267        unsafe {
268            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269            ::unity::il2cpp_call!((::unity::module_base()+0x3f309a0usize)as*mut u8,crate::unity_engine::textgenerationerror::TextGenerationError;
270(TextGenerator)__receiver,(::unity::Il2CppString)::core::convert::Into::into(str),(crate::unity_engine::textgenerationsettings::TextGenerationSettings)::core::convert::Into::into(settings))
271        }
272    }
273    #[doc = "`get_verts()` overload"]
274    fn get_verts(self) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::uivertex::UIVertex> {
275        unsafe {
276            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277            ::unity::il2cpp_call!((::unity::module_base()+0x3f30ce0usize)as*mut u8,crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::uivertex::UIVertex> ;
278(TextGenerator)__receiver)
279        }
280    }
281    #[doc = "`get_characters()` overload"]
282    fn get_characters_2(
283        self,
284    ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::uicharinfo::UICharInfo> {
285        unsafe {
286            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287            ::unity::il2cpp_call!((::unity::module_base()+0x3f30d50usize)as*mut u8,crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::uicharinfo::UICharInfo> ;
288(TextGenerator)__receiver)
289        }
290    }
291    #[doc = "`get_lines()` overload"]
292    fn get_lines_2(self) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::uilineinfo::UILineInfo> {
293        unsafe {
294            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
295            ::unity::il2cpp_call!((::unity::module_base()+0x3f30dc0usize)as*mut u8,crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::uilineinfo::UILineInfo> ;
296(TextGenerator)__receiver)
297        }
298    }
299    #[doc = "`get_rectExtents()` overload"]
300    fn get_rect_extents(self) -> crate::unity_engine::rect::Rect {
301        unsafe {
302            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
303            ::unity::il2cpp_call!((::unity::module_base()+0x3f30460usize)as*mut u8,crate::unity_engine::rect::Rect;
304(TextGenerator)__receiver)
305        }
306    }
307    #[doc = "`get_characterCount()` overload"]
308    fn get_character_count(self) -> i32 {
309        unsafe {
310            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
311            ::unity::il2cpp_call!((::unity::module_base()+0x3f2fc60usize)as*mut u8,i32;
312(TextGenerator)__receiver)
313        }
314    }
315    #[doc = "`get_lineCount()` overload"]
316    fn get_line_count(self) -> i32 {
317        unsafe {
318            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
319            ::unity::il2cpp_call!((::unity::module_base()+0x3f30e80usize)as*mut u8,i32;
320(TextGenerator)__receiver)
321        }
322    }
323    #[doc = "`Populate_Internal(::unity::Il2CppString, crate::unity_engine::font::Font, crate::unity_engine::color::Color, i32, f32, f32, crate::unity_engine::fontstyle::FontStyle, bool, bool, i32, i32, i32, i32, bool, crate::unity_engine::textanchor::TextAnchor, f32, f32, f32, f32, bool, bool, *mutu32)` overload"]
324    fn populate_internal(
325        self,
326        str: impl ::core::convert::Into<::unity::Il2CppString>,
327        font: impl ::core::convert::Into<crate::unity_engine::font::Font>,
328        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
329        font_size: impl ::core::convert::Into<i32>,
330        scale_factor: impl ::core::convert::Into<f32>,
331        line_spacing: impl ::core::convert::Into<f32>,
332        style: impl ::core::convert::Into<crate::unity_engine::fontstyle::FontStyle>,
333        rich_text: impl ::core::convert::Into<bool>,
334        resize_text_for_best_fit: impl ::core::convert::Into<bool>,
335        resize_text_min_size: impl ::core::convert::Into<i32>,
336        resize_text_max_size: impl ::core::convert::Into<i32>,
337        vertical_over_flow: impl ::core::convert::Into<i32>,
338        horizontal_overflow: impl ::core::convert::Into<i32>,
339        update_bounds: impl ::core::convert::Into<bool>,
340        anchor: impl ::core::convert::Into<crate::unity_engine::textanchor::TextAnchor>,
341        extents_x: impl ::core::convert::Into<f32>,
342        extents_y: impl ::core::convert::Into<f32>,
343        pivot_x: impl ::core::convert::Into<f32>,
344        pivot_y: impl ::core::convert::Into<f32>,
345        generate_out_of_bounds: impl ::core::convert::Into<bool>,
346        align_by_geometry: impl ::core::convert::Into<bool>,
347    ) -> (bool, u32) {
348        unsafe {
349            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
350            let mut __out_0 = ::core::mem::MaybeUninit::<u32>::uninit();
351            let __ret = {
352                ::unity::il2cpp_call!((::unity::module_base()+0x3f30ed0usize)as*mut u8,bool;
353(TextGenerator)__receiver,(::unity::Il2CppString)::core::convert::Into::into(str),(crate::unity_engine::font::Font)::core::convert::Into::into(font),(crate::unity_engine::color::Color)::core::convert::Into::into(color),(i32)::core::convert::Into::into(font_size),(f32)::core::convert::Into::into(scale_factor),(f32)::core::convert::Into::into(line_spacing),(crate::unity_engine::fontstyle::FontStyle)::core::convert::Into::into(style),(bool)::core::convert::Into::into(rich_text),(bool)::core::convert::Into::into(resize_text_for_best_fit),(i32)::core::convert::Into::into(resize_text_min_size),(i32)::core::convert::Into::into(resize_text_max_size),(i32)::core::convert::Into::into(vertical_over_flow),(i32)::core::convert::Into::into(horizontal_overflow),(bool)::core::convert::Into::into(update_bounds),(crate::unity_engine::textanchor::TextAnchor)::core::convert::Into::into(anchor),(f32)::core::convert::Into::into(extents_x),(f32)::core::convert::Into::into(extents_y),(f32)::core::convert::Into::into(pivot_x),(f32)::core::convert::Into::into(pivot_y),(bool)::core::convert::Into::into(generate_out_of_bounds),(bool)::core::convert::Into::into(align_by_geometry),(*mut u32)__out_0.as_mut_ptr())
354            };
355            (__ret, __out_0.assume_init())
356        }
357    }
358    #[doc = "`Populate_Internal(::unity::Il2CppString, crate::unity_engine::font::Font, crate::unity_engine::color::Color, i32, f32, f32, crate::unity_engine::fontstyle::FontStyle, bool, bool, i32, i32, crate::unity_engine::verticalwrapmode::VerticalWrapMode, crate::unity_engine::horizontalwrapmode::HorizontalWrapMode, bool, crate::unity_engine::textanchor::TextAnchor, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, bool, bool, *mutcrate::unity_engine::textgenerationerror::TextGenerationError)` overload"]
359    fn populate_internal_2(
360        self,
361        str: impl ::core::convert::Into<::unity::Il2CppString>,
362        font: impl ::core::convert::Into<crate::unity_engine::font::Font>,
363        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
364        font_size: impl ::core::convert::Into<i32>,
365        scale_factor: impl ::core::convert::Into<f32>,
366        line_spacing: impl ::core::convert::Into<f32>,
367        style: impl ::core::convert::Into<crate::unity_engine::fontstyle::FontStyle>,
368        rich_text: impl ::core::convert::Into<bool>,
369        resize_text_for_best_fit: impl ::core::convert::Into<bool>,
370        resize_text_min_size: impl ::core::convert::Into<i32>,
371        resize_text_max_size: impl ::core::convert::Into<i32>,
372        vertical_over_flow: impl ::core::convert::Into<crate::unity_engine::verticalwrapmode::VerticalWrapMode>,
373        horizontal_overflow: impl ::core::convert::Into<crate::unity_engine::horizontalwrapmode::HorizontalWrapMode>,
374        update_bounds: impl ::core::convert::Into<bool>,
375        anchor: impl ::core::convert::Into<crate::unity_engine::textanchor::TextAnchor>,
376        extents: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
377        pivot: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
378        generate_out_of_bounds: impl ::core::convert::Into<bool>,
379        align_by_geometry: impl ::core::convert::Into<bool>,
380    ) -> (bool, crate::unity_engine::textgenerationerror::TextGenerationError) {
381        unsafe {
382            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
383            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::textgenerationerror::TextGenerationError>::uninit();
384            let __ret = {
385                ::unity::il2cpp_call!((::unity::module_base()+0x3f30b00usize)as*mut u8,bool;
386(TextGenerator)__receiver,(::unity::Il2CppString)::core::convert::Into::into(str),(crate::unity_engine::font::Font)::core::convert::Into::into(font),(crate::unity_engine::color::Color)::core::convert::Into::into(color),(i32)::core::convert::Into::into(font_size),(f32)::core::convert::Into::into(scale_factor),(f32)::core::convert::Into::into(line_spacing),(crate::unity_engine::fontstyle::FontStyle)::core::convert::Into::into(style),(bool)::core::convert::Into::into(rich_text),(bool)::core::convert::Into::into(resize_text_for_best_fit),(i32)::core::convert::Into::into(resize_text_min_size),(i32)::core::convert::Into::into(resize_text_max_size),(crate::unity_engine::verticalwrapmode::VerticalWrapMode)::core::convert::Into::into(vertical_over_flow),(crate::unity_engine::horizontalwrapmode::HorizontalWrapMode)::core::convert::Into::into(horizontal_overflow),(bool)::core::convert::Into::into(update_bounds),(crate::unity_engine::textanchor::TextAnchor)::core::convert::Into::into(anchor),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(extents),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(pivot),(bool)::core::convert::Into::into(generate_out_of_bounds),(bool)::core::convert::Into::into(align_by_geometry),(*mut crate::unity_engine::textgenerationerror::TextGenerationError)__out_0.as_mut_ptr())
387            };
388            (__ret, __out_0.assume_init())
389        }
390    }
391    #[doc = "`GetVerticesInternal(crate::system::object::Object)` overload"]
392    fn get_vertices_internal(self, vertices: impl ::core::convert::Into<crate::system::object::Object>) -> () {
393        unsafe {
394            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
395            ::unity::il2cpp_call!((::unity::module_base()+0x3f301a0usize)as*mut u8,();
396(TextGenerator)__receiver,(crate::system::object::Object)::core::convert::Into::into(vertices))
397        }
398    }
399    #[doc = "`GetCharactersInternal(crate::system::object::Object)` overload"]
400    fn get_characters_internal(self, characters: impl ::core::convert::Into<crate::system::object::Object>) -> () {
401        unsafe {
402            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
403            ::unity::il2cpp_call!((::unity::module_base()+0x3f30060usize)as*mut u8,();
404(TextGenerator)__receiver,(crate::system::object::Object)::core::convert::Into::into(characters))
405        }
406    }
407    #[doc = "`GetLinesInternal(crate::system::object::Object)` overload"]
408    fn get_lines_internal(self, lines: impl ::core::convert::Into<crate::system::object::Object>) -> () {
409        unsafe {
410            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
411            ::unity::il2cpp_call!((::unity::module_base()+0x3f30100usize)as*mut u8,();
412(TextGenerator)__receiver,(crate::system::object::Object)::core::convert::Into::into(lines))
413        }
414    }
415    #[doc = "`get_rectExtents_Injected(*mutcrate::unity_engine::rect::Rect)` overload"]
416    fn get_rect_extents_injected(self) -> crate::unity_engine::rect::Rect {
417        unsafe {
418            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
419            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rect::Rect>::uninit();
420            ::unity::il2cpp_call!((::unity::module_base()+0x3f30e30usize)as*mut u8,();
421(TextGenerator)__receiver,(*mut crate::unity_engine::rect::Rect)__out_0.as_mut_ptr());
422            __out_0.assume_init()
423        }
424    }
425    #[doc = "`Populate_Internal_Injected(::unity::Il2CppString, crate::unity_engine::font::Font, *mutcrate::unity_engine::color::Color, i32, f32, f32, crate::unity_engine::fontstyle::FontStyle, bool, bool, i32, i32, i32, i32, bool, crate::unity_engine::textanchor::TextAnchor, f32, f32, f32, f32, bool, bool, *mutu32)` overload"]
426    fn populate_internal_injected(
427        self,
428        str: impl ::core::convert::Into<::unity::Il2CppString>,
429        font: impl ::core::convert::Into<crate::unity_engine::font::Font>,
430        font_size: impl ::core::convert::Into<i32>,
431        scale_factor: impl ::core::convert::Into<f32>,
432        line_spacing: impl ::core::convert::Into<f32>,
433        style: impl ::core::convert::Into<crate::unity_engine::fontstyle::FontStyle>,
434        rich_text: impl ::core::convert::Into<bool>,
435        resize_text_for_best_fit: impl ::core::convert::Into<bool>,
436        resize_text_min_size: impl ::core::convert::Into<i32>,
437        resize_text_max_size: impl ::core::convert::Into<i32>,
438        vertical_over_flow: impl ::core::convert::Into<i32>,
439        horizontal_overflow: impl ::core::convert::Into<i32>,
440        update_bounds: impl ::core::convert::Into<bool>,
441        anchor: impl ::core::convert::Into<crate::unity_engine::textanchor::TextAnchor>,
442        extents_x: impl ::core::convert::Into<f32>,
443        extents_y: impl ::core::convert::Into<f32>,
444        pivot_x: impl ::core::convert::Into<f32>,
445        pivot_y: impl ::core::convert::Into<f32>,
446        generate_out_of_bounds: impl ::core::convert::Into<bool>,
447        align_by_geometry: impl ::core::convert::Into<bool>,
448    ) -> (bool, crate::unity_engine::color::Color, u32) {
449        unsafe {
450            let __receiver = <TextGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
451            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
452            let mut __out_1 = ::core::mem::MaybeUninit::<u32>::uninit();
453            let __ret = {
454                ::unity::il2cpp_call!((::unity::module_base()+0x3f31030usize)as*mut u8,bool;
455(TextGenerator)__receiver,(::unity::Il2CppString)::core::convert::Into::into(str),(crate::unity_engine::font::Font)::core::convert::Into::into(font),(*mut crate::unity_engine::color::Color)__out_0.as_mut_ptr(),(i32)::core::convert::Into::into(font_size),(f32)::core::convert::Into::into(scale_factor),(f32)::core::convert::Into::into(line_spacing),(crate::unity_engine::fontstyle::FontStyle)::core::convert::Into::into(style),(bool)::core::convert::Into::into(rich_text),(bool)::core::convert::Into::into(resize_text_for_best_fit),(i32)::core::convert::Into::into(resize_text_min_size),(i32)::core::convert::Into::into(resize_text_max_size),(i32)::core::convert::Into::into(vertical_over_flow),(i32)::core::convert::Into::into(horizontal_overflow),(bool)::core::convert::Into::into(update_bounds),(crate::unity_engine::textanchor::TextAnchor)::core::convert::Into::into(anchor),(f32)::core::convert::Into::into(extents_x),(f32)::core::convert::Into::into(extents_y),(f32)::core::convert::Into::into(pivot_x),(f32)::core::convert::Into::into(pivot_y),(bool)::core::convert::Into::into(generate_out_of_bounds),(bool)::core::convert::Into::into(align_by_geometry),(*mut u32)__out_1.as_mut_ptr())
456            };
457            (__ret, __out_0.assume_init(), __out_1.assume_init())
458        }
459    }
460}
461
462#[cfg(feature = "unity_engine-textgenerator")]
463impl<__T: ITextGenerator> ITextGeneratorMethods for __T {}
464
465#[cfg(feature = "unity_engine-textgenerator")]
466impl TextGenerator {
467    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
469    }
470
471    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
473    }
474
475    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
477    }
478
479    pub fn system_i_disposable_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
481    }
482
483    pub fn get_character_count_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
485    }
486
487    pub fn validated_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
488        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
489    }
490
491    pub fn invalidate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
492        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
493    }
494
495    pub fn get_characters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
496        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
497    }
498
499    pub fn get_lines_method_info() -> &'static ::unity::il2cpp::MethodInfo {
500        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
501    }
502
503    pub fn get_vertices_method_info() -> &'static ::unity::il2cpp::MethodInfo {
504        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
505    }
506
507    pub fn get_preferred_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
508        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
509    }
510
511    pub fn get_preferred_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
512        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
513    }
514
515    pub fn populate_with_errors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
516        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
517    }
518
519    pub fn populate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
520        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
521    }
522
523    pub fn populate_with_error_method_info() -> &'static ::unity::il2cpp::MethodInfo {
524        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
525    }
526
527    pub fn populate_always_method_info() -> &'static ::unity::il2cpp::MethodInfo {
528        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
529    }
530
531    pub fn get_verts_method_info() -> &'static ::unity::il2cpp::MethodInfo {
532        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
533    }
534
535    pub fn get_characters_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
536        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
537    }
538
539    pub fn get_lines_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
541    }
542
543    pub fn get_rect_extents_method_info() -> &'static ::unity::il2cpp::MethodInfo {
544        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
545    }
546
547    pub fn get_character_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
548        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
549    }
550
551    pub fn get_line_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
552        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
553    }
554
555    pub fn internal_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
556        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
557    }
558
559    pub fn internal_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
560        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
561    }
562
563    pub fn populate_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
564        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
565    }
566
567    pub fn populate_internal_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
568        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
569    }
570
571    pub fn get_vertices_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
572        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
573    }
574
575    pub fn get_characters_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
576        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
577    }
578
579    pub fn get_lines_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
580        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
581    }
582
583    pub fn get_rect_extents_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
584        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
585    }
586
587    pub fn populate_internal_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
588        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
589    }
590}
591
592#[cfg(feature = "unity_engine-textgenerator")]
593impl TextGenerator {
594    #[doc = "Direct (non-virtual) call to `TextGenerator`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
595    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
596        let __mi = Self::finalize_method_info();
597        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
598        __inner(this.into(), ::core::option::Option::None)
599    }
600
601    #[doc = "Direct (non-virtual) call to `TextGenerator`'s own `System.IDisposable.Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
602    pub unsafe fn system_i_disposable_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
603        let __mi = Self::system_i_disposable_dispose_method_info();
604        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
605        __inner(this.into(), ::core::option::Option::None)
606    }
607}
608
609#[cfg(feature = "unity_engine-textgenerator")]
610impl TextGenerator {
611    #[doc = "`.ctor()` — no args"]
612    pub fn new() -> Self {
613        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
614            panic!(
615                "{}
616::{}
617 failed to instantiate",
618                ::core::stringify!(TextGenerator),
619                ::core::stringify!(new),
620            )
621        });
622        <Self as ITextGeneratorMethods>::ctor(this);
623        this
624    }
625
626    #[doc = "`.ctor(i32)` — overload selector"]
627    pub fn new_2(initial_capacity: i32) -> Self {
628        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
629            panic!(
630                "{}
631::{}
632 failed to instantiate",
633                ::core::stringify!(TextGenerator),
634                ::core::stringify!(new_2),
635            )
636        });
637        <Self as ITextGeneratorMethods>::ctor_2(this, initial_capacity);
638        this
639    }
640}
641
642#[cfg(feature = "unity_engine-textgenerator")]
643#[doc(hidden)]
644pub mod prelude {
645    pub use super::{ITextGenerator, ITextGeneratorMethods, TextGenerator};
646    pub use crate::system::object::IObject;
647    #[cfg(feature = "system-object")]
648    pub use crate::system::object::IObjectMethods;
649}