Skip to main content

engage/generated/unity_engine/text_core/
glyph.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-text_core-glyph-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/glyph/Glyph.md"))]
11    #[::unity::class(namespace = "UnityEngine.TextCore", name = "Glyph")]
12    #[parent(crate::system::object::Object)]
13    pub struct Glyph {
14        #[offset(16)]
15        #[rename(name = "m_Index")]
16        pub m_index: u32,
17        #[offset(20)]
18        #[rename(name = "m_Metrics")]
19        pub m_metrics: crate::unity_engine::text_core::glyphmetrics::GlyphMetrics,
20        #[offset(40)]
21        #[rename(name = "m_GlyphRect")]
22        pub m_glyph_rect: crate::unity_engine::text_core::glyphrect::GlyphRect,
23        #[offset(56)]
24        #[rename(name = "m_Scale")]
25        pub m_scale: f32,
26        #[offset(60)]
27        #[rename(name = "m_AtlasIndex")]
28        pub m_atlas_index: i32,
29    }
30}
31
32#[cfg(feature = "unity_engine-text_core-glyph-types")]
33pub use __types::*;
34
35#[cfg(feature = "unity_engine-text_core-glyph")]
36pub trait IGlyphMethods: IGlyph {
37    #[doc = "`get_index()` overload"]
38    fn get_index(self) -> u32 {
39        unsafe {
40            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e190usize)as*mut u8,u32;
42(Glyph)__receiver)
43        }
44    }
45    #[doc = "`set_index(u32)` overload"]
46    fn set_index(self, value: impl ::core::convert::Into<u32>) -> () {
47        unsafe {
48            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e1a0usize)as*mut u8,();
50(Glyph)__receiver,(u32)::core::convert::Into::into(value))
51        }
52    }
53    #[doc = "`get_metrics()` overload"]
54    fn get_metrics(self) -> crate::unity_engine::text_core::glyphmetrics::GlyphMetrics {
55        unsafe {
56            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e1b0usize)as*mut u8,crate::unity_engine::text_core::glyphmetrics::GlyphMetrics;
58(Glyph)__receiver)
59        }
60    }
61    #[doc = "`set_metrics(crate::unity_engine::text_core::glyphmetrics::GlyphMetrics)` overload"]
62    fn set_metrics(self, value: impl ::core::convert::Into<crate::unity_engine::text_core::glyphmetrics::GlyphMetrics>) -> () {
63        unsafe {
64            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e1d0usize)as*mut u8,();
66(Glyph)__receiver,(crate::unity_engine::text_core::glyphmetrics::GlyphMetrics)::core::convert::Into::into(value))
67        }
68    }
69    #[doc = "`get_glyphRect()` overload"]
70    fn get_glyph_rect(self) -> crate::unity_engine::text_core::glyphrect::GlyphRect {
71        unsafe {
72            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e1f0usize)as*mut u8,crate::unity_engine::text_core::glyphrect::GlyphRect;
74(Glyph)__receiver)
75        }
76    }
77    #[doc = "`set_glyphRect(crate::unity_engine::text_core::glyphrect::GlyphRect)` overload"]
78    fn set_glyph_rect(self, value: impl ::core::convert::Into<crate::unity_engine::text_core::glyphrect::GlyphRect>) -> () {
79        unsafe {
80            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e200usize)as*mut u8,();
82(Glyph)__receiver,(crate::unity_engine::text_core::glyphrect::GlyphRect)::core::convert::Into::into(value))
83        }
84    }
85    #[doc = "`get_scale()` overload"]
86    fn get_scale(self) -> f32 {
87        unsafe {
88            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e210usize)as*mut u8,f32;
90(Glyph)__receiver)
91        }
92    }
93    #[doc = "`set_scale(f32)` overload"]
94    fn set_scale(self, value: impl ::core::convert::Into<f32>) -> () {
95        unsafe {
96            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e220usize)as*mut u8,();
98(Glyph)__receiver,(f32)::core::convert::Into::into(value))
99        }
100    }
101    #[doc = "`get_atlasIndex()` overload"]
102    fn get_atlas_index(self) -> i32 {
103        unsafe {
104            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e230usize)as*mut u8,i32;
106(Glyph)__receiver)
107        }
108    }
109    #[doc = "`set_atlasIndex(i32)` overload"]
110    fn set_atlas_index(self, value: impl ::core::convert::Into<i32>) -> () {
111        unsafe {
112            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e240usize)as*mut u8,();
114(Glyph)__receiver,(i32)::core::convert::Into::into(value))
115        }
116    }
117    #[doc = "`.ctor()` overload"]
118    fn ctor(self) -> () {
119        unsafe {
120            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e250usize)as*mut u8,();
122(Glyph)__receiver)
123        }
124    }
125    #[doc = "`.ctor(crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct)` overload"]
126    fn ctor_2(
127        self,
128        glyph_struct: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct>,
129    ) -> () {
130        unsafe {
131            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x3f2c980usize)as*mut u8,();
133(Glyph)__receiver,(crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct)::core::convert::Into::into(glyph_struct))
134        }
135    }
136    #[doc = "`.ctor(u32, crate::unity_engine::text_core::glyphmetrics::GlyphMetrics, crate::unity_engine::text_core::glyphrect::GlyphRect, f32, i32)` overload"]
137    fn ctor_3(
138        self,
139        index: impl ::core::convert::Into<u32>,
140        metrics: impl ::core::convert::Into<crate::unity_engine::text_core::glyphmetrics::GlyphMetrics>,
141        glyph_rect: impl ::core::convert::Into<crate::unity_engine::text_core::glyphrect::GlyphRect>,
142        scale: impl ::core::convert::Into<f32>,
143        atlas_index: impl ::core::convert::Into<i32>,
144    ) -> () {
145        unsafe {
146            let __receiver = <Glyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x3f2e290usize)as*mut u8,();
148(Glyph)__receiver,(u32)::core::convert::Into::into(index),(crate::unity_engine::text_core::glyphmetrics::GlyphMetrics)::core::convert::Into::into(metrics),(crate::unity_engine::text_core::glyphrect::GlyphRect)::core::convert::Into::into(glyph_rect),(f32)::core::convert::Into::into(scale),(i32)::core::convert::Into::into(atlas_index))
149        }
150    }
151}
152
153#[cfg(feature = "unity_engine-text_core-glyph")]
154impl<__T: IGlyph> IGlyphMethods for __T {}
155
156#[cfg(feature = "unity_engine-text_core-glyph")]
157impl Glyph {
158    pub fn get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
160    }
161
162    pub fn set_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
164    }
165
166    pub fn get_metrics_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
168    }
169
170    pub fn set_metrics_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
172    }
173
174    pub fn get_glyph_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
176    }
177
178    pub fn set_glyph_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
180    }
181
182    pub fn get_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
184    }
185
186    pub fn set_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
188    }
189
190    pub fn get_atlas_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
192    }
193
194    pub fn set_atlas_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
196    }
197
198    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
200    }
201
202    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
204    }
205
206    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
208    }
209}
210
211#[cfg(feature = "unity_engine-text_core-glyph")]
212impl Glyph {
213    #[doc = "`.ctor()` — no args"]
214    pub fn new() -> Self {
215        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
216            panic!(
217                "{}
218::{}
219 failed to instantiate",
220                ::core::stringify!(Glyph),
221                ::core::stringify!(new),
222            )
223        });
224        <Self as IGlyphMethods>::ctor(this);
225        this
226    }
227
228    #[doc = "`.ctor(crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct)` — overload selector"]
229    pub fn new_2(glyph_struct: crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct) -> Self {
230        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
231            panic!(
232                "{}
233::{}
234 failed to instantiate",
235                ::core::stringify!(Glyph),
236                ::core::stringify!(new_2),
237            )
238        });
239        <Self as IGlyphMethods>::ctor_2(this, glyph_struct);
240        this
241    }
242
243    #[doc = "`.ctor(u32, crate::unity_engine::text_core::glyphmetrics::GlyphMetrics, crate::unity_engine::text_core::glyphrect::GlyphRect, f32, i32)` — overload selector"]
244    pub fn new_3(
245        index: u32,
246        metrics: crate::unity_engine::text_core::glyphmetrics::GlyphMetrics,
247        glyph_rect: crate::unity_engine::text_core::glyphrect::GlyphRect,
248        scale: f32,
249        atlas_index: i32,
250    ) -> Self {
251        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
252            panic!(
253                "{}
254::{}
255 failed to instantiate",
256                ::core::stringify!(Glyph),
257                ::core::stringify!(new_3),
258            )
259        });
260        <Self as IGlyphMethods>::ctor_3(this, index, metrics, glyph_rect, scale, atlas_index);
261        this
262    }
263}
264
265#[cfg(feature = "unity_engine-text_core-glyph")]
266#[doc(hidden)]
267pub mod prelude {
268    pub use super::{Glyph, IGlyph, IGlyphMethods};
269    pub use crate::system::object::IObject;
270    #[cfg(feature = "system-object")]
271    pub use crate::system::object::IObjectMethods;
272}