1#[cfg(feature = "unity_engine-ui-image-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
14 unity_engine::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
18 monobehaviour::{IMonoBehaviour, MonoBehaviour},
19 object_2::{IObject_2, Object_2},
20 ui::{
21 graphic::{Graphic, IGraphic},
22 maskablegraphic::{IMaskableGraphic, MaskableGraphic},
23 },
24 },
25 };
26
27 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/image/Image_FillMethod.md"))]
28 #[repr(C)]
29 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
30 pub struct Image_FillMethod {
31 pub value: i32,
32 }
33 impl ::unity::ClassIdentity for Image_FillMethod {
34 const NAME: &'static str = "Image.FillMethod";
35 const NAMESPACE: &'static str = "UnityEngine.UI";
36
37 fn class() -> ::unity::Class {
38 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
39 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
40 }
41 }
42 impl ::unity::IlType for Image_FillMethod {
43 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
44 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
45 }
46 }
47 impl Image_FillMethod {
48 pub fn horizontal() -> Self {
49 Self { value: 0 }
50 }
51
52 pub fn vertical() -> Self {
53 Self { value: 1 }
54 }
55
56 pub fn radial90() -> Self {
57 Self { value: 2 }
58 }
59
60 pub fn radial180() -> Self {
61 Self { value: 3 }
62 }
63
64 pub fn radial360() -> Self {
65 Self { value: 4 }
66 }
67 }
68
69 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/image/Image_OriginHorizontal.md"))]
70 #[repr(C)]
71 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
72 pub struct Image_OriginHorizontal {
73 pub value: i32,
74 }
75 impl ::unity::ClassIdentity for Image_OriginHorizontal {
76 const NAME: &'static str = "Image.OriginHorizontal";
77 const NAMESPACE: &'static str = "UnityEngine.UI";
78
79 fn class() -> ::unity::Class {
80 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
81 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
82 }
83 }
84 impl ::unity::IlType for Image_OriginHorizontal {
85 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
86 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
87 }
88 }
89 impl Image_OriginHorizontal {
90 pub fn left() -> Self {
91 Self { value: 0 }
92 }
93
94 pub fn right() -> Self {
95 Self { value: 1 }
96 }
97 }
98
99 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/image/Image_OriginVertical.md"))]
100 #[repr(C)]
101 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
102 pub struct Image_OriginVertical {
103 pub value: i32,
104 }
105 impl ::unity::ClassIdentity for Image_OriginVertical {
106 const NAME: &'static str = "Image.OriginVertical";
107 const NAMESPACE: &'static str = "UnityEngine.UI";
108
109 fn class() -> ::unity::Class {
110 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
111 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
112 }
113 }
114 impl ::unity::IlType for Image_OriginVertical {
115 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
116 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
117 }
118 }
119 impl Image_OriginVertical {
120 pub fn bottom() -> Self {
121 Self { value: 0 }
122 }
123
124 pub fn top() -> Self {
125 Self { value: 1 }
126 }
127 }
128
129 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/image/Image.md"))]
130 #[::unity::class(namespace = "UnityEngine.UI", name = "Image")]
131 #[parent(crate::unity_engine::ui::maskablegraphic::MaskableGraphic)]
132 pub struct Image {
133 #[static_field]
134 #[rename(name = "s_ETC1DefaultUI")]
135 pub s_etc1_default_ui: crate::unity_engine::material::Material,
136 #[offset(208)]
137 #[rename(name = "m_Sprite")]
138 pub m_sprite: crate::unity_engine::sprite::Sprite,
139 #[offset(216)]
140 #[rename(name = "m_OverrideSprite")]
141 pub m_override_sprite: crate::unity_engine::sprite::Sprite,
142 #[offset(224)]
143 #[rename(name = "m_Type")]
144 pub m_type: crate::unity_engine::ui::image::Image_Type,
145 #[offset(228)]
146 #[rename(name = "m_PreserveAspect")]
147 pub m_preserve_aspect: bool,
148 #[offset(229)]
149 #[rename(name = "m_FillCenter")]
150 pub m_fill_center: bool,
151 #[offset(232)]
152 #[rename(name = "m_FillMethod")]
153 pub m_fill_method: crate::unity_engine::ui::image::Image_FillMethod,
154 #[offset(236)]
155 #[rename(name = "m_FillAmount")]
156 pub m_fill_amount: f32,
157 #[offset(240)]
158 #[rename(name = "m_FillClockwise")]
159 pub m_fill_clockwise: bool,
160 #[offset(244)]
161 #[rename(name = "m_FillOrigin")]
162 pub m_fill_origin: i32,
163 #[offset(248)]
164 #[rename(name = "m_AlphaHitTestMinimumThreshold")]
165 pub m_alpha_hit_test_minimum_threshold: f32,
166 #[offset(252)]
167 #[rename(name = "m_Tracked")]
168 pub m_tracked: bool,
169 #[offset(253)]
170 #[rename(name = "m_UseSpriteMesh")]
171 pub m_use_sprite_mesh: bool,
172 #[offset(256)]
173 #[rename(name = "m_PixelsPerUnitMultiplier")]
174 pub m_pixels_per_unit_multiplier: f32,
175 #[offset(260)]
176 #[rename(name = "m_CachedReferencePixelsPerUnit")]
177 pub m_cached_reference_pixels_per_unit: f32,
178 #[static_field]
179 #[rename(name = "s_VertScratch")]
180 pub s_vert_scratch: ::unity::Array<crate::unity_engine::vector2::Vector2>,
181 #[static_field]
182 #[rename(name = "s_UVScratch")]
183 pub s_uv_scratch: ::unity::Array<crate::unity_engine::vector2::Vector2>,
184 #[static_field]
185 #[rename(name = "s_Xy")]
186 pub s_xy: ::unity::Array<crate::unity_engine::vector3::Vector3>,
187 #[static_field]
188 #[rename(name = "s_Uv")]
189 pub s_uv: ::unity::Array<crate::unity_engine::vector3::Vector3>,
190 #[static_field]
191 #[rename(name = "m_TrackedTexturelessImages")]
192 pub m_tracked_textureless_images: crate::system::collections::generic::list_1::List_1<crate::unity_engine::ui::image::Image>,
193 #[static_field]
194 #[rename(name = "s_Initialized")]
195 pub s_initialized: bool,
196 }
197
198 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/image/Image_Origin90.md"))]
199 #[repr(C)]
200 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
201 pub struct Image_Origin90 {
202 pub value: i32,
203 }
204 impl ::unity::ClassIdentity for Image_Origin90 {
205 const NAME: &'static str = "Image.Origin90";
206 const NAMESPACE: &'static str = "UnityEngine.UI";
207
208 fn class() -> ::unity::Class {
209 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
210 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
211 }
212 }
213 impl ::unity::IlType for Image_Origin90 {
214 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
215 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
216 }
217 }
218 impl Image_Origin90 {
219 pub fn bottom_left() -> Self {
220 Self { value: 0 }
221 }
222
223 pub fn top_left() -> Self {
224 Self { value: 1 }
225 }
226
227 pub fn top_right() -> Self {
228 Self { value: 2 }
229 }
230
231 pub fn bottom_right() -> Self {
232 Self { value: 3 }
233 }
234 }
235
236 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/image/Image_Origin360.md"))]
237 #[repr(C)]
238 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
239 pub struct Image_Origin360 {
240 pub value: i32,
241 }
242 impl ::unity::ClassIdentity for Image_Origin360 {
243 const NAME: &'static str = "Image.Origin360";
244 const NAMESPACE: &'static str = "UnityEngine.UI";
245
246 fn class() -> ::unity::Class {
247 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
248 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
249 }
250 }
251 impl ::unity::IlType for Image_Origin360 {
252 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
253 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
254 }
255 }
256 impl Image_Origin360 {
257 pub fn bottom() -> Self {
258 Self { value: 0 }
259 }
260
261 pub fn right() -> Self {
262 Self { value: 1 }
263 }
264
265 pub fn top() -> Self {
266 Self { value: 2 }
267 }
268
269 pub fn left() -> Self {
270 Self { value: 3 }
271 }
272 }
273
274 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/image/Image_Origin180.md"))]
275 #[repr(C)]
276 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
277 pub struct Image_Origin180 {
278 pub value: i32,
279 }
280 impl ::unity::ClassIdentity for Image_Origin180 {
281 const NAME: &'static str = "Image.Origin180";
282 const NAMESPACE: &'static str = "UnityEngine.UI";
283
284 fn class() -> ::unity::Class {
285 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
286 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
287 }
288 }
289 impl ::unity::IlType for Image_Origin180 {
290 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
291 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
292 }
293 }
294 impl Image_Origin180 {
295 pub fn bottom() -> Self {
296 Self { value: 0 }
297 }
298
299 pub fn left() -> Self {
300 Self { value: 1 }
301 }
302
303 pub fn top() -> Self {
304 Self { value: 2 }
305 }
306
307 pub fn right() -> Self {
308 Self { value: 3 }
309 }
310 }
311
312 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/image/Image_Type.md"))]
313 #[repr(C)]
314 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
315 pub struct Image_Type {
316 pub value: i32,
317 }
318 impl ::unity::ClassIdentity for Image_Type {
319 const NAME: &'static str = "Image.Type";
320 const NAMESPACE: &'static str = "UnityEngine.UI";
321
322 fn class() -> ::unity::Class {
323 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
324 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
325 }
326 }
327 impl ::unity::IlType for Image_Type {
328 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
329 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
330 }
331 }
332 impl Image_Type {
333 pub fn simple() -> Self {
334 Self { value: 0 }
335 }
336
337 pub fn sliced() -> Self {
338 Self { value: 1 }
339 }
340
341 pub fn tiled() -> Self {
342 Self { value: 2 }
343 }
344
345 pub fn filled() -> Self {
346 Self { value: 3 }
347 }
348 }
349}
350
351#[cfg(feature = "unity_engine-ui-image-types")]
352pub use __types::*;
353
354#[cfg(feature = "unity_engine-ui-image")]
355impl Image {
356 #[doc = "`get_defaultETC1GraphicMaterial()` overload"]
357 pub fn get_default_etc1_graphic_material() -> crate::unity_engine::material::Material {
358 unsafe {
359 ::unity::il2cpp_call!((::unity::module_base()+0x3bedbd0usize)as*mut u8,crate::unity_engine::material::Material;
360 )
361 }
362 }
363
364 #[doc = "`AddQuad(crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::Array<crate::unity_engine::vector3::Vector3>, crate::unity_engine::color32::Color32, ::unity::Array<crate::unity_engine::vector3::Vector3>)` overload"]
365 pub fn add_quad(
366 vertex_helper: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>,
367 quad_positions: impl ::core::convert::Into<::unity::Array<crate::unity_engine::vector3::Vector3>>,
368 color: impl ::core::convert::Into<crate::unity_engine::color32::Color32>,
369 quad_u_vs: impl ::core::convert::Into<::unity::Array<crate::unity_engine::vector3::Vector3>>,
370 ) -> () {
371 unsafe {
372 ::unity::il2cpp_call!((::unity::module_base()+0x3bf2f60usize)as*mut u8,();
373(crate::unity_engine::ui::vertexhelper::VertexHelper)::core::convert::Into::into(vertex_helper),(::unity::Array<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(quad_positions),(crate::unity_engine::color32::Color32)::core::convert::Into::into(color),(::unity::Array<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(quad_u_vs))
374 }
375 }
376
377 #[doc = "`AddQuad(crate::unity_engine::ui::vertexhelper::VertexHelper, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, crate::unity_engine::color32::Color32, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2)` overload"]
378 pub fn add_quad_2(
379 vertex_helper: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>,
380 pos_min: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
381 pos_max: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
382 color: impl ::core::convert::Into<crate::unity_engine::color32::Color32>,
383 uv_min: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
384 uv_max: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
385 ) -> () {
386 unsafe {
387 ::unity::il2cpp_call!((::unity::module_base()+0x3bf2d80usize)as*mut u8,();
388(crate::unity_engine::ui::vertexhelper::VertexHelper)::core::convert::Into::into(vertex_helper),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(pos_min),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(pos_max),(crate::unity_engine::color32::Color32)::core::convert::Into::into(color),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(uv_min),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(uv_max))
389 }
390 }
391
392 #[doc = "`RadialCut(::unity::Array<crate::unity_engine::vector3::Vector3>, ::unity::Array<crate::unity_engine::vector3::Vector3>, f32, bool, i32)` overload"]
393 pub fn radial_cut(
394 xy: impl ::core::convert::Into<::unity::Array<crate::unity_engine::vector3::Vector3>>,
395 uv: impl ::core::convert::Into<::unity::Array<crate::unity_engine::vector3::Vector3>>,
396 fill: impl ::core::convert::Into<f32>,
397 invert: impl ::core::convert::Into<bool>,
398 corner: impl ::core::convert::Into<i32>,
399 ) -> bool {
400 unsafe {
401 ::unity::il2cpp_call!((::unity::module_base()+0x3bf31a0usize)as*mut u8,bool;
402(::unity::Array<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(xy),(::unity::Array<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(uv),(f32)::core::convert::Into::into(fill),(bool)::core::convert::Into::into(invert),(i32)::core::convert::Into::into(corner))
403 }
404 }
405
406 #[doc = "`RadialCut(::unity::Array<crate::unity_engine::vector3::Vector3>, f32, f32, bool, i32)` overload"]
407 pub fn radial_cut_2(
408 xy: impl ::core::convert::Into<::unity::Array<crate::unity_engine::vector3::Vector3>>,
409 cos: impl ::core::convert::Into<f32>,
410 sin: impl ::core::convert::Into<f32>,
411 invert: impl ::core::convert::Into<bool>,
412 corner: impl ::core::convert::Into<i32>,
413 ) -> () {
414 unsafe {
415 ::unity::il2cpp_call!((::unity::module_base()+0x3bf32f0usize)as*mut u8,();
416(::unity::Array<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(xy),(f32)::core::convert::Into::into(cos),(f32)::core::convert::Into::into(sin),(bool)::core::convert::Into::into(invert),(i32)::core::convert::Into::into(corner))
417 }
418 }
419
420 #[doc = "`RebuildImage(crate::unity_engine::u2d::spriteatlas::SpriteAtlas)` overload"]
421 pub fn rebuild_image(sprite_atlas: impl ::core::convert::Into<crate::unity_engine::u2d::spriteatlas::SpriteAtlas>) -> () {
422 unsafe {
423 ::unity::il2cpp_call!((::unity::module_base()+0x3bf4530usize)as*mut u8,();
424(crate::unity_engine::u2d::spriteatlas::SpriteAtlas)::core::convert::Into::into(sprite_atlas))
425 }
426 }
427
428 #[doc = "`TrackImage(crate::unity_engine::ui::image::Image)` overload"]
429 pub fn track_image(g: impl ::core::convert::Into<crate::unity_engine::ui::image::Image>) -> () {
430 unsafe {
431 ::unity::il2cpp_call!((::unity::module_base()+0x3bf2400usize)as*mut u8,();
432(crate::unity_engine::ui::image::Image)::core::convert::Into::into(g))
433 }
434 }
435
436 #[doc = "`UnTrackImage(crate::unity_engine::ui::image::Image)` overload"]
437 pub fn un_track_image(g: impl ::core::convert::Into<crate::unity_engine::ui::image::Image>) -> () {
438 unsafe {
439 ::unity::il2cpp_call!((::unity::module_base()+0x3bf26c0usize)as*mut u8,();
440(crate::unity_engine::ui::image::Image)::core::convert::Into::into(g))
441 }
442 }
443
444 #[doc = "`.cctor()` overload"]
445 pub fn cctor() -> () {
446 unsafe {
447 ::unity::il2cpp_call!((::unity::module_base()+0x3bf47e0usize)as*mut u8,();
448 )
449 }
450 }
451}
452
453#[cfg(feature = "unity_engine-ui-image")]
454pub trait IImageMethods: IImage {
455 #[doc = "`get_sprite()` overload"]
456 fn get_sprite(self) -> crate::unity_engine::sprite::Sprite {
457 unsafe {
458 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
459 ::unity::il2cpp_call!((::unity::module_base()+0x3becfe0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
460(Image)__receiver)
461 }
462 }
463 #[doc = "`set_sprite(crate::unity_engine::sprite::Sprite)` overload"]
464 fn set_sprite(self, value: impl ::core::convert::Into<crate::unity_engine::sprite::Sprite>) -> () {
465 unsafe {
466 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
467 ::unity::il2cpp_call!((::unity::module_base()+0x3becff0usize)as*mut u8,();
468(Image)__receiver,(crate::unity_engine::sprite::Sprite)::core::convert::Into::into(value))
469 }
470 }
471 #[doc = "`DisableSpriteOptimizations()` overload"]
472 fn disable_sprite_optimizations(self) -> () {
473 unsafe {
474 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
475 ::unity::il2cpp_call!((::unity::module_base()+0x3bed480usize)as*mut u8,();
476(Image)__receiver)
477 }
478 }
479 #[doc = "`get_overrideSprite()` overload"]
480 fn get_override_sprite(self) -> crate::unity_engine::sprite::Sprite {
481 unsafe {
482 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
483 ::unity::il2cpp_call!((::unity::module_base()+0x3bed490usize)as*mut u8,crate::unity_engine::sprite::Sprite;
484(Image)__receiver)
485 }
486 }
487 #[doc = "`set_overrideSprite(crate::unity_engine::sprite::Sprite)` overload"]
488 fn set_override_sprite(self, value: impl ::core::convert::Into<crate::unity_engine::sprite::Sprite>) -> () {
489 unsafe {
490 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
491 ::unity::il2cpp_call!((::unity::module_base()+0x3bed5b0usize)as*mut u8,();
492(Image)__receiver,(crate::unity_engine::sprite::Sprite)::core::convert::Into::into(value))
493 }
494 }
495 #[doc = "`get_activeSprite()` overload"]
496 fn get_active_sprite(self) -> crate::unity_engine::sprite::Sprite {
497 unsafe {
498 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
499 ::unity::il2cpp_call!((::unity::module_base()+0x3bed520usize)as*mut u8,crate::unity_engine::sprite::Sprite;
500(Image)__receiver)
501 }
502 }
503 #[doc = "`get_type()` overload"]
504 fn get_type(self) -> crate::unity_engine::ui::image::Image_Type {
505 unsafe {
506 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
507 ::unity::il2cpp_call!((::unity::module_base()+0x3bed640usize)as*mut u8,crate::unity_engine::ui::image::Image_Type;
508(Image)__receiver)
509 }
510 }
511 #[doc = "`set_type(crate::unity_engine::ui::image::Image_Type)` overload"]
512 fn set_type(self, value: impl ::core::convert::Into<crate::unity_engine::ui::image::Image_Type>) -> () {
513 unsafe {
514 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
515 ::unity::il2cpp_call!((::unity::module_base()+0x3bed650usize)as*mut u8,();
516(Image)__receiver,(crate::unity_engine::ui::image::Image_Type)::core::convert::Into::into(value))
517 }
518 }
519 #[doc = "`get_preserveAspect()` overload"]
520 fn get_preserve_aspect(self) -> bool {
521 unsafe {
522 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
523 ::unity::il2cpp_call!((::unity::module_base()+0x3bed6e0usize)as*mut u8,bool;
524(Image)__receiver)
525 }
526 }
527 #[doc = "`set_preserveAspect(bool)` overload"]
528 fn set_preserve_aspect(self, value: impl ::core::convert::Into<bool>) -> () {
529 unsafe {
530 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
531 ::unity::il2cpp_call!((::unity::module_base()+0x3bed6f0usize)as*mut u8,();
532(Image)__receiver,(bool)::core::convert::Into::into(value))
533 }
534 }
535 #[doc = "`get_fillCenter()` overload"]
536 fn get_fill_center(self) -> bool {
537 unsafe {
538 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
539 ::unity::il2cpp_call!((::unity::module_base()+0x3bed780usize)as*mut u8,bool;
540(Image)__receiver)
541 }
542 }
543 #[doc = "`set_fillCenter(bool)` overload"]
544 fn set_fill_center(self, value: impl ::core::convert::Into<bool>) -> () {
545 unsafe {
546 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
547 ::unity::il2cpp_call!((::unity::module_base()+0x3bed790usize)as*mut u8,();
548(Image)__receiver,(bool)::core::convert::Into::into(value))
549 }
550 }
551 #[doc = "`get_fillMethod()` overload"]
552 fn get_fill_method(self) -> crate::unity_engine::ui::image::Image_FillMethod {
553 unsafe {
554 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
555 ::unity::il2cpp_call!((::unity::module_base()+0x3bed820usize)as*mut u8,crate::unity_engine::ui::image::Image_FillMethod;
556(Image)__receiver)
557 }
558 }
559 #[doc = "`set_fillMethod(crate::unity_engine::ui::image::Image_FillMethod)` overload"]
560 fn set_fill_method(self, value: impl ::core::convert::Into<crate::unity_engine::ui::image::Image_FillMethod>) -> () {
561 unsafe {
562 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
563 ::unity::il2cpp_call!((::unity::module_base()+0x3bed830usize)as*mut u8,();
564(Image)__receiver,(crate::unity_engine::ui::image::Image_FillMethod)::core::convert::Into::into(value))
565 }
566 }
567 #[doc = "`get_fillAmount()` overload"]
568 fn get_fill_amount(self) -> f32 {
569 unsafe {
570 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
571 ::unity::il2cpp_call!((::unity::module_base()+0x3bed8b0usize)as*mut u8,f32;
572(Image)__receiver)
573 }
574 }
575 #[doc = "`set_fillAmount(f32)` overload"]
576 fn set_fill_amount(self, value: impl ::core::convert::Into<f32>) -> () {
577 unsafe {
578 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
579 ::unity::il2cpp_call!((::unity::module_base()+0x3bed8c0usize)as*mut u8,();
580(Image)__receiver,(f32)::core::convert::Into::into(value))
581 }
582 }
583 #[doc = "`get_fillClockwise()` overload"]
584 fn get_fill_clockwise(self) -> bool {
585 unsafe {
586 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
587 ::unity::il2cpp_call!((::unity::module_base()+0x3bed960usize)as*mut u8,bool;
588(Image)__receiver)
589 }
590 }
591 #[doc = "`set_fillClockwise(bool)` overload"]
592 fn set_fill_clockwise(self, value: impl ::core::convert::Into<bool>) -> () {
593 unsafe {
594 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
595 ::unity::il2cpp_call!((::unity::module_base()+0x3bed970usize)as*mut u8,();
596(Image)__receiver,(bool)::core::convert::Into::into(value))
597 }
598 }
599 #[doc = "`get_fillOrigin()` overload"]
600 fn get_fill_origin(self) -> i32 {
601 unsafe {
602 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
603 ::unity::il2cpp_call!((::unity::module_base()+0x3beda00usize)as*mut u8,i32;
604(Image)__receiver)
605 }
606 }
607 #[doc = "`set_fillOrigin(i32)` overload"]
608 fn set_fill_origin(self, value: impl ::core::convert::Into<i32>) -> () {
609 unsafe {
610 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
611 ::unity::il2cpp_call!((::unity::module_base()+0x3beda10usize)as*mut u8,();
612(Image)__receiver,(i32)::core::convert::Into::into(value))
613 }
614 }
615 #[doc = "`get_eventAlphaThreshold()` overload"]
616 fn get_event_alpha_threshold(self) -> f32 {
617 unsafe {
618 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
619 ::unity::il2cpp_call!((::unity::module_base()+0x3bedaa0usize)as*mut u8,f32;
620(Image)__receiver)
621 }
622 }
623 #[doc = "`set_eventAlphaThreshold(f32)` overload"]
624 fn set_event_alpha_threshold(self, value: impl ::core::convert::Into<f32>) -> () {
625 unsafe {
626 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
627 ::unity::il2cpp_call!((::unity::module_base()+0x3bedab0usize)as*mut u8,();
628(Image)__receiver,(f32)::core::convert::Into::into(value))
629 }
630 }
631 #[doc = "`get_alphaHitTestMinimumThreshold()` overload"]
632 fn get_alpha_hit_test_minimum_threshold(self) -> f32 {
633 unsafe {
634 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
635 ::unity::il2cpp_call!((::unity::module_base()+0x3bedac0usize)as*mut u8,f32;
636(Image)__receiver)
637 }
638 }
639 #[doc = "`set_alphaHitTestMinimumThreshold(f32)` overload"]
640 fn set_alpha_hit_test_minimum_threshold(self, value: impl ::core::convert::Into<f32>) -> () {
641 unsafe {
642 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
643 ::unity::il2cpp_call!((::unity::module_base()+0x3bedad0usize)as*mut u8,();
644(Image)__receiver,(f32)::core::convert::Into::into(value))
645 }
646 }
647 #[doc = "`get_useSpriteMesh()` overload"]
648 fn get_use_sprite_mesh(self) -> bool {
649 unsafe {
650 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
651 ::unity::il2cpp_call!((::unity::module_base()+0x3bedae0usize)as*mut u8,bool;
652(Image)__receiver)
653 }
654 }
655 #[doc = "`set_useSpriteMesh(bool)` overload"]
656 fn set_use_sprite_mesh(self, value: impl ::core::convert::Into<bool>) -> () {
657 unsafe {
658 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
659 ::unity::il2cpp_call!((::unity::module_base()+0x3bedaf0usize)as*mut u8,();
660(Image)__receiver,(bool)::core::convert::Into::into(value))
661 }
662 }
663 #[doc = "`.ctor()` overload"]
664 fn ctor(self) -> () {
665 unsafe {
666 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
667 ::unity::il2cpp_call!((::unity::module_base()+0x3bedb80usize)as*mut u8,();
668(Image)__receiver)
669 }
670 }
671 #[doc = "`get_mainTexture()` overload"]
672 fn get_main_texture(self) -> crate::unity_engine::texture::Texture {
673 unsafe {
674 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
675 {
676 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
677 let __vi = *__vt.get(35usize).unwrap_or_else(|| {
678 panic!(
679 "unity: virtual slot {}
680 out of range (vtable len {}
681) on the runtime class behind {}
682 (method `{}
683`)",
684 35usize,
685 __vt.len(),
686 <Image as ::unity::ClassIdentity>::NAME,
687 "get_mainTexture",
688 )
689 });
690 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> crate::unity_engine::texture::Texture =
691 ::core::mem::transmute(__vi.method_ptr);
692 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
693 __inner(__receiver, __mi)
694 }
695 }
696 }
697 #[doc = "`get_hasBorder()` overload"]
698 fn get_has_border(self) -> bool {
699 unsafe {
700 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
701 ::unity::il2cpp_call!((::unity::module_base()+0x3bedf30usize)as*mut u8,bool;
702(Image)__receiver)
703 }
704 }
705 #[doc = "`get_pixelsPerUnitMultiplier()` overload"]
706 fn get_pixels_per_unit_multiplier(self) -> f32 {
707 unsafe {
708 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
709 ::unity::il2cpp_call!((::unity::module_base()+0x3bee0b0usize)as*mut u8,f32;
710(Image)__receiver)
711 }
712 }
713 #[doc = "`set_pixelsPerUnitMultiplier(f32)` overload"]
714 fn set_pixels_per_unit_multiplier(self, value: impl ::core::convert::Into<f32>) -> () {
715 unsafe {
716 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
717 ::unity::il2cpp_call!((::unity::module_base()+0x3bee0c0usize)as*mut u8,();
718(Image)__receiver,(f32)::core::convert::Into::into(value))
719 }
720 }
721 #[doc = "`get_pixelsPerUnit()` overload"]
722 fn get_pixels_per_unit(self) -> f32 {
723 unsafe {
724 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
725 ::unity::il2cpp_call!((::unity::module_base()+0x3bee110usize)as*mut u8,f32;
726(Image)__receiver)
727 }
728 }
729 #[doc = "`get_multipliedPixelsPerUnit()` overload"]
730 fn get_multiplied_pixels_per_unit(self) -> f32 {
731 unsafe {
732 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
733 ::unity::il2cpp_call!((::unity::module_base()+0x3bee2f0usize)as*mut u8,f32;
734(Image)__receiver)
735 }
736 }
737 #[doc = "`get_material()` overload"]
738 fn get_material(self) -> crate::unity_engine::material::Material {
739 unsafe {
740 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
741 {
742 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
743 let __vi = *__vt.get(32usize).unwrap_or_else(|| {
744 panic!(
745 "unity: virtual slot {}
746 out of range (vtable len {}
747) on the runtime class behind {}
748 (method `{}
749`)",
750 32usize,
751 __vt.len(),
752 <Image as ::unity::ClassIdentity>::NAME,
753 "get_material",
754 )
755 });
756 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
757 ::core::mem::transmute(__vi.method_ptr);
758 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
759 __inner(__receiver, __mi)
760 }
761 }
762 }
763 #[doc = "`set_material(crate::unity_engine::material::Material)` overload"]
764 fn set_material(self, value: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> () {
765 unsafe {
766 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
767 {
768 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
769 let __vi = *__vt.get(33usize).unwrap_or_else(|| {
770 panic!(
771 "unity: virtual slot {}
772 out of range (vtable len {}
773) on the runtime class behind {}
774 (method `{}
775`)",
776 33usize,
777 __vt.len(),
778 <Image as ::unity::ClassIdentity>::NAME,
779 "set_material",
780 )
781 });
782 let __inner: extern "C" fn(Image, crate::unity_engine::material::Material, ::unity::OptionalMethod) -> () =
783 ::core::mem::transmute(__vi.method_ptr);
784 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
785 __inner(__receiver, ::core::convert::Into::into(value), __mi)
786 }
787 }
788 }
789 #[doc = "`OnBeforeSerialize()` overload"]
790 fn on_before_serialize(self) -> () {
791 unsafe {
792 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
793 {
794 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
795 let __vi = *__vt.get(77usize).unwrap_or_else(|| {
796 panic!(
797 "unity: virtual slot {}
798 out of range (vtable len {}
799) on the runtime class behind {}
800 (method `{}
801`)",
802 77usize,
803 __vt.len(),
804 <Image as ::unity::ClassIdentity>::NAME,
805 "OnBeforeSerialize",
806 )
807 });
808 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
809 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
810 __inner(__receiver, __mi)
811 }
812 }
813 }
814 #[doc = "`OnAfterDeserialize()` overload"]
815 fn on_after_deserialize(self) -> () {
816 unsafe {
817 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
818 {
819 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
820 let __vi = *__vt.get(78usize).unwrap_or_else(|| {
821 panic!(
822 "unity: virtual slot {}
823 out of range (vtable len {}
824) on the runtime class behind {}
825 (method `{}
826`)",
827 78usize,
828 __vt.len(),
829 <Image as ::unity::ClassIdentity>::NAME,
830 "OnAfterDeserialize",
831 )
832 });
833 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
834 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
835 __inner(__receiver, __mi)
836 }
837 }
838 }
839 #[doc = "`PreserveSpriteAspectRatio(*mutcrate::unity_engine::rect::Rect, crate::unity_engine::vector2::Vector2)` overload"]
840 fn preserve_sprite_aspect_ratio(
841 self,
842 sprite_size: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
843 ) -> crate::unity_engine::rect::Rect {
844 unsafe {
845 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
846 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rect::Rect>::uninit();
847 ::unity::il2cpp_call!((::unity::module_base()+0x3bee5d0usize)as*mut u8,();
848(Image)__receiver,(*mut crate::unity_engine::rect::Rect)__out_0.as_mut_ptr(),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(sprite_size));
849 __out_0.assume_init()
850 }
851 }
852 #[doc = "`GetDrawingDimensions(bool)` overload"]
853 fn get_drawing_dimensions(self, should_preserve_aspect: impl ::core::convert::Into<bool>) -> crate::unity_engine::vector4::Vector4 {
854 unsafe {
855 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
856 ::unity::il2cpp_call!((::unity::module_base()+0x3bee730usize)as*mut u8,crate::unity_engine::vector4::Vector4;
857(Image)__receiver,(bool)::core::convert::Into::into(should_preserve_aspect))
858 }
859 }
860 #[doc = "`SetNativeSize()` overload"]
861 fn set_native_size(self) -> () {
862 unsafe {
863 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
864 {
865 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
866 let __vi = *__vt.get(45usize).unwrap_or_else(|| {
867 panic!(
868 "unity: virtual slot {}
869 out of range (vtable len {}
870) on the runtime class behind {}
871 (method `{}
872`)",
873 45usize,
874 __vt.len(),
875 <Image as ::unity::ClassIdentity>::NAME,
876 "SetNativeSize",
877 )
878 });
879 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
880 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
881 __inner(__receiver, __mi)
882 }
883 }
884 }
885 #[doc = "`OnPopulateMesh(crate::unity_engine::ui::vertexhelper::VertexHelper)` overload"]
886 fn on_populate_mesh(self, to_fill: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>) -> () {
887 unsafe {
888 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
889 {
890 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
891 let __vi = *__vt.get(44usize).unwrap_or_else(|| {
892 panic!(
893 "unity: virtual slot {}
894 out of range (vtable len {}
895) on the runtime class behind {}
896 (method `{}
897`)",
898 44usize,
899 __vt.len(),
900 <Image as ::unity::ClassIdentity>::NAME,
901 "OnPopulateMesh",
902 )
903 });
904 let __inner: extern "C" fn(Image, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
905 ::core::mem::transmute(__vi.method_ptr);
906 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
907 __inner(__receiver, ::core::convert::Into::into(to_fill), __mi)
908 }
909 }
910 }
911 #[doc = "`TrackSprite()` overload"]
912 fn track_sprite(self) -> () {
913 unsafe {
914 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
915 ::unity::il2cpp_call!((::unity::module_base()+0x3bed2d0usize)as*mut u8,();
916(Image)__receiver)
917 }
918 }
919 #[doc = "`OnEnable()` overload"]
920 fn on_enable(self) -> () {
921 unsafe {
922 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
923 {
924 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
925 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
926 panic!(
927 "unity: virtual slot {}
928 out of range (vtable len {}
929) on the runtime class behind {}
930 (method `{}
931`)",
932 5usize,
933 __vt.len(),
934 <Image as ::unity::ClassIdentity>::NAME,
935 "OnEnable",
936 )
937 });
938 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
939 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
940 __inner(__receiver, __mi)
941 }
942 }
943 }
944 #[doc = "`OnDisable()` overload"]
945 fn on_disable(self) -> () {
946 unsafe {
947 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
948 {
949 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
950 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
951 panic!(
952 "unity: virtual slot {}
953 out of range (vtable len {}
954) on the runtime class behind {}
955 (method `{}
956`)",
957 7usize,
958 __vt.len(),
959 <Image as ::unity::ClassIdentity>::NAME,
960 "OnDisable",
961 )
962 });
963 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
964 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
965 __inner(__receiver, __mi)
966 }
967 }
968 }
969 #[doc = "`UpdateMaterial()` overload"]
970 fn update_material(self) -> () {
971 unsafe {
972 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
973 {
974 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
975 let __vi = *__vt.get(40usize).unwrap_or_else(|| {
976 panic!(
977 "unity: virtual slot {}
978 out of range (vtable len {}
979) on the runtime class behind {}
980 (method `{}
981`)",
982 40usize,
983 __vt.len(),
984 <Image as ::unity::ClassIdentity>::NAME,
985 "UpdateMaterial",
986 )
987 });
988 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
989 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
990 __inner(__receiver, __mi)
991 }
992 }
993 }
994 #[doc = "`OnCanvasHierarchyChanged()` overload"]
995 fn on_canvas_hierarchy_changed(self) -> () {
996 unsafe {
997 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
998 {
999 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1000 let __vi = *__vt.get(15usize).unwrap_or_else(|| {
1001 panic!(
1002 "unity: virtual slot {}
1003 out of range (vtable len {}
1004) on the runtime class behind {}
1005 (method `{}
1006`)",
1007 15usize,
1008 __vt.len(),
1009 <Image as ::unity::ClassIdentity>::NAME,
1010 "OnCanvasHierarchyChanged",
1011 )
1012 });
1013 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1014 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1015 __inner(__receiver, __mi)
1016 }
1017 }
1018 }
1019 #[doc = "`GenerateSimpleSprite(crate::unity_engine::ui::vertexhelper::VertexHelper, bool)` overload"]
1020 fn generate_simple_sprite(
1021 self,
1022 vh: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>,
1023 l_preserve_aspect: impl ::core::convert::Into<bool>,
1024 ) -> () {
1025 unsafe {
1026 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1027 ::unity::il2cpp_call!((::unity::module_base()+0x3beefb0usize)as*mut u8,();
1028(Image)__receiver,(crate::unity_engine::ui::vertexhelper::VertexHelper)::core::convert::Into::into(vh),(bool)::core::convert::Into::into(l_preserve_aspect))
1029 }
1030 }
1031 #[doc = "`GenerateSprite(crate::unity_engine::ui::vertexhelper::VertexHelper, bool)` overload"]
1032 fn generate_sprite(
1033 self,
1034 vh: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>,
1035 l_preserve_aspect: impl ::core::convert::Into<bool>,
1036 ) -> () {
1037 unsafe {
1038 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1039 ::unity::il2cpp_call!((::unity::module_base()+0x3bef380usize)as*mut u8,();
1040(Image)__receiver,(crate::unity_engine::ui::vertexhelper::VertexHelper)::core::convert::Into::into(vh),(bool)::core::convert::Into::into(l_preserve_aspect))
1041 }
1042 }
1043 #[doc = "`GenerateSlicedSprite(crate::unity_engine::ui::vertexhelper::VertexHelper)` overload"]
1044 fn generate_sliced_sprite(self, to_fill: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>) -> () {
1045 unsafe {
1046 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1047 ::unity::il2cpp_call!((::unity::module_base()+0x3bef940usize)as*mut u8,();
1048(Image)__receiver,(crate::unity_engine::ui::vertexhelper::VertexHelper)::core::convert::Into::into(to_fill))
1049 }
1050 }
1051 #[doc = "`GenerateTiledSprite(crate::unity_engine::ui::vertexhelper::VertexHelper)` overload"]
1052 fn generate_tiled_sprite(self, to_fill: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>) -> () {
1053 unsafe {
1054 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1055 ::unity::il2cpp_call!((::unity::module_base()+0x3bf0580usize)as*mut u8,();
1056(Image)__receiver,(crate::unity_engine::ui::vertexhelper::VertexHelper)::core::convert::Into::into(to_fill))
1057 }
1058 }
1059 #[doc = "`GetAdjustedBorders(crate::unity_engine::vector4::Vector4, crate::unity_engine::rect::Rect)` overload"]
1060 fn get_adjusted_borders(
1061 self,
1062 border: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
1063 adjusted_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
1064 ) -> crate::unity_engine::vector4::Vector4 {
1065 unsafe {
1066 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1067 ::unity::il2cpp_call!((::unity::module_base()+0x3bf2a30usize)as*mut u8,crate::unity_engine::vector4::Vector4;
1068(Image)__receiver,(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(border),(crate::unity_engine::rect::Rect)::core::convert::Into::into(adjusted_rect))
1069 }
1070 }
1071 #[doc = "`GenerateFilledSprite(crate::unity_engine::ui::vertexhelper::VertexHelper, bool)` overload"]
1072 fn generate_filled_sprite(
1073 self,
1074 to_fill: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>,
1075 preserve_aspect: impl ::core::convert::Into<bool>,
1076 ) -> () {
1077 unsafe {
1078 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1079 ::unity::il2cpp_call!((::unity::module_base()+0x3bf16c0usize)as*mut u8,();
1080(Image)__receiver,(crate::unity_engine::ui::vertexhelper::VertexHelper)::core::convert::Into::into(to_fill),(bool)::core::convert::Into::into(preserve_aspect))
1081 }
1082 }
1083 #[doc = "`CalculateLayoutInputHorizontal()` overload"]
1084 fn calculate_layout_input_horizontal(self) -> () {
1085 unsafe {
1086 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1087 {
1088 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1089 let __vi = *__vt.get(79usize).unwrap_or_else(|| {
1090 panic!(
1091 "unity: virtual slot {}
1092 out of range (vtable len {}
1093) on the runtime class behind {}
1094 (method `{}
1095`)",
1096 79usize,
1097 __vt.len(),
1098 <Image as ::unity::ClassIdentity>::NAME,
1099 "CalculateLayoutInputHorizontal",
1100 )
1101 });
1102 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1103 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1104 __inner(__receiver, __mi)
1105 }
1106 }
1107 }
1108 #[doc = "`CalculateLayoutInputVertical()` overload"]
1109 fn calculate_layout_input_vertical(self) -> () {
1110 unsafe {
1111 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1112 {
1113 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1114 let __vi = *__vt.get(80usize).unwrap_or_else(|| {
1115 panic!(
1116 "unity: virtual slot {}
1117 out of range (vtable len {}
1118) on the runtime class behind {}
1119 (method `{}
1120`)",
1121 80usize,
1122 __vt.len(),
1123 <Image as ::unity::ClassIdentity>::NAME,
1124 "CalculateLayoutInputVertical",
1125 )
1126 });
1127 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1128 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1129 __inner(__receiver, __mi)
1130 }
1131 }
1132 }
1133 #[doc = "`get_minWidth()` overload"]
1134 fn get_min_width(self) -> f32 {
1135 unsafe {
1136 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1137 {
1138 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1139 let __vi = *__vt.get(81usize).unwrap_or_else(|| {
1140 panic!(
1141 "unity: virtual slot {}
1142 out of range (vtable len {}
1143) on the runtime class behind {}
1144 (method `{}
1145`)",
1146 81usize,
1147 __vt.len(),
1148 <Image as ::unity::ClassIdentity>::NAME,
1149 "get_minWidth",
1150 )
1151 });
1152 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
1153 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1154 __inner(__receiver, __mi)
1155 }
1156 }
1157 }
1158 #[doc = "`get_preferredWidth()` overload"]
1159 fn get_preferred_width(self) -> f32 {
1160 unsafe {
1161 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1162 {
1163 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1164 let __vi = *__vt.get(82usize).unwrap_or_else(|| {
1165 panic!(
1166 "unity: virtual slot {}
1167 out of range (vtable len {}
1168) on the runtime class behind {}
1169 (method `{}
1170`)",
1171 82usize,
1172 __vt.len(),
1173 <Image as ::unity::ClassIdentity>::NAME,
1174 "get_preferredWidth",
1175 )
1176 });
1177 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
1178 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1179 __inner(__receiver, __mi)
1180 }
1181 }
1182 }
1183 #[doc = "`get_flexibleWidth()` overload"]
1184 fn get_flexible_width(self) -> f32 {
1185 unsafe {
1186 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1187 {
1188 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1189 let __vi = *__vt.get(83usize).unwrap_or_else(|| {
1190 panic!(
1191 "unity: virtual slot {}
1192 out of range (vtable len {}
1193) on the runtime class behind {}
1194 (method `{}
1195`)",
1196 83usize,
1197 __vt.len(),
1198 <Image as ::unity::ClassIdentity>::NAME,
1199 "get_flexibleWidth",
1200 )
1201 });
1202 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
1203 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1204 __inner(__receiver, __mi)
1205 }
1206 }
1207 }
1208 #[doc = "`get_minHeight()` overload"]
1209 fn get_min_height(self) -> f32 {
1210 unsafe {
1211 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1212 {
1213 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1214 let __vi = *__vt.get(84usize).unwrap_or_else(|| {
1215 panic!(
1216 "unity: virtual slot {}
1217 out of range (vtable len {}
1218) on the runtime class behind {}
1219 (method `{}
1220`)",
1221 84usize,
1222 __vt.len(),
1223 <Image as ::unity::ClassIdentity>::NAME,
1224 "get_minHeight",
1225 )
1226 });
1227 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
1228 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1229 __inner(__receiver, __mi)
1230 }
1231 }
1232 }
1233 #[doc = "`get_preferredHeight()` overload"]
1234 fn get_preferred_height(self) -> f32 {
1235 unsafe {
1236 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1237 {
1238 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1239 let __vi = *__vt.get(85usize).unwrap_or_else(|| {
1240 panic!(
1241 "unity: virtual slot {}
1242 out of range (vtable len {}
1243) on the runtime class behind {}
1244 (method `{}
1245`)",
1246 85usize,
1247 __vt.len(),
1248 <Image as ::unity::ClassIdentity>::NAME,
1249 "get_preferredHeight",
1250 )
1251 });
1252 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
1253 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1254 __inner(__receiver, __mi)
1255 }
1256 }
1257 }
1258 #[doc = "`get_flexibleHeight()` overload"]
1259 fn get_flexible_height(self) -> f32 {
1260 unsafe {
1261 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1262 {
1263 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1264 let __vi = *__vt.get(86usize).unwrap_or_else(|| {
1265 panic!(
1266 "unity: virtual slot {}
1267 out of range (vtable len {}
1268) on the runtime class behind {}
1269 (method `{}
1270`)",
1271 86usize,
1272 __vt.len(),
1273 <Image as ::unity::ClassIdentity>::NAME,
1274 "get_flexibleHeight",
1275 )
1276 });
1277 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
1278 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1279 __inner(__receiver, __mi)
1280 }
1281 }
1282 }
1283 #[doc = "`get_layoutPriority()` overload"]
1284 fn get_layout_priority(self) -> i32 {
1285 unsafe {
1286 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1287 {
1288 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1289 let __vi = *__vt.get(87usize).unwrap_or_else(|| {
1290 panic!(
1291 "unity: virtual slot {}
1292 out of range (vtable len {}
1293) on the runtime class behind {}
1294 (method `{}
1295`)",
1296 87usize,
1297 __vt.len(),
1298 <Image as ::unity::ClassIdentity>::NAME,
1299 "get_layoutPriority",
1300 )
1301 });
1302 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
1303 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1304 __inner(__receiver, __mi)
1305 }
1306 }
1307 }
1308 #[doc = "`IsRaycastLocationValid(crate::unity_engine::vector2::Vector2, crate::unity_engine::camera::Camera)` overload"]
1309 fn is_raycast_location_valid(
1310 self,
1311 screen_point: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
1312 event_camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
1313 ) -> bool {
1314 unsafe {
1315 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1316 {
1317 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1318 let __vi = *__vt.get(88usize).unwrap_or_else(|| {
1319 panic!(
1320 "unity: virtual slot {}
1321 out of range (vtable len {}
1322) on the runtime class behind {}
1323 (method `{}
1324`)",
1325 88usize,
1326 __vt.len(),
1327 <Image as ::unity::ClassIdentity>::NAME,
1328 "IsRaycastLocationValid",
1329 )
1330 });
1331 let __inner: extern "C" fn(
1332 Image,
1333 crate::unity_engine::vector2::Vector2,
1334 crate::unity_engine::camera::Camera,
1335 ::unity::OptionalMethod,
1336 ) -> bool = ::core::mem::transmute(__vi.method_ptr);
1337 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1338 __inner(
1339 __receiver,
1340 ::core::convert::Into::into(screen_point),
1341 ::core::convert::Into::into(event_camera),
1342 __mi,
1343 )
1344 }
1345 }
1346 }
1347 #[doc = "`MapCoordinate(crate::unity_engine::vector2::Vector2, crate::unity_engine::rect::Rect)` overload"]
1348 fn map_coordinate(
1349 self,
1350 local: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
1351 rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
1352 ) -> crate::unity_engine::vector2::Vector2 {
1353 unsafe {
1354 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1355 ::unity::il2cpp_call!((::unity::module_base()+0x3bf4050usize)as*mut u8,crate::unity_engine::vector2::Vector2;
1356(Image)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(local),(crate::unity_engine::rect::Rect)::core::convert::Into::into(rect))
1357 }
1358 }
1359 #[doc = "`OnDidApplyAnimationProperties()` overload"]
1360 fn on_did_apply_animation_properties(self) -> () {
1361 unsafe {
1362 let __receiver = <Image as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1363 {
1364 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1365 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
1366 panic!(
1367 "unity: virtual slot {}
1368 out of range (vtable len {}
1369) on the runtime class behind {}
1370 (method `{}
1371`)",
1372 13usize,
1373 __vt.len(),
1374 <Image as ::unity::ClassIdentity>::NAME,
1375 "OnDidApplyAnimationProperties",
1376 )
1377 });
1378 let __inner: extern "C" fn(Image, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1379 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1380 __inner(__receiver, __mi)
1381 }
1382 }
1383 }
1384}
1385
1386#[cfg(feature = "unity_engine-ui-image")]
1387impl<__T: IImage> IImageMethods for __T {}
1388
1389#[cfg(feature = "unity_engine-ui-image")]
1390impl Image {
1391 pub fn get_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1392 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1393 }
1394
1395 pub fn set_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1396 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1397 }
1398
1399 pub fn disable_sprite_optimizations_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1400 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
1401 }
1402
1403 pub fn get_override_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1404 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
1405 }
1406
1407 pub fn set_override_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1408 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
1409 }
1410
1411 pub fn get_active_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
1413 }
1414
1415 pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
1417 }
1418
1419 pub fn set_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
1421 }
1422
1423 pub fn get_preserve_aspect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
1425 }
1426
1427 pub fn set_preserve_aspect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1428 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
1429 }
1430
1431 pub fn get_fill_center_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1432 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
1433 }
1434
1435 pub fn set_fill_center_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1436 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
1437 }
1438
1439 pub fn get_fill_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1440 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
1441 }
1442
1443 pub fn set_fill_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1444 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
1445 }
1446
1447 pub fn get_fill_amount_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1448 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
1449 }
1450
1451 pub fn set_fill_amount_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1452 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
1453 }
1454
1455 pub fn get_fill_clockwise_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1456 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
1457 }
1458
1459 pub fn set_fill_clockwise_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1460 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
1461 }
1462
1463 pub fn get_fill_origin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1464 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
1465 }
1466
1467 pub fn set_fill_origin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1468 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
1469 }
1470
1471 pub fn get_event_alpha_threshold_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1472 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1473 }
1474
1475 pub fn set_event_alpha_threshold_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1476 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
1477 }
1478
1479 pub fn get_alpha_hit_test_minimum_threshold_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1480 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
1481 }
1482
1483 pub fn set_alpha_hit_test_minimum_threshold_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1484 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
1485 }
1486
1487 pub fn get_use_sprite_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1488 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
1489 }
1490
1491 pub fn set_use_sprite_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1492 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
1493 }
1494
1495 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1496 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
1497 }
1498
1499 pub fn get_default_etc1_graphic_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1500 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
1501 }
1502
1503 pub fn get_main_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1504 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
1505 }
1506
1507 pub fn get_has_border_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1508 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
1509 }
1510
1511 pub fn get_pixels_per_unit_multiplier_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1512 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
1513 }
1514
1515 pub fn set_pixels_per_unit_multiplier_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1516 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
1517 }
1518
1519 pub fn get_pixels_per_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1520 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
1521 }
1522
1523 pub fn get_multiplied_pixels_per_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1524 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
1525 }
1526
1527 pub fn get_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1528 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
1529 }
1530
1531 pub fn set_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1532 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
1533 }
1534
1535 pub fn on_before_serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1536 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
1537 }
1538
1539 pub fn on_after_deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1540 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
1541 }
1542
1543 pub fn preserve_sprite_aspect_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1544 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
1545 }
1546
1547 pub fn get_drawing_dimensions_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1548 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
1549 }
1550
1551 pub fn set_native_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1552 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
1553 }
1554
1555 pub fn on_populate_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1556 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
1557 }
1558
1559 pub fn track_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1560 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
1561 }
1562
1563 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1564 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
1565 }
1566
1567 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1568 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
1569 }
1570
1571 pub fn update_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1572 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
1573 }
1574
1575 pub fn on_canvas_hierarchy_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1576 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
1577 }
1578
1579 pub fn generate_simple_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1580 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
1581 }
1582
1583 pub fn generate_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1584 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
1585 }
1586
1587 pub fn generate_sliced_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1588 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
1589 }
1590
1591 pub fn generate_tiled_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1592 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
1593 }
1594
1595 pub fn add_quad_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1596 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
1597 }
1598
1599 pub fn add_quad_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1600 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
1601 }
1602
1603 pub fn get_adjusted_borders_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1604 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
1605 }
1606
1607 pub fn generate_filled_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1608 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[54]
1609 }
1610
1611 pub fn radial_cut_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1612 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[55]
1613 }
1614
1615 pub fn radial_cut_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1616 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[56]
1617 }
1618
1619 pub fn calculate_layout_input_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1620 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[57]
1621 }
1622
1623 pub fn calculate_layout_input_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1624 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[58]
1625 }
1626
1627 pub fn get_min_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1628 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[59]
1629 }
1630
1631 pub fn get_preferred_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1632 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[60]
1633 }
1634
1635 pub fn get_flexible_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1636 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[61]
1637 }
1638
1639 pub fn get_min_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1640 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[62]
1641 }
1642
1643 pub fn get_preferred_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1644 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[63]
1645 }
1646
1647 pub fn get_flexible_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1648 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[64]
1649 }
1650
1651 pub fn get_layout_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1652 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[65]
1653 }
1654
1655 pub fn is_raycast_location_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1656 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[66]
1657 }
1658
1659 pub fn map_coordinate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1660 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[67]
1661 }
1662
1663 pub fn rebuild_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1664 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[68]
1665 }
1666
1667 pub fn track_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1668 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[69]
1669 }
1670
1671 pub fn un_track_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1672 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[70]
1673 }
1674
1675 pub fn on_did_apply_animation_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1676 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[71]
1677 }
1678
1679 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1680 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[72]
1681 }
1682}
1683
1684#[cfg(feature = "unity_engine-ui-image")]
1685impl Image {
1686 #[doc = "Direct (non-virtual) call to `Image`'s own `get_mainTexture`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1687 pub unsafe fn get_main_texture(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::texture::Texture {
1688 let __mi = Self::get_main_texture_method_info();
1689 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::texture::Texture =
1690 ::core::mem::transmute(__mi.method_ptr);
1691 __inner(this.into(), ::core::option::Option::None)
1692 }
1693
1694 #[doc = "Direct (non-virtual) call to `Image`'s own `get_material`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1695 pub unsafe fn get_material(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::material::Material {
1696 let __mi = Self::get_material_method_info();
1697 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
1698 ::core::mem::transmute(__mi.method_ptr);
1699 __inner(this.into(), ::core::option::Option::None)
1700 }
1701
1702 #[doc = "Direct (non-virtual) call to `Image`'s own `set_material`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1703 pub unsafe fn set_material(this: impl ::core::convert::Into<::unity::IlInstance>, value: crate::unity_engine::material::Material) -> () {
1704 let __mi = Self::set_material_method_info();
1705 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::material::Material, ::unity::OptionalMethod) -> () =
1706 ::core::mem::transmute(__mi.method_ptr);
1707 __inner(this.into(), value, ::core::option::Option::None)
1708 }
1709
1710 #[doc = "Direct (non-virtual) call to `Image`'s own `OnBeforeSerialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1711 pub unsafe fn on_before_serialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1712 let __mi = Self::on_before_serialize_method_info();
1713 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1714 __inner(this.into(), ::core::option::Option::None)
1715 }
1716
1717 #[doc = "Direct (non-virtual) call to `Image`'s own `OnAfterDeserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1718 pub unsafe fn on_after_deserialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1719 let __mi = Self::on_after_deserialize_method_info();
1720 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1721 __inner(this.into(), ::core::option::Option::None)
1722 }
1723
1724 #[doc = "Direct (non-virtual) call to `Image`'s own `SetNativeSize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1725 pub unsafe fn set_native_size(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1726 let __mi = Self::set_native_size_method_info();
1727 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1728 __inner(this.into(), ::core::option::Option::None)
1729 }
1730
1731 #[doc = "Direct (non-virtual) call to `Image`'s own `OnPopulateMesh`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1732 pub unsafe fn on_populate_mesh(
1733 this: impl ::core::convert::Into<::unity::IlInstance>,
1734 to_fill: crate::unity_engine::ui::vertexhelper::VertexHelper,
1735 ) -> () {
1736 let __mi = Self::on_populate_mesh_method_info();
1737 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
1738 ::core::mem::transmute(__mi.method_ptr);
1739 __inner(this.into(), to_fill, ::core::option::Option::None)
1740 }
1741
1742 #[doc = "Direct (non-virtual) call to `Image`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1743 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1744 let __mi = Self::on_enable_method_info();
1745 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1746 __inner(this.into(), ::core::option::Option::None)
1747 }
1748
1749 #[doc = "Direct (non-virtual) call to `Image`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1750 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1751 let __mi = Self::on_disable_method_info();
1752 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1753 __inner(this.into(), ::core::option::Option::None)
1754 }
1755
1756 #[doc = "Direct (non-virtual) call to `Image`'s own `UpdateMaterial`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1757 pub unsafe fn update_material(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1758 let __mi = Self::update_material_method_info();
1759 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1760 __inner(this.into(), ::core::option::Option::None)
1761 }
1762
1763 #[doc = "Direct (non-virtual) call to `Image`'s own `OnCanvasHierarchyChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1764 pub unsafe fn on_canvas_hierarchy_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1765 let __mi = Self::on_canvas_hierarchy_changed_method_info();
1766 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1767 __inner(this.into(), ::core::option::Option::None)
1768 }
1769
1770 #[doc = "Direct (non-virtual) call to `Image`'s own `CalculateLayoutInputHorizontal`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1771 pub unsafe fn calculate_layout_input_horizontal(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1772 let __mi = Self::calculate_layout_input_horizontal_method_info();
1773 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1774 __inner(this.into(), ::core::option::Option::None)
1775 }
1776
1777 #[doc = "Direct (non-virtual) call to `Image`'s own `CalculateLayoutInputVertical`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1778 pub unsafe fn calculate_layout_input_vertical(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1779 let __mi = Self::calculate_layout_input_vertical_method_info();
1780 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1781 __inner(this.into(), ::core::option::Option::None)
1782 }
1783
1784 #[doc = "Direct (non-virtual) call to `Image`'s own `get_minWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1785 pub unsafe fn get_min_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1786 let __mi = Self::get_min_width_method_info();
1787 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1788 __inner(this.into(), ::core::option::Option::None)
1789 }
1790
1791 #[doc = "Direct (non-virtual) call to `Image`'s own `get_preferredWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1792 pub unsafe fn get_preferred_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1793 let __mi = Self::get_preferred_width_method_info();
1794 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1795 __inner(this.into(), ::core::option::Option::None)
1796 }
1797
1798 #[doc = "Direct (non-virtual) call to `Image`'s own `get_flexibleWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1799 pub unsafe fn get_flexible_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1800 let __mi = Self::get_flexible_width_method_info();
1801 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1802 __inner(this.into(), ::core::option::Option::None)
1803 }
1804
1805 #[doc = "Direct (non-virtual) call to `Image`'s own `get_minHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1806 pub unsafe fn get_min_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1807 let __mi = Self::get_min_height_method_info();
1808 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1809 __inner(this.into(), ::core::option::Option::None)
1810 }
1811
1812 #[doc = "Direct (non-virtual) call to `Image`'s own `get_preferredHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1813 pub unsafe fn get_preferred_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1814 let __mi = Self::get_preferred_height_method_info();
1815 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1816 __inner(this.into(), ::core::option::Option::None)
1817 }
1818
1819 #[doc = "Direct (non-virtual) call to `Image`'s own `get_flexibleHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1820 pub unsafe fn get_flexible_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
1821 let __mi = Self::get_flexible_height_method_info();
1822 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
1823 __inner(this.into(), ::core::option::Option::None)
1824 }
1825
1826 #[doc = "Direct (non-virtual) call to `Image`'s own `get_layoutPriority`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1827 pub unsafe fn get_layout_priority(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
1828 let __mi = Self::get_layout_priority_method_info();
1829 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
1830 __inner(this.into(), ::core::option::Option::None)
1831 }
1832
1833 #[doc = "Direct (non-virtual) call to `Image`'s own `IsRaycastLocationValid`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1834 pub unsafe fn is_raycast_location_valid(
1835 this: impl ::core::convert::Into<::unity::IlInstance>,
1836 screen_point: crate::unity_engine::vector2::Vector2,
1837 event_camera: crate::unity_engine::camera::Camera,
1838 ) -> bool {
1839 let __mi = Self::is_raycast_location_valid_method_info();
1840 let __inner: extern "C" fn(
1841 ::unity::IlInstance,
1842 crate::unity_engine::vector2::Vector2,
1843 crate::unity_engine::camera::Camera,
1844 ::unity::OptionalMethod,
1845 ) -> bool = ::core::mem::transmute(__mi.method_ptr);
1846 __inner(this.into(), screen_point, event_camera, ::core::option::Option::None)
1847 }
1848
1849 #[doc = "Direct (non-virtual) call to `Image`'s own `OnDidApplyAnimationProperties`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1850 pub unsafe fn on_did_apply_animation_properties(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1851 let __mi = Self::on_did_apply_animation_properties_method_info();
1852 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1853 __inner(this.into(), ::core::option::Option::None)
1854 }
1855}
1856
1857#[cfg(feature = "unity_engine-ui-image")]
1858impl Image {
1859 #[doc = "`.ctor()` — no args"]
1860 pub fn new() -> Self {
1861 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1862 panic!(
1863 "{}
1864::{}
1865 failed to instantiate",
1866 ::core::stringify!(Image),
1867 ::core::stringify!(new),
1868 )
1869 });
1870 <Self as IImageMethods>::ctor(this);
1871 this
1872 }
1873}
1874
1875#[cfg(feature = "unity_engine-ui-image")]
1876#[doc(hidden)]
1877pub mod prelude {
1878 pub use super::{
1879 IImage, IImageMethods, Image, Image_FillMethod, Image_Origin180, Image_Origin360, Image_Origin90, Image_OriginHorizontal,
1880 Image_OriginVertical, Image_Type,
1881 };
1882 #[cfg(feature = "system-object")]
1883 pub use crate::system::object::IObjectMethods;
1884 #[cfg(feature = "system-enum")]
1885 pub use crate::system::r#enum::IEnumMethods;
1886 #[cfg(feature = "system-valuetype")]
1887 pub use crate::system::valuetype::IValueTypeMethods;
1888 #[cfg(feature = "unity_engine-behaviour")]
1889 pub use crate::unity_engine::behaviour::IBehaviourMethods;
1890 #[cfg(feature = "unity_engine-component")]
1891 pub use crate::unity_engine::component::IComponentMethods;
1892 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
1893 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
1894 #[cfg(feature = "unity_engine-monobehaviour")]
1895 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
1896 #[cfg(feature = "unity_engine-object_2")]
1897 pub use crate::unity_engine::object_2::IObject_2Methods;
1898 #[cfg(feature = "unity_engine-ui-graphic")]
1899 pub use crate::unity_engine::ui::graphic::IGraphicMethods;
1900 #[cfg(feature = "unity_engine-ui-maskablegraphic")]
1901 pub use crate::unity_engine::ui::maskablegraphic::IMaskableGraphicMethods;
1902 pub use crate::{
1903 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
1904 unity_engine::{
1905 behaviour::IBehaviour,
1906 component::IComponent,
1907 event_systems::uibehaviour::IUIBehaviour,
1908 monobehaviour::IMonoBehaviour,
1909 object_2::IObject_2,
1910 ui::{graphic::IGraphic, maskablegraphic::IMaskableGraphic},
1911 },
1912 };
1913}