1#[cfg(feature = "unity_engine-text_core-low_level-fontengine-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/text_core/low_level/fontengine/FontEngine.md"))]
11 #[::unity::class(namespace = "UnityEngine.TextCore.LowLevel", name = "FontEngine")]
12 #[parent(crate::system::object::Object)]
13 pub struct FontEngine {
14 #[static_field]
15 #[rename(name = "s_Glyphs")]
16 pub s_glyphs: ::unity::Array<crate::unity_engine::text_core::glyph::Glyph>,
17 #[static_field]
18 #[rename(name = "s_GlyphIndexes_MarshallingArray_A")]
19 pub s_glyph_indexes_marshalling_array_a: ::unity::Array<u32>,
20 #[static_field]
21 #[rename(name = "s_GlyphMarshallingStruct_IN")]
22 pub s_glyph_marshalling_struct_in: ::unity::Array<crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct>,
23 #[static_field]
24 #[rename(name = "s_GlyphMarshallingStruct_OUT")]
25 pub s_glyph_marshalling_struct_out: ::unity::Array<crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct>,
26 #[static_field]
27 #[rename(name = "s_FreeGlyphRects")]
28 pub s_free_glyph_rects: ::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>,
29 #[static_field]
30 #[rename(name = "s_UsedGlyphRects")]
31 pub s_used_glyph_rects: ::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>,
32 #[static_field]
33 #[rename(name = "s_PairAdjustmentRecords_MarshallingArray")]
34 pub s_pair_adjustment_records_marshalling_array:
35 ::unity::Array<crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord>,
36 #[static_field]
37 #[rename(name = "s_GlyphLookupDictionary")]
38 pub s_glyph_lookup_dictionary:
39 crate::system::collections::generic::dictionary_2::Dictionary_2<u32, crate::unity_engine::text_core::glyph::Glyph>,
40 }
41}
42
43#[cfg(feature = "unity_engine-text_core-low_level-fontengine-types")]
44pub use __types::*;
45
46#[cfg(feature = "unity_engine-text_core-low_level-fontengine")]
47impl FontEngine {
48 #[doc = "`InitializeFontEngine()` overload"]
49 pub fn initialize_font_engine() -> crate::unity_engine::text_core::low_level::fontengineerror::FontEngineError {
50 unsafe {
51 ::unity::il2cpp_call!((::unity::module_base()+0x3f2c460usize)as*mut u8,crate::unity_engine::text_core::low_level::fontengineerror::FontEngineError;
52 )
53 }
54 }
55
56 #[doc = "`InitializeFontEngine_Internal()` overload"]
57 pub fn initialize_font_engine_internal() -> i32 {
58 unsafe {
59 ::unity::il2cpp_call!((::unity::module_base()+0x3f2c4f0usize)as*mut u8,i32;
60 )
61 }
62 }
63
64 #[doc = "`LoadFontFace(crate::unity_engine::font::Font, i32)` overload"]
65 pub fn load_font_face(
66 font: impl ::core::convert::Into<crate::unity_engine::font::Font>,
67 point_size: impl ::core::convert::Into<i32>,
68 ) -> crate::unity_engine::text_core::low_level::fontengineerror::FontEngineError {
69 unsafe {
70 ::unity::il2cpp_call!((::unity::module_base()+0x3f2c530usize)as*mut u8,crate::unity_engine::text_core::low_level::fontengineerror::FontEngineError;
71(crate::unity_engine::font::Font)::core::convert::Into::into(font),(i32)::core::convert::Into::into(point_size))
72 }
73 }
74
75 #[doc = "`LoadFontFace_With_Size_FromFont_Internal(crate::unity_engine::font::Font, i32)` overload"]
76 pub fn load_font_face_with_size_from_font_internal(
77 font: impl ::core::convert::Into<crate::unity_engine::font::Font>,
78 point_size: impl ::core::convert::Into<i32>,
79 ) -> i32 {
80 unsafe {
81 ::unity::il2cpp_call!((::unity::module_base()+0x3f2c5d0usize)as*mut u8,i32;
82(crate::unity_engine::font::Font)::core::convert::Into::into(font),(i32)::core::convert::Into::into(point_size))
83 }
84 }
85
86 #[doc = "`GetFaceInfo()` overload"]
87 pub fn get_face_info() -> crate::unity_engine::text_core::faceinfo::FaceInfo {
88 unsafe {
89 ::unity::il2cpp_call!((::unity::module_base()+0x3f2c620usize)as*mut u8,crate::unity_engine::text_core::faceinfo::FaceInfo;
90 )
91 }
92 }
93
94 #[doc = "`GetFaceInfo_Internal(*mutcrate::unity_engine::text_core::faceinfo::FaceInfo)` overload"]
95 pub fn get_face_info_internal() -> (i32, crate::unity_engine::text_core::faceinfo::FaceInfo) {
96 unsafe {
97 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::text_core::faceinfo::FaceInfo>::uninit();
98 let __ret = {
99 ::unity::il2cpp_call!((::unity::module_base()+0x3f2c710usize)as*mut u8,i32;
100(*mut crate::unity_engine::text_core::faceinfo::FaceInfo)__out_0.as_mut_ptr())
101 };
102 (__ret, __out_0.assume_init())
103 }
104 }
105
106 #[doc = "`GetGlyphIndex(u32)` overload"]
107 pub fn get_glyph_index(unicode: impl ::core::convert::Into<u32>) -> u32 {
108 unsafe {
109 ::unity::il2cpp_call!((::unity::module_base()+0x3f2c760usize)as*mut u8,u32;
110(u32)::core::convert::Into::into(unicode))
111 }
112 }
113
114 #[doc = "`TryGetGlyphWithUnicodeValue(u32, crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags, *mutcrate::unity_engine::text_core::glyph::Glyph)` overload"]
115 pub fn try_get_glyph_with_unicode_value(
116 unicode: impl ::core::convert::Into<u32>,
117 flags: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags>,
118 ) -> (bool, crate::unity_engine::text_core::glyph::Glyph) {
119 unsafe {
120 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::text_core::glyph::Glyph>::uninit();
121 let __ret = {
122 ::unity::il2cpp_call!((::unity::module_base()+0x3f2c7b0usize)as*mut u8,bool;
123(u32)::core::convert::Into::into(unicode),(crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags)::core::convert::Into::into(flags),(*mut crate::unity_engine::text_core::glyph::Glyph)__out_0.as_mut_ptr())
124 };
125 (__ret, __out_0.assume_init())
126 }
127 }
128
129 #[doc = "`TryGetGlyphWithUnicodeValue_Internal(u32, crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags, *mutcrate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct)` overload"]
130 pub fn try_get_glyph_with_unicode_value_internal(
131 unicode: impl ::core::convert::Into<u32>,
132 load_flags: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags>,
133 ) -> (
134 bool,
135 crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct,
136 ) {
137 unsafe {
138 let mut __out_0 =
139 ::core::mem::MaybeUninit::<crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct>::uninit();
140 let __ret = {
141 ::unity::il2cpp_call!((::unity::module_base()+0x3f2c920usize)as*mut u8,bool;
142(u32)::core::convert::Into::into(unicode),(crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags)::core::convert::Into::into(load_flags),(*mut crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct)__out_0.as_mut_ptr())
143 };
144 (__ret, __out_0.assume_init())
145 }
146 }
147
148 #[doc = "`TryGetGlyphWithIndexValue(u32, crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags, *mutcrate::unity_engine::text_core::glyph::Glyph)` overload"]
149 pub fn try_get_glyph_with_index_value(
150 glyph_index: impl ::core::convert::Into<u32>,
151 flags: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags>,
152 ) -> (bool, crate::unity_engine::text_core::glyph::Glyph) {
153 unsafe {
154 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::text_core::glyph::Glyph>::uninit();
155 let __ret = {
156 ::unity::il2cpp_call!((::unity::module_base()+0x3f2ca00usize)as*mut u8,bool;
157(u32)::core::convert::Into::into(glyph_index),(crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags)::core::convert::Into::into(flags),(*mut crate::unity_engine::text_core::glyph::Glyph)__out_0.as_mut_ptr())
158 };
159 (__ret, __out_0.assume_init())
160 }
161 }
162
163 #[doc = "`TryGetGlyphWithIndexValue_Internal(u32, crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags, *mutcrate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct)` overload"]
164 pub fn try_get_glyph_with_index_value_internal(
165 glyph_index: impl ::core::convert::Into<u32>,
166 load_flags: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags>,
167 ) -> (
168 bool,
169 crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct,
170 ) {
171 unsafe {
172 let mut __out_0 =
173 ::core::mem::MaybeUninit::<crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct>::uninit();
174 let __ret = {
175 ::unity::il2cpp_call!((::unity::module_base()+0x3f2cb70usize)as*mut u8,bool;
176(u32)::core::convert::Into::into(glyph_index),(crate::unity_engine::text_core::low_level::glyphloadflags::GlyphLoadFlags)::core::convert::Into::into(load_flags),(*mut crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct)__out_0.as_mut_ptr())
177 };
178 (__ret, __out_0.assume_init())
179 }
180 }
181
182 #[doc = "`TryAddGlyphToTexture(u32, i32, crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode, crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>, crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>, crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode, crate::unity_engine::texture2d::Texture2D, *mutcrate::unity_engine::text_core::glyph::Glyph)` overload"]
183 pub fn try_add_glyph_to_texture(
184 glyph_index: impl ::core::convert::Into<u32>,
185 padding: impl ::core::convert::Into<i32>,
186 packing_mode: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode>,
187 free_glyph_rects: impl ::core::convert::Into<
188 crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>,
189 >,
190 used_glyph_rects: impl ::core::convert::Into<
191 crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>,
192 >,
193 render_mode: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode>,
194 texture: impl ::core::convert::Into<crate::unity_engine::texture2d::Texture2D>,
195 ) -> (bool, crate::unity_engine::text_core::glyph::Glyph) {
196 unsafe {
197 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::text_core::glyph::Glyph>::uninit();
198 let __ret = {
199 ::unity::il2cpp_call!((::unity::module_base()+0x3f2cbd0usize)as*mut u8,bool;
200(u32)::core::convert::Into::into(glyph_index),(i32)::core::convert::Into::into(padding),(crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode)::core::convert::Into::into(packing_mode),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>)::core::convert::Into::into(free_glyph_rects),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>)::core::convert::Into::into(used_glyph_rects),(crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode)::core::convert::Into::into(render_mode),(crate::unity_engine::texture2d::Texture2D)::core::convert::Into::into(texture),(*mut crate::unity_engine::text_core::glyph::Glyph)__out_0.as_mut_ptr())
201 };
202 (__ret, __out_0.assume_init())
203 }
204 }
205
206 #[doc = "`TryAddGlyphToTexture_Internal(u32, i32, crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode, ::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>, *muti32, ::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>, *muti32, crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode, crate::unity_engine::texture2d::Texture2D, *mutcrate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct)` overload"]
207 pub fn try_add_glyph_to_texture_internal(
208 glyph_index: impl ::core::convert::Into<u32>,
209 padding: impl ::core::convert::Into<i32>,
210 packing_mode: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode>,
211 free_glyph_rects: impl ::core::convert::Into<::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>>,
212 used_glyph_rects: impl ::core::convert::Into<::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>>,
213 render_mode: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode>,
214 texture: impl ::core::convert::Into<crate::unity_engine::texture2d::Texture2D>,
215 ) -> (
216 bool,
217 i32,
218 i32,
219 crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct,
220 ) {
221 unsafe {
222 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
223 let mut __out_1 = ::core::mem::MaybeUninit::<i32>::uninit();
224 let mut __out_2 =
225 ::core::mem::MaybeUninit::<crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct>::uninit();
226 let __ret = {
227 ::unity::il2cpp_call!((::unity::module_base()+0x3f2d090usize)as*mut u8,bool;
228(u32)::core::convert::Into::into(glyph_index),(i32)::core::convert::Into::into(padding),(crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode)::core::convert::Into::into(packing_mode),(::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>)::core::convert::Into::into(free_glyph_rects),(*mut i32)__out_0.as_mut_ptr(),(::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>)::core::convert::Into::into(used_glyph_rects),(*mut i32)__out_1.as_mut_ptr(),(crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode)::core::convert::Into::into(render_mode),(crate::unity_engine::texture2d::Texture2D)::core::convert::Into::into(texture),(*mut crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct)__out_2.as_mut_ptr())
229 };
230 (__ret, __out_0.assume_init(), __out_1.assume_init(), __out_2.assume_init())
231 }
232 }
233
234 #[doc = "`TryAddGlyphsToTexture(crate::system::collections::generic::list_1::List_1<u32>, i32, crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode, crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>, crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>, crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode, crate::unity_engine::texture2d::Texture2D, *mut::unity::Array<crate::unity_engine::text_core::glyph::Glyph>)` overload"]
235 pub fn try_add_glyphs_to_texture(
236 glyph_indexes: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<u32>>,
237 padding: impl ::core::convert::Into<i32>,
238 packing_mode: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode>,
239 free_glyph_rects: impl ::core::convert::Into<
240 crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>,
241 >,
242 used_glyph_rects: impl ::core::convert::Into<
243 crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>,
244 >,
245 render_mode: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode>,
246 texture: impl ::core::convert::Into<crate::unity_engine::texture2d::Texture2D>,
247 ) -> (bool, ::unity::Array<crate::unity_engine::text_core::glyph::Glyph>) {
248 unsafe {
249 let mut __out_0 = ::core::mem::MaybeUninit::<::unity::Array<crate::unity_engine::text_core::glyph::Glyph>>::uninit();
250 let __ret = {
251 ::unity::il2cpp_call!((::unity::module_base()+0x3f2d140usize)as*mut u8,bool;
252(crate::system::collections::generic::list_1::List_1<u32>)::core::convert::Into::into(glyph_indexes),(i32)::core::convert::Into::into(padding),(crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode)::core::convert::Into::into(packing_mode),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>)::core::convert::Into::into(free_glyph_rects),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::text_core::glyphrect::GlyphRect>)::core::convert::Into::into(used_glyph_rects),(crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode)::core::convert::Into::into(render_mode),(crate::unity_engine::texture2d::Texture2D)::core::convert::Into::into(texture),(*mut::unity::Array<crate::unity_engine::text_core::glyph::Glyph>)__out_0.as_mut_ptr())
253 };
254 (__ret, __out_0.assume_init())
255 }
256 }
257
258 #[doc = "`TryAddGlyphsToTexture_Internal(::unity::Array<u32>, i32, crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode, ::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>, *muti32, ::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>, *muti32, crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode, crate::unity_engine::texture2d::Texture2D, ::unity::Array<crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct>, *muti32)` overload"]
259 pub fn try_add_glyphs_to_texture_internal(
260 glyph_index: impl ::core::convert::Into<::unity::Array<u32>>,
261 padding: impl ::core::convert::Into<i32>,
262 packing_mode: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode>,
263 free_glyph_rects: impl ::core::convert::Into<::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>>,
264 used_glyph_rects: impl ::core::convert::Into<::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>>,
265 render_mode: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode>,
266 texture: impl ::core::convert::Into<crate::unity_engine::texture2d::Texture2D>,
267 glyphs: impl ::core::convert::Into<::unity::Array<crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct>>,
268 ) -> (bool, i32, i32, i32) {
269 unsafe {
270 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
271 let mut __out_1 = ::core::mem::MaybeUninit::<i32>::uninit();
272 let mut __out_2 = ::core::mem::MaybeUninit::<i32>::uninit();
273 let __ret = {
274 ::unity::il2cpp_call!((::unity::module_base()+0x3f2db20usize)as*mut u8,bool;
275(::unity::Array<u32>)::core::convert::Into::into(glyph_index),(i32)::core::convert::Into::into(padding),(crate::unity_engine::text_core::low_level::glyphpackingmode::GlyphPackingMode)::core::convert::Into::into(packing_mode),(::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>)::core::convert::Into::into(free_glyph_rects),(*mut i32)__out_0.as_mut_ptr(),(::unity::Array<crate::unity_engine::text_core::glyphrect::GlyphRect>)::core::convert::Into::into(used_glyph_rects),(*mut i32)__out_1.as_mut_ptr(),(crate::unity_engine::text_core::low_level::glyphrendermode::GlyphRenderMode)::core::convert::Into::into(render_mode),(crate::unity_engine::texture2d::Texture2D)::core::convert::Into::into(texture),(::unity::Array<crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct>)::core::convert::Into::into(glyphs),(*mut i32)__out_2.as_mut_ptr())
276 };
277 (__ret, __out_0.assume_init(), __out_1.assume_init(), __out_2.assume_init())
278 }
279 }
280
281 #[doc = "`GetGlyphPairAdjustmentTable(::unity::Array<u32>)` overload"]
282 pub fn get_glyph_pair_adjustment_table(
283 glyph_indexes: impl ::core::convert::Into<::unity::Array<u32>>,
284 ) -> ::unity::Array<crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord> {
285 unsafe {
286 ::unity::il2cpp_call!((::unity::module_base()+0x3f2dbe0usize)as*mut u8, ::unity::Array<crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord> ;
287(::unity::Array<u32>)::core::convert::Into::into(glyph_indexes))
288 }
289 }
290
291 #[doc = "`GetGlyphPairAdjustmentRecords(crate::system::collections::generic::list_1::List_1<u32>, *muti32)` overload"]
292 pub fn get_glyph_pair_adjustment_records(
293 glyph_indexes: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<u32>>,
294 ) -> (
295 ::unity::Array<crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord>,
296 i32,
297 ) {
298 unsafe {
299 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
300 let __ret = {
301 ::unity::il2cpp_call!((::unity::module_base()+0x3f2de10usize)as*mut u8, ::unity::Array<crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord> ;
302(crate::system::collections::generic::list_1::List_1<u32>)::core::convert::Into::into(glyph_indexes),(*mut i32)__out_0.as_mut_ptr())
303 };
304 (__ret, __out_0.assume_init())
305 }
306 }
307
308 #[doc = "`PopulatePairAdjustmentRecordMarshallingArray_from_GlyphIndexes(::unity::Array<u32>, *muti32)` overload"]
309 pub fn populate_pair_adjustment_record_marshalling_array_from_glyph_indexes(
310 glyph_indexes: impl ::core::convert::Into<::unity::Array<u32>>,
311 ) -> (i32, i32) {
312 unsafe {
313 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
314 let __ret = {
315 ::unity::il2cpp_call!((::unity::module_base()+0x3f2dd70usize)as*mut u8,i32;
316(::unity::Array<u32>)::core::convert::Into::into(glyph_indexes),(*mut i32)__out_0.as_mut_ptr())
317 };
318 (__ret, __out_0.assume_init())
319 }
320 }
321
322 #[doc = "`GetGlyphPairAdjustmentRecordsFromMarshallingArray(::unity::Array<crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord>)` overload"]
323 pub fn get_glyph_pair_adjustment_records_from_marshalling_array(
324 glyph_pair_adjustment_records: impl ::core::convert::Into<
325 ::unity::Array<crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord>,
326 >,
327 ) -> i32 {
328 unsafe {
329 ::unity::il2cpp_call!((::unity::module_base()+0x3f2ddc0usize)as*mut u8,i32;
330(::unity::Array<crate::unity_engine::text_core::low_level::glyphpairadjustmentrecord::GlyphPairAdjustmentRecord>)::core::convert::Into::into(glyph_pair_adjustment_records))
331 }
332 }
333
334 pub fn generic_list_to_marshalling_array<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
335 src_list: impl ::core::convert::Into<*mut crate::system::collections::generic::list_1::List_1<M0>>,
336 dst_array: impl ::core::convert::Into<*mut ::unity::Array<M0>>,
337 ) -> () {
338 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
339 ::unity::lookup::method_info_on_class(<FontEngine as ::unity::ClassIdentity>::class(), "GenericListToMarshallingArray", 2)
340 });
341 #[allow(clippy::type_complexity)]
342 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
343 ::std::sync::OnceLock::new();
344 let _ = true;
345 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
346 ::core::result::Result::Ok(mi) => *mi,
347 ::core::result::Result::Err(e) => {
348 panic!(
349 "method lookup failed: {}
350::{}
351: {}
352",
353 <FontEngine as ::unity::ClassIdentity>::NAME,
354 "GenericListToMarshallingArray",
355 e
356 )
357 },
358 };
359 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
360 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
361 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
362 let mut __guard = __cache.lock().unwrap();
363 *__guard
364 .entry(__key)
365 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
366 };
367 unsafe {
368 let __f: extern "C" fn(
369 *mut crate::system::collections::generic::list_1::List_1<M0>,
370 *mut ::unity::Array<M0>,
371 ::unity::OptionalMethod,
372 ) -> () = ::core::mem::transmute(__inflated.method_ptr);
373 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
374 __f(
375 ::core::convert::Into::into(src_list),
376 ::core::convert::Into::into(dst_array),
377 ::core::option::Option::Some(__mi_opaque),
378 )
379 }
380 }
381
382 pub fn set_marshalling_array_size<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
383 marshalling_array: impl ::core::convert::Into<*mut ::unity::Array<M0>>,
384 record_count: impl ::core::convert::Into<i32>,
385 ) -> () {
386 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
387 ::unity::lookup::method_info_on_class(<FontEngine as ::unity::ClassIdentity>::class(), "SetMarshallingArraySize", 2)
388 });
389 #[allow(clippy::type_complexity)]
390 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
391 ::std::sync::OnceLock::new();
392 let _ = true;
393 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
394 ::core::result::Result::Ok(mi) => *mi,
395 ::core::result::Result::Err(e) => {
396 panic!(
397 "method lookup failed: {}
398::{}
399: {}
400",
401 <FontEngine as ::unity::ClassIdentity>::NAME,
402 "SetMarshallingArraySize",
403 e
404 )
405 },
406 };
407 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
408 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
409 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
410 let mut __guard = __cache.lock().unwrap();
411 *__guard
412 .entry(__key)
413 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
414 };
415 unsafe {
416 let __f: extern "C" fn(*mut ::unity::Array<M0>, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__inflated.method_ptr);
417 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
418 __f(
419 ::core::convert::Into::into(marshalling_array),
420 ::core::convert::Into::into(record_count),
421 ::core::option::Option::Some(__mi_opaque),
422 )
423 }
424 }
425
426 #[doc = "`ResetAtlasTexture(crate::unity_engine::texture2d::Texture2D)` overload"]
427 pub fn reset_atlas_texture(texture: impl ::core::convert::Into<crate::unity_engine::texture2d::Texture2D>) -> () {
428 unsafe {
429 ::unity::il2cpp_call!((::unity::module_base()+0x3f2dfc0usize)as*mut u8,();
430(crate::unity_engine::texture2d::Texture2D)::core::convert::Into::into(texture))
431 }
432 }
433
434 #[doc = "`.cctor()` overload"]
435 pub fn cctor() -> () {
436 unsafe {
437 ::unity::il2cpp_call!((::unity::module_base()+0x3f2e010usize)as*mut u8,();
438 )
439 }
440 }
441}
442
443#[cfg(feature = "unity_engine-text_core-low_level-fontengine")]
444impl FontEngine {
445 pub fn initialize_font_engine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
447 }
448
449 pub fn initialize_font_engine_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
450 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
451 }
452
453 pub fn load_font_face_method_info() -> &'static ::unity::il2cpp::MethodInfo {
454 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
455 }
456
457 pub fn load_font_face_with_size_from_font_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
458 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
459 }
460
461 pub fn get_face_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
462 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
463 }
464
465 pub fn get_face_info_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
466 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
467 }
468
469 pub fn get_glyph_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
470 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
471 }
472
473 pub fn try_get_glyph_with_unicode_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
474 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
475 }
476
477 pub fn try_get_glyph_with_unicode_value_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
478 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
479 }
480
481 pub fn try_get_glyph_with_index_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
482 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
483 }
484
485 pub fn try_get_glyph_with_index_value_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
486 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
487 }
488
489 pub fn try_add_glyph_to_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
490 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
491 }
492
493 pub fn try_add_glyph_to_texture_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
494 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
495 }
496
497 pub fn try_add_glyphs_to_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
498 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
499 }
500
501 pub fn try_add_glyphs_to_texture_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
502 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
503 }
504
505 pub fn get_glyph_pair_adjustment_table_method_info() -> &'static ::unity::il2cpp::MethodInfo {
506 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
507 }
508
509 pub fn get_glyph_pair_adjustment_records_method_info() -> &'static ::unity::il2cpp::MethodInfo {
510 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
511 }
512
513 pub fn populate_pair_adjustment_record_marshalling_array_from_glyph_indexes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
515 }
516
517 pub fn get_glyph_pair_adjustment_records_from_marshalling_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
519 }
520
521 pub fn reset_atlas_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
523 }
524
525 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
527 }
528}
529
530#[cfg(feature = "unity_engine-text_core-low_level-fontengine")]
531#[doc(hidden)]
532pub mod prelude {
533 pub use super::{FontEngine, IFontEngine};
534 pub use crate::system::object::IObject;
535 #[cfg(feature = "system-object")]
536 pub use crate::system::object::IObjectMethods;
537}