1#[cfg(feature = "unity_engine-ui-graphic-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/graphic/Graphic.md"))]
20 #[::unity::class(namespace = "UnityEngine.UI", name = "Graphic")]
21 #[parent(crate::unity_engine::event_systems::uibehaviour::UIBehaviour)]
22 pub struct Graphic {
23 #[static_field]
24 #[rename(name = "s_DefaultUI")]
25 pub s_default_ui: crate::unity_engine::material::Material,
26 #[static_field]
27 #[rename(name = "s_WhiteTexture")]
28 pub s_white_texture: crate::unity_engine::texture2d::Texture2D,
29 #[offset(24)]
30 #[rename(name = "m_Material")]
31 pub m_material: crate::unity_engine::material::Material,
32 #[offset(32)]
33 #[rename(name = "m_Color")]
34 pub m_color: crate::unity_engine::color::Color,
35 #[offset(48)]
36 #[rename(name = "m_SkipLayoutUpdate")]
37 pub m_skip_layout_update: bool,
38 #[offset(49)]
39 #[rename(name = "m_SkipMaterialUpdate")]
40 pub m_skip_material_update: bool,
41 #[offset(50)]
42 #[rename(name = "m_RaycastTarget")]
43 pub m_raycast_target: bool,
44 #[offset(52)]
45 #[rename(name = "m_RaycastPadding")]
46 pub m_raycast_padding: crate::unity_engine::vector4::Vector4,
47 #[offset(72)]
48 #[rename(name = "m_RectTransform")]
49 pub m_rect_transform: crate::unity_engine::recttransform::RectTransform,
50 #[offset(80)]
51 #[rename(name = "m_CanvasRenderer")]
52 pub m_canvas_renderer: crate::unity_engine::canvasrenderer::CanvasRenderer,
53 #[offset(88)]
54 #[rename(name = "m_Canvas")]
55 pub m_canvas: crate::unity_engine::canvas::Canvas,
56 #[offset(96)]
57 #[rename(name = "m_VertsDirty")]
58 pub m_verts_dirty: bool,
59 #[offset(97)]
60 #[rename(name = "m_MaterialDirty")]
61 pub m_material_dirty: bool,
62 #[offset(104)]
63 #[rename(name = "m_OnDirtyLayoutCallback")]
64 pub m_on_dirty_layout_callback: crate::unity_engine::events::unityaction::UnityAction,
65 #[offset(112)]
66 #[rename(name = "m_OnDirtyVertsCallback")]
67 pub m_on_dirty_verts_callback: crate::unity_engine::events::unityaction::UnityAction,
68 #[offset(120)]
69 #[rename(name = "m_OnDirtyMaterialCallback")]
70 pub m_on_dirty_material_callback: crate::unity_engine::events::unityaction::UnityAction,
71 #[static_field]
72 #[rename(name = "s_Mesh")]
73 pub s_mesh: crate::unity_engine::mesh::Mesh,
74 #[static_field]
75 #[rename(name = "s_VertexHelper")]
76 pub s_vertex_helper: crate::unity_engine::ui::vertexhelper::VertexHelper,
77 #[offset(128)]
78 #[rename(name = "m_CachedMesh")]
79 pub m_cached_mesh: crate::unity_engine::mesh::Mesh,
80 #[offset(136)]
81 #[rename(name = "m_CachedUvs")]
82 pub m_cached_uvs: ::unity::Array<crate::unity_engine::vector2::Vector2>,
83 #[offset(144)]
84 #[rename(name = "m_ColorTweenRunner")]
85 pub m_color_tween_runner:
86 crate::unity_engine::ui::coroutine_tween::tweenrunner_1::TweenRunner_1<crate::unity_engine::ui::coroutine_tween::colortween::ColorTween>,
87 }
88}
89
90#[cfg(feature = "unity_engine-ui-graphic-types")]
91pub use __types::*;
92
93#[cfg(feature = "unity_engine-ui-graphic")]
94impl Graphic {
95 #[doc = "`get_defaultGraphicMaterial()` overload"]
96 pub fn get_default_graphic_material() -> crate::unity_engine::material::Material {
97 unsafe {
98 ::unity::il2cpp_call!((::unity::module_base()+0x318bf10usize)as*mut u8,crate::unity_engine::material::Material;
99 )
100 }
101 }
102
103 #[doc = "`get_workerMesh()` overload"]
104 pub fn get_worker_mesh() -> crate::unity_engine::mesh::Mesh {
105 unsafe {
106 ::unity::il2cpp_call!((::unity::module_base()+0x318ecb0usize)as*mut u8,crate::unity_engine::mesh::Mesh;
107 )
108 }
109 }
110
111 #[doc = "`CreateColorFromAlpha(f32)` overload"]
112 pub fn create_color_from_alpha(alpha: impl ::core::convert::Into<f32>) -> crate::unity_engine::color::Color {
113 unsafe {
114 ::unity::il2cpp_call!((::unity::module_base()+0x318ffb0usize)as*mut u8,crate::unity_engine::color::Color;
115(f32)::core::convert::Into::into(alpha))
116 }
117 }
118
119 #[doc = "`.cctor()` overload"]
120 pub fn cctor() -> () {
121 unsafe {
122 ::unity::il2cpp_call!((::unity::module_base()+0x31903f0usize)as*mut u8,();
123 )
124 }
125 }
126}
127
128#[cfg(feature = "unity_engine-ui-graphic")]
129pub trait IGraphicMethods: IGraphic {
130 #[doc = "`get_color()` overload"]
131 fn get_color(self) -> crate::unity_engine::color::Color {
132 unsafe {
133 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 {
135 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
136 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
137 panic!(
138 "unity: virtual slot {}
139 out of range (vtable len {}
140) on the runtime class behind {}
141 (method `{}
142`)",
143 22usize,
144 __vt.len(),
145 <Graphic as ::unity::ClassIdentity>::NAME,
146 "get_color",
147 )
148 });
149 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
150 ::core::mem::transmute(__vi.method_ptr);
151 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
152 __inner(__receiver, __mi)
153 }
154 }
155 }
156 #[doc = "`set_color(crate::unity_engine::color::Color)` overload"]
157 fn set_color(self, value: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
158 unsafe {
159 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160 {
161 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
162 let __vi = *__vt.get(23usize).unwrap_or_else(|| {
163 panic!(
164 "unity: virtual slot {}
165 out of range (vtable len {}
166) on the runtime class behind {}
167 (method `{}
168`)",
169 23usize,
170 __vt.len(),
171 <Graphic as ::unity::ClassIdentity>::NAME,
172 "set_color",
173 )
174 });
175 let __inner: extern "C" fn(Graphic, crate::unity_engine::color::Color, ::unity::OptionalMethod) -> () =
176 ::core::mem::transmute(__vi.method_ptr);
177 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
178 __inner(__receiver, ::core::convert::Into::into(value), __mi)
179 }
180 }
181 }
182 #[doc = "`get_raycastTarget()` overload"]
183 fn get_raycast_target(self) -> bool {
184 unsafe {
185 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186 {
187 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
188 let __vi = *__vt.get(24usize).unwrap_or_else(|| {
189 panic!(
190 "unity: virtual slot {}
191 out of range (vtable len {}
192) on the runtime class behind {}
193 (method `{}
194`)",
195 24usize,
196 __vt.len(),
197 <Graphic as ::unity::ClassIdentity>::NAME,
198 "get_raycastTarget",
199 )
200 });
201 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
202 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
203 __inner(__receiver, __mi)
204 }
205 }
206 }
207 #[doc = "`set_raycastTarget(bool)` overload"]
208 fn set_raycast_target(self, value: impl ::core::convert::Into<bool>) -> () {
209 unsafe {
210 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 {
212 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
213 let __vi = *__vt.get(25usize).unwrap_or_else(|| {
214 panic!(
215 "unity: virtual slot {}
216 out of range (vtable len {}
217) on the runtime class behind {}
218 (method `{}
219`)",
220 25usize,
221 __vt.len(),
222 <Graphic as ::unity::ClassIdentity>::NAME,
223 "set_raycastTarget",
224 )
225 });
226 let __inner: extern "C" fn(Graphic, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
227 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
228 __inner(__receiver, ::core::convert::Into::into(value), __mi)
229 }
230 }
231 }
232 #[doc = "`get_raycastPadding()` overload"]
233 fn get_raycast_padding(self) -> crate::unity_engine::vector4::Vector4 {
234 unsafe {
235 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236 ::unity::il2cpp_call!((::unity::module_base()+0x318c660usize)as*mut u8,crate::unity_engine::vector4::Vector4;
237(Graphic)__receiver)
238 }
239 }
240 #[doc = "`set_raycastPadding(crate::unity_engine::vector4::Vector4)` overload"]
241 fn set_raycast_padding(self, value: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>) -> () {
242 unsafe {
243 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
244 ::unity::il2cpp_call!((::unity::module_base()+0x318c670usize)as*mut u8,();
245(Graphic)__receiver,(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(value))
246 }
247 }
248 #[doc = "`get_useLegacyMeshGeneration()` overload"]
249 fn get_use_legacy_mesh_generation(self) -> bool {
250 unsafe {
251 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
252 ::unity::il2cpp_call!((::unity::module_base()+0x318c690usize)as*mut u8,bool;
253(Graphic)__receiver)
254 }
255 }
256 #[doc = "`set_useLegacyMeshGeneration(bool)` overload"]
257 fn set_use_legacy_mesh_generation(self, value: impl ::core::convert::Into<bool>) -> () {
258 unsafe {
259 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260 ::unity::il2cpp_call!((::unity::module_base()+0x318c6a0usize)as*mut u8,();
261(Graphic)__receiver,(bool)::core::convert::Into::into(value))
262 }
263 }
264 #[doc = "`.ctor()` overload"]
265 fn ctor(self) -> () {
266 unsafe {
267 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268 ::unity::il2cpp_call!((::unity::module_base()+0x318c6b0usize)as*mut u8,();
269(Graphic)__receiver)
270 }
271 }
272 #[doc = "`SetAllDirty()` overload"]
273 fn set_all_dirty(self) -> () {
274 unsafe {
275 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276 {
277 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
278 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
279 panic!(
280 "unity: virtual slot {}
281 out of range (vtable len {}
282) on the runtime class behind {}
283 (method `{}
284`)",
285 26usize,
286 __vt.len(),
287 <Graphic as ::unity::ClassIdentity>::NAME,
288 "SetAllDirty",
289 )
290 });
291 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
292 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
293 __inner(__receiver, __mi)
294 }
295 }
296 }
297 #[doc = "`SetLayoutDirty()` overload"]
298 fn set_layout_dirty(self) -> () {
299 unsafe {
300 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
301 {
302 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
303 let __vi = *__vt.get(27usize).unwrap_or_else(|| {
304 panic!(
305 "unity: virtual slot {}
306 out of range (vtable len {}
307) on the runtime class behind {}
308 (method `{}
309`)",
310 27usize,
311 __vt.len(),
312 <Graphic as ::unity::ClassIdentity>::NAME,
313 "SetLayoutDirty",
314 )
315 });
316 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
317 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
318 __inner(__receiver, __mi)
319 }
320 }
321 }
322 #[doc = "`SetVerticesDirty()` overload"]
323 fn set_vertices_dirty(self) -> () {
324 unsafe {
325 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
326 {
327 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
328 let __vi = *__vt.get(28usize).unwrap_or_else(|| {
329 panic!(
330 "unity: virtual slot {}
331 out of range (vtable len {}
332) on the runtime class behind {}
333 (method `{}
334`)",
335 28usize,
336 __vt.len(),
337 <Graphic as ::unity::ClassIdentity>::NAME,
338 "SetVerticesDirty",
339 )
340 });
341 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
342 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
343 __inner(__receiver, __mi)
344 }
345 }
346 }
347 #[doc = "`SetMaterialDirty()` overload"]
348 fn set_material_dirty(self) -> () {
349 unsafe {
350 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
351 {
352 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
353 let __vi = *__vt.get(29usize).unwrap_or_else(|| {
354 panic!(
355 "unity: virtual slot {}
356 out of range (vtable len {}
357) on the runtime class behind {}
358 (method `{}
359`)",
360 29usize,
361 __vt.len(),
362 <Graphic as ::unity::ClassIdentity>::NAME,
363 "SetMaterialDirty",
364 )
365 });
366 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
367 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
368 __inner(__receiver, __mi)
369 }
370 }
371 }
372 #[doc = "`OnRectTransformDimensionsChange()` overload"]
373 fn on_rect_transform_dimensions_change(self) -> () {
374 unsafe {
375 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
376 {
377 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
378 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
379 panic!(
380 "unity: virtual slot {}
381 out of range (vtable len {}
382) on the runtime class behind {}
383 (method `{}
384`)",
385 10usize,
386 __vt.len(),
387 <Graphic as ::unity::ClassIdentity>::NAME,
388 "OnRectTransformDimensionsChange",
389 )
390 });
391 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
392 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
393 __inner(__receiver, __mi)
394 }
395 }
396 }
397 #[doc = "`OnBeforeTransformParentChanged()` overload"]
398 fn on_before_transform_parent_changed(self) -> () {
399 unsafe {
400 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
401 {
402 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
403 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
404 panic!(
405 "unity: virtual slot {}
406 out of range (vtable len {}
407) on the runtime class behind {}
408 (method `{}
409`)",
410 11usize,
411 __vt.len(),
412 <Graphic as ::unity::ClassIdentity>::NAME,
413 "OnBeforeTransformParentChanged",
414 )
415 });
416 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
417 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
418 __inner(__receiver, __mi)
419 }
420 }
421 }
422 #[doc = "`OnTransformParentChanged()` overload"]
423 fn on_transform_parent_changed(self) -> () {
424 unsafe {
425 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
426 {
427 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
428 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
429 panic!(
430 "unity: virtual slot {}
431 out of range (vtable len {}
432) on the runtime class behind {}
433 (method `{}
434`)",
435 12usize,
436 __vt.len(),
437 <Graphic as ::unity::ClassIdentity>::NAME,
438 "OnTransformParentChanged",
439 )
440 });
441 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
442 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
443 __inner(__receiver, __mi)
444 }
445 }
446 }
447 #[doc = "`get_depth()` overload"]
448 fn get_depth(self) -> i32 {
449 unsafe {
450 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
451 ::unity::il2cpp_call!((::unity::module_base()+0x318d490usize)as*mut u8,i32;
452(Graphic)__receiver)
453 }
454 }
455 #[doc = "`get_rectTransform()` overload"]
456 fn get_rect_transform(self) -> crate::unity_engine::recttransform::RectTransform {
457 unsafe {
458 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
459 {
460 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
461 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
462 panic!(
463 "unity: virtual slot {}
464 out of range (vtable len {}
465) on the runtime class behind {}
466 (method `{}
467`)",
468 30usize,
469 __vt.len(),
470 <Graphic as ::unity::ClassIdentity>::NAME,
471 "get_rectTransform",
472 )
473 });
474 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> crate::unity_engine::recttransform::RectTransform =
475 ::core::mem::transmute(__vi.method_ptr);
476 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
477 __inner(__receiver, __mi)
478 }
479 }
480 }
481 #[doc = "`get_canvas()` overload"]
482 fn get_canvas(self) -> crate::unity_engine::canvas::Canvas {
483 unsafe {
484 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
485 ::unity::il2cpp_call!((::unity::module_base()+0x318c240usize)as*mut u8,crate::unity_engine::canvas::Canvas;
486(Graphic)__receiver)
487 }
488 }
489 #[doc = "`CacheCanvas()` overload"]
490 fn cache_canvas(self) -> () {
491 unsafe {
492 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
493 ::unity::il2cpp_call!((::unity::module_base()+0x318d0c0usize)as*mut u8,();
494(Graphic)__receiver)
495 }
496 }
497 #[doc = "`get_canvasRenderer()` overload"]
498 fn get_canvas_renderer(self) -> crate::unity_engine::canvasrenderer::CanvasRenderer {
499 unsafe {
500 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
501 ::unity::il2cpp_call!((::unity::module_base()+0x318d4b0usize)as*mut u8,crate::unity_engine::canvasrenderer::CanvasRenderer;
502(Graphic)__receiver)
503 }
504 }
505 #[doc = "`get_defaultMaterial()` overload"]
506 fn get_default_material(self) -> crate::unity_engine::material::Material {
507 unsafe {
508 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
509 {
510 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
511 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
512 panic!(
513 "unity: virtual slot {}
514 out of range (vtable len {}
515) on the runtime class behind {}
516 (method `{}
517`)",
518 31usize,
519 __vt.len(),
520 <Graphic as ::unity::ClassIdentity>::NAME,
521 "get_defaultMaterial",
522 )
523 });
524 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
525 ::core::mem::transmute(__vi.method_ptr);
526 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
527 __inner(__receiver, __mi)
528 }
529 }
530 }
531 #[doc = "`get_material()` overload"]
532 fn get_material(self) -> crate::unity_engine::material::Material {
533 unsafe {
534 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
535 {
536 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
537 let __vi = *__vt.get(32usize).unwrap_or_else(|| {
538 panic!(
539 "unity: virtual slot {}
540 out of range (vtable len {}
541) on the runtime class behind {}
542 (method `{}
543`)",
544 32usize,
545 __vt.len(),
546 <Graphic as ::unity::ClassIdentity>::NAME,
547 "get_material",
548 )
549 });
550 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
551 ::core::mem::transmute(__vi.method_ptr);
552 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
553 __inner(__receiver, __mi)
554 }
555 }
556 }
557 #[doc = "`set_material(crate::unity_engine::material::Material)` overload"]
558 fn set_material(self, value: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> () {
559 unsafe {
560 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
561 {
562 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
563 let __vi = *__vt.get(33usize).unwrap_or_else(|| {
564 panic!(
565 "unity: virtual slot {}
566 out of range (vtable len {}
567) on the runtime class behind {}
568 (method `{}
569`)",
570 33usize,
571 __vt.len(),
572 <Graphic as ::unity::ClassIdentity>::NAME,
573 "set_material",
574 )
575 });
576 let __inner: extern "C" fn(Graphic, crate::unity_engine::material::Material, ::unity::OptionalMethod) -> () =
577 ::core::mem::transmute(__vi.method_ptr);
578 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
579 __inner(__receiver, ::core::convert::Into::into(value), __mi)
580 }
581 }
582 }
583 #[doc = "`get_materialForRendering()` overload"]
584 fn get_material_for_rendering(self) -> crate::unity_engine::material::Material {
585 unsafe {
586 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
587 {
588 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
589 let __vi = *__vt.get(34usize).unwrap_or_else(|| {
590 panic!(
591 "unity: virtual slot {}
592 out of range (vtable len {}
593) on the runtime class behind {}
594 (method `{}
595`)",
596 34usize,
597 __vt.len(),
598 <Graphic as ::unity::ClassIdentity>::NAME,
599 "get_materialForRendering",
600 )
601 });
602 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
603 ::core::mem::transmute(__vi.method_ptr);
604 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
605 __inner(__receiver, __mi)
606 }
607 }
608 }
609 #[doc = "`get_mainTexture()` overload"]
610 fn get_main_texture(self) -> crate::unity_engine::texture::Texture {
611 unsafe {
612 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
613 {
614 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
615 let __vi = *__vt.get(35usize).unwrap_or_else(|| {
616 panic!(
617 "unity: virtual slot {}
618 out of range (vtable len {}
619) on the runtime class behind {}
620 (method `{}
621`)",
622 35usize,
623 __vt.len(),
624 <Graphic as ::unity::ClassIdentity>::NAME,
625 "get_mainTexture",
626 )
627 });
628 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> crate::unity_engine::texture::Texture =
629 ::core::mem::transmute(__vi.method_ptr);
630 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
631 __inner(__receiver, __mi)
632 }
633 }
634 }
635 #[doc = "`OnEnable()` overload"]
636 fn on_enable(self) -> () {
637 unsafe {
638 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
639 {
640 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
641 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
642 panic!(
643 "unity: virtual slot {}
644 out of range (vtable len {}
645) on the runtime class behind {}
646 (method `{}
647`)",
648 5usize,
649 __vt.len(),
650 <Graphic as ::unity::ClassIdentity>::NAME,
651 "OnEnable",
652 )
653 });
654 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
655 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
656 __inner(__receiver, __mi)
657 }
658 }
659 }
660 #[doc = "`OnDisable()` overload"]
661 fn on_disable(self) -> () {
662 unsafe {
663 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
664 {
665 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
666 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
667 panic!(
668 "unity: virtual slot {}
669 out of range (vtable len {}
670) on the runtime class behind {}
671 (method `{}
672`)",
673 7usize,
674 __vt.len(),
675 <Graphic as ::unity::ClassIdentity>::NAME,
676 "OnDisable",
677 )
678 });
679 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
680 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
681 __inner(__receiver, __mi)
682 }
683 }
684 }
685 #[doc = "`OnDestroy()` overload"]
686 fn on_destroy(self) -> () {
687 unsafe {
688 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
689 {
690 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
691 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
692 panic!(
693 "unity: virtual slot {}
694 out of range (vtable len {}
695) on the runtime class behind {}
696 (method `{}
697`)",
698 8usize,
699 __vt.len(),
700 <Graphic as ::unity::ClassIdentity>::NAME,
701 "OnDestroy",
702 )
703 });
704 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
705 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
706 __inner(__receiver, __mi)
707 }
708 }
709 }
710 #[doc = "`OnCanvasHierarchyChanged()` overload"]
711 fn on_canvas_hierarchy_changed(self) -> () {
712 unsafe {
713 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
714 {
715 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
716 let __vi = *__vt.get(15usize).unwrap_or_else(|| {
717 panic!(
718 "unity: virtual slot {}
719 out of range (vtable len {}
720) on the runtime class behind {}
721 (method `{}
722`)",
723 15usize,
724 __vt.len(),
725 <Graphic as ::unity::ClassIdentity>::NAME,
726 "OnCanvasHierarchyChanged",
727 )
728 });
729 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
730 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
731 __inner(__receiver, __mi)
732 }
733 }
734 }
735 #[doc = "`OnCullingChanged()` overload"]
736 fn on_culling_changed(self) -> () {
737 unsafe {
738 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
739 {
740 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
741 let __vi = *__vt.get(36usize).unwrap_or_else(|| {
742 panic!(
743 "unity: virtual slot {}
744 out of range (vtable len {}
745) on the runtime class behind {}
746 (method `{}
747`)",
748 36usize,
749 __vt.len(),
750 <Graphic as ::unity::ClassIdentity>::NAME,
751 "OnCullingChanged",
752 )
753 });
754 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
755 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
756 __inner(__receiver, __mi)
757 }
758 }
759 }
760 #[doc = "`Rebuild(crate::unity_engine::ui::canvasupdate::CanvasUpdate)` overload"]
761 fn rebuild(self, update: impl ::core::convert::Into<crate::unity_engine::ui::canvasupdate::CanvasUpdate>) -> () {
762 unsafe {
763 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
764 {
765 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
766 let __vi = *__vt.get(37usize).unwrap_or_else(|| {
767 panic!(
768 "unity: virtual slot {}
769 out of range (vtable len {}
770) on the runtime class behind {}
771 (method `{}
772`)",
773 37usize,
774 __vt.len(),
775 <Graphic as ::unity::ClassIdentity>::NAME,
776 "Rebuild",
777 )
778 });
779 let __inner: extern "C" fn(Graphic, crate::unity_engine::ui::canvasupdate::CanvasUpdate, ::unity::OptionalMethod) -> () =
780 ::core::mem::transmute(__vi.method_ptr);
781 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
782 __inner(__receiver, ::core::convert::Into::into(update), __mi)
783 }
784 }
785 }
786 #[doc = "`LayoutComplete()` overload"]
787 fn layout_complete(self) -> () {
788 unsafe {
789 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
790 {
791 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
792 let __vi = *__vt.get(38usize).unwrap_or_else(|| {
793 panic!(
794 "unity: virtual slot {}
795 out of range (vtable len {}
796) on the runtime class behind {}
797 (method `{}
798`)",
799 38usize,
800 __vt.len(),
801 <Graphic as ::unity::ClassIdentity>::NAME,
802 "LayoutComplete",
803 )
804 });
805 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
806 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
807 __inner(__receiver, __mi)
808 }
809 }
810 }
811 #[doc = "`GraphicUpdateComplete()` overload"]
812 fn graphic_update_complete(self) -> () {
813 unsafe {
814 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
815 {
816 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
817 let __vi = *__vt.get(39usize).unwrap_or_else(|| {
818 panic!(
819 "unity: virtual slot {}
820 out of range (vtable len {}
821) on the runtime class behind {}
822 (method `{}
823`)",
824 39usize,
825 __vt.len(),
826 <Graphic as ::unity::ClassIdentity>::NAME,
827 "GraphicUpdateComplete",
828 )
829 });
830 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
831 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
832 __inner(__receiver, __mi)
833 }
834 }
835 }
836 #[doc = "`UpdateMaterial()` overload"]
837 fn update_material(self) -> () {
838 unsafe {
839 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
840 {
841 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
842 let __vi = *__vt.get(40usize).unwrap_or_else(|| {
843 panic!(
844 "unity: virtual slot {}
845 out of range (vtable len {}
846) on the runtime class behind {}
847 (method `{}
848`)",
849 40usize,
850 __vt.len(),
851 <Graphic as ::unity::ClassIdentity>::NAME,
852 "UpdateMaterial",
853 )
854 });
855 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
856 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
857 __inner(__receiver, __mi)
858 }
859 }
860 }
861 #[doc = "`UpdateGeometry()` overload"]
862 fn update_geometry(self) -> () {
863 unsafe {
864 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
865 {
866 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
867 let __vi = *__vt.get(41usize).unwrap_or_else(|| {
868 panic!(
869 "unity: virtual slot {}
870 out of range (vtable len {}
871) on the runtime class behind {}
872 (method `{}
873`)",
874 41usize,
875 __vt.len(),
876 <Graphic as ::unity::ClassIdentity>::NAME,
877 "UpdateGeometry",
878 )
879 });
880 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
881 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
882 __inner(__receiver, __mi)
883 }
884 }
885 }
886 #[doc = "`DoMeshGeneration()` overload"]
887 fn do_mesh_generation(self) -> () {
888 unsafe {
889 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
890 ::unity::il2cpp_call!((::unity::module_base()+0x318e7d0usize)as*mut u8,();
891(Graphic)__receiver)
892 }
893 }
894 #[doc = "`DoLegacyMeshGeneration()` overload"]
895 fn do_legacy_mesh_generation(self) -> () {
896 unsafe {
897 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
898 ::unity::il2cpp_call!((::unity::module_base()+0x318e320usize)as*mut u8,();
899(Graphic)__receiver)
900 }
901 }
902 #[doc = "`OnFillVBO(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>)` overload"]
903 fn on_fill_vbo(
904 self,
905 vbo: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>>,
906 ) -> () {
907 unsafe {
908 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
909 {
910 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
911 let __vi = *__vt.get(42usize).unwrap_or_else(|| {
912 panic!(
913 "unity: virtual slot {}
914 out of range (vtable len {}
915) on the runtime class behind {}
916 (method `{}
917`)",
918 42usize,
919 __vt.len(),
920 <Graphic as ::unity::ClassIdentity>::NAME,
921 "OnFillVBO",
922 )
923 });
924 let __inner: extern "C" fn(
925 Graphic,
926 crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>,
927 ::unity::OptionalMethod,
928 ) -> () = ::core::mem::transmute(__vi.method_ptr);
929 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
930 __inner(__receiver, ::core::convert::Into::into(vbo), __mi)
931 }
932 }
933 }
934 #[doc = "`OnPopulateMesh(crate::unity_engine::mesh::Mesh)` overload"]
935 fn on_populate_mesh(self, m: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
936 unsafe {
937 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
938 {
939 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
940 let __vi = *__vt.get(43usize).unwrap_or_else(|| {
941 panic!(
942 "unity: virtual slot {}
943 out of range (vtable len {}
944) on the runtime class behind {}
945 (method `{}
946`)",
947 43usize,
948 __vt.len(),
949 <Graphic as ::unity::ClassIdentity>::NAME,
950 "OnPopulateMesh",
951 )
952 });
953 let __inner: extern "C" fn(Graphic, crate::unity_engine::mesh::Mesh, ::unity::OptionalMethod) -> () =
954 ::core::mem::transmute(__vi.method_ptr);
955 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
956 __inner(__receiver, ::core::convert::Into::into(m), __mi)
957 }
958 }
959 }
960 #[doc = "`OnPopulateMesh(crate::unity_engine::ui::vertexhelper::VertexHelper)` overload"]
961 fn on_populate_mesh_2(self, vh: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>) -> () {
962 unsafe {
963 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
964 {
965 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
966 let __vi = *__vt.get(44usize).unwrap_or_else(|| {
967 panic!(
968 "unity: virtual slot {}
969 out of range (vtable len {}
970) on the runtime class behind {}
971 (method `{}
972`)",
973 44usize,
974 __vt.len(),
975 <Graphic as ::unity::ClassIdentity>::NAME,
976 "OnPopulateMesh",
977 )
978 });
979 let __inner: extern "C" fn(Graphic, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
980 ::core::mem::transmute(__vi.method_ptr);
981 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
982 __inner(__receiver, ::core::convert::Into::into(vh), __mi)
983 }
984 }
985 }
986 #[doc = "`OnDidApplyAnimationProperties()` overload"]
987 fn on_did_apply_animation_properties(self) -> () {
988 unsafe {
989 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
990 {
991 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
992 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
993 panic!(
994 "unity: virtual slot {}
995 out of range (vtable len {}
996) on the runtime class behind {}
997 (method `{}
998`)",
999 13usize,
1000 __vt.len(),
1001 <Graphic as ::unity::ClassIdentity>::NAME,
1002 "OnDidApplyAnimationProperties",
1003 )
1004 });
1005 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1006 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1007 __inner(__receiver, __mi)
1008 }
1009 }
1010 }
1011 #[doc = "`SetNativeSize()` overload"]
1012 fn set_native_size(self) -> () {
1013 unsafe {
1014 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1015 {
1016 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1017 let __vi = *__vt.get(45usize).unwrap_or_else(|| {
1018 panic!(
1019 "unity: virtual slot {}
1020 out of range (vtable len {}
1021) on the runtime class behind {}
1022 (method `{}
1023`)",
1024 45usize,
1025 __vt.len(),
1026 <Graphic as ::unity::ClassIdentity>::NAME,
1027 "SetNativeSize",
1028 )
1029 });
1030 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1031 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1032 __inner(__receiver, __mi)
1033 }
1034 }
1035 }
1036 #[doc = "`Raycast(crate::unity_engine::vector2::Vector2, crate::unity_engine::camera::Camera)` overload"]
1037 fn raycast(
1038 self,
1039 sp: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
1040 event_camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
1041 ) -> bool {
1042 unsafe {
1043 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1044 {
1045 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1046 let __vi = *__vt.get(46usize).unwrap_or_else(|| {
1047 panic!(
1048 "unity: virtual slot {}
1049 out of range (vtable len {}
1050) on the runtime class behind {}
1051 (method `{}
1052`)",
1053 46usize,
1054 __vt.len(),
1055 <Graphic as ::unity::ClassIdentity>::NAME,
1056 "Raycast",
1057 )
1058 });
1059 let __inner: extern "C" fn(
1060 Graphic,
1061 crate::unity_engine::vector2::Vector2,
1062 crate::unity_engine::camera::Camera,
1063 ::unity::OptionalMethod,
1064 ) -> bool = ::core::mem::transmute(__vi.method_ptr);
1065 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1066 __inner(
1067 __receiver,
1068 ::core::convert::Into::into(sp),
1069 ::core::convert::Into::into(event_camera),
1070 __mi,
1071 )
1072 }
1073 }
1074 }
1075 #[doc = "`PixelAdjustPoint(crate::unity_engine::vector2::Vector2)` overload"]
1076 fn pixel_adjust_point(self, point: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> crate::unity_engine::vector2::Vector2 {
1077 unsafe {
1078 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1079 ::unity::il2cpp_call!((::unity::module_base()+0x318f9e0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
1080(Graphic)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(point))
1081 }
1082 }
1083 #[doc = "`GetPixelAdjustedRect()` overload"]
1084 fn get_pixel_adjusted_rect(self) -> crate::unity_engine::rect::Rect {
1085 unsafe {
1086 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1087 ::unity::il2cpp_call!((::unity::module_base()+0x318f150usize)as*mut u8,crate::unity_engine::rect::Rect;
1088(Graphic)__receiver)
1089 }
1090 }
1091 #[doc = "`CrossFadeColor(crate::unity_engine::color::Color, f32, bool, bool)` overload"]
1092 fn cross_fade_color(
1093 self,
1094 target_color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
1095 duration: impl ::core::convert::Into<f32>,
1096 ignore_time_scale: impl ::core::convert::Into<bool>,
1097 use_alpha: impl ::core::convert::Into<bool>,
1098 ) -> () {
1099 unsafe {
1100 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1101 {
1102 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1103 let __vi = *__vt.get(47usize).unwrap_or_else(|| {
1104 panic!(
1105 "unity: virtual slot {}
1106 out of range (vtable len {}
1107) on the runtime class behind {}
1108 (method `{}
1109`)",
1110 47usize,
1111 __vt.len(),
1112 <Graphic as ::unity::ClassIdentity>::NAME,
1113 "CrossFadeColor",
1114 )
1115 });
1116 let __inner: extern "C" fn(Graphic, crate::unity_engine::color::Color, f32, bool, bool, ::unity::OptionalMethod) -> () =
1117 ::core::mem::transmute(__vi.method_ptr);
1118 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1119 __inner(
1120 __receiver,
1121 ::core::convert::Into::into(target_color),
1122 ::core::convert::Into::into(duration),
1123 ::core::convert::Into::into(ignore_time_scale),
1124 ::core::convert::Into::into(use_alpha),
1125 __mi,
1126 )
1127 }
1128 }
1129 }
1130 #[doc = "`CrossFadeColor(crate::unity_engine::color::Color, f32, bool, bool, bool)` overload"]
1131 fn cross_fade_color_2(
1132 self,
1133 target_color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
1134 duration: impl ::core::convert::Into<f32>,
1135 ignore_time_scale: impl ::core::convert::Into<bool>,
1136 use_alpha: impl ::core::convert::Into<bool>,
1137 use_rgb: impl ::core::convert::Into<bool>,
1138 ) -> () {
1139 unsafe {
1140 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1141 {
1142 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1143 let __vi = *__vt.get(48usize).unwrap_or_else(|| {
1144 panic!(
1145 "unity: virtual slot {}
1146 out of range (vtable len {}
1147) on the runtime class behind {}
1148 (method `{}
1149`)",
1150 48usize,
1151 __vt.len(),
1152 <Graphic as ::unity::ClassIdentity>::NAME,
1153 "CrossFadeColor",
1154 )
1155 });
1156 let __inner: extern "C" fn(Graphic, crate::unity_engine::color::Color, f32, bool, bool, bool, ::unity::OptionalMethod) -> () =
1157 ::core::mem::transmute(__vi.method_ptr);
1158 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1159 __inner(
1160 __receiver,
1161 ::core::convert::Into::into(target_color),
1162 ::core::convert::Into::into(duration),
1163 ::core::convert::Into::into(ignore_time_scale),
1164 ::core::convert::Into::into(use_alpha),
1165 ::core::convert::Into::into(use_rgb),
1166 __mi,
1167 )
1168 }
1169 }
1170 }
1171 #[doc = "`CrossFadeAlpha(f32, f32, bool)` overload"]
1172 fn cross_fade_alpha(
1173 self,
1174 alpha: impl ::core::convert::Into<f32>,
1175 duration: impl ::core::convert::Into<f32>,
1176 ignore_time_scale: impl ::core::convert::Into<bool>,
1177 ) -> () {
1178 unsafe {
1179 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1180 {
1181 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1182 let __vi = *__vt.get(49usize).unwrap_or_else(|| {
1183 panic!(
1184 "unity: virtual slot {}
1185 out of range (vtable len {}
1186) on the runtime class behind {}
1187 (method `{}
1188`)",
1189 49usize,
1190 __vt.len(),
1191 <Graphic as ::unity::ClassIdentity>::NAME,
1192 "CrossFadeAlpha",
1193 )
1194 });
1195 let __inner: extern "C" fn(Graphic, f32, f32, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1196 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1197 __inner(
1198 __receiver,
1199 ::core::convert::Into::into(alpha),
1200 ::core::convert::Into::into(duration),
1201 ::core::convert::Into::into(ignore_time_scale),
1202 __mi,
1203 )
1204 }
1205 }
1206 }
1207 #[doc = "`RegisterDirtyLayoutCallback(crate::unity_engine::events::unityaction::UnityAction)` overload"]
1208 fn register_dirty_layout_callback(self, action: impl ::core::convert::Into<crate::unity_engine::events::unityaction::UnityAction>) -> () {
1209 unsafe {
1210 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1211 ::unity::il2cpp_call!((::unity::module_base()+0x3190090usize)as*mut u8,();
1212(Graphic)__receiver,(crate::unity_engine::events::unityaction::UnityAction)::core::convert::Into::into(action))
1213 }
1214 }
1215 #[doc = "`UnregisterDirtyLayoutCallback(crate::unity_engine::events::unityaction::UnityAction)` overload"]
1216 fn unregister_dirty_layout_callback(self, action: impl ::core::convert::Into<crate::unity_engine::events::unityaction::UnityAction>) -> () {
1217 unsafe {
1218 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1219 ::unity::il2cpp_call!((::unity::module_base()+0x3190120usize)as*mut u8,();
1220(Graphic)__receiver,(crate::unity_engine::events::unityaction::UnityAction)::core::convert::Into::into(action))
1221 }
1222 }
1223 #[doc = "`RegisterDirtyVerticesCallback(crate::unity_engine::events::unityaction::UnityAction)` overload"]
1224 fn register_dirty_vertices_callback(self, action: impl ::core::convert::Into<crate::unity_engine::events::unityaction::UnityAction>) -> () {
1225 unsafe {
1226 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1227 ::unity::il2cpp_call!((::unity::module_base()+0x31901b0usize)as*mut u8,();
1228(Graphic)__receiver,(crate::unity_engine::events::unityaction::UnityAction)::core::convert::Into::into(action))
1229 }
1230 }
1231 #[doc = "`UnregisterDirtyVerticesCallback(crate::unity_engine::events::unityaction::UnityAction)` overload"]
1232 fn unregister_dirty_vertices_callback(self, action: impl ::core::convert::Into<crate::unity_engine::events::unityaction::UnityAction>) -> () {
1233 unsafe {
1234 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1235 ::unity::il2cpp_call!((::unity::module_base()+0x3190240usize)as*mut u8,();
1236(Graphic)__receiver,(crate::unity_engine::events::unityaction::UnityAction)::core::convert::Into::into(action))
1237 }
1238 }
1239 #[doc = "`RegisterDirtyMaterialCallback(crate::unity_engine::events::unityaction::UnityAction)` overload"]
1240 fn register_dirty_material_callback(self, action: impl ::core::convert::Into<crate::unity_engine::events::unityaction::UnityAction>) -> () {
1241 unsafe {
1242 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1243 ::unity::il2cpp_call!((::unity::module_base()+0x31902d0usize)as*mut u8,();
1244(Graphic)__receiver,(crate::unity_engine::events::unityaction::UnityAction)::core::convert::Into::into(action))
1245 }
1246 }
1247 #[doc = "`UnregisterDirtyMaterialCallback(crate::unity_engine::events::unityaction::UnityAction)` overload"]
1248 fn unregister_dirty_material_callback(self, action: impl ::core::convert::Into<crate::unity_engine::events::unityaction::UnityAction>) -> () {
1249 unsafe {
1250 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1251 ::unity::il2cpp_call!((::unity::module_base()+0x3190360usize)as*mut u8,();
1252(Graphic)__receiver,(crate::unity_engine::events::unityaction::UnityAction)::core::convert::Into::into(action))
1253 }
1254 }
1255 #[doc = "`UnityEngine.UI.ICanvasElement.get_transform()` overload"]
1256 fn unity_engine_ui_i_canvas_element_get_transform(self) -> crate::unity_engine::transform::Transform {
1257 unsafe {
1258 let __receiver = <Graphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1259 {
1260 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1261 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
1262 panic!(
1263 "unity: virtual slot {}
1264 out of range (vtable len {}
1265) on the runtime class behind {}
1266 (method `{}
1267`)",
1268 18usize,
1269 __vt.len(),
1270 <Graphic as ::unity::ClassIdentity>::NAME,
1271 "UnityEngine.UI.ICanvasElement.get_transform",
1272 )
1273 });
1274 let __inner: extern "C" fn(Graphic, ::unity::OptionalMethod) -> crate::unity_engine::transform::Transform =
1275 ::core::mem::transmute(__vi.method_ptr);
1276 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1277 __inner(__receiver, __mi)
1278 }
1279 }
1280 }
1281}
1282
1283#[cfg(feature = "unity_engine-ui-graphic")]
1284impl<__T: IGraphic> IGraphicMethods for __T {}
1285
1286#[cfg(feature = "unity_engine-ui-graphic")]
1287impl Graphic {
1288 pub fn get_default_graphic_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1290 }
1291
1292 pub fn get_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1294 }
1295
1296 pub fn set_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
1298 }
1299
1300 pub fn get_raycast_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
1302 }
1303
1304 pub fn set_raycast_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
1306 }
1307
1308 pub fn get_raycast_padding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
1310 }
1311
1312 pub fn set_raycast_padding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
1314 }
1315
1316 pub fn get_use_legacy_mesh_generation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
1318 }
1319
1320 pub fn set_use_legacy_mesh_generation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
1322 }
1323
1324 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
1326 }
1327
1328 pub fn set_all_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
1330 }
1331
1332 pub fn set_layout_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
1334 }
1335
1336 pub fn set_vertices_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
1338 }
1339
1340 pub fn set_material_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
1342 }
1343
1344 pub fn on_rect_transform_dimensions_change_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
1346 }
1347
1348 pub fn on_before_transform_parent_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
1350 }
1351
1352 pub fn on_transform_parent_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1353 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
1354 }
1355
1356 pub fn get_depth_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
1358 }
1359
1360 pub fn get_rect_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1361 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
1362 }
1363
1364 pub fn get_canvas_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1365 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
1366 }
1367
1368 pub fn cache_canvas_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1369 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1370 }
1371
1372 pub fn get_canvas_renderer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1373 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
1374 }
1375
1376 pub fn get_default_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1377 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
1378 }
1379
1380 pub fn get_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1381 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
1382 }
1383
1384 pub fn set_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1385 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
1386 }
1387
1388 pub fn get_material_for_rendering_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1389 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
1390 }
1391
1392 pub fn get_main_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1393 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
1394 }
1395
1396 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1397 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
1398 }
1399
1400 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1401 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
1402 }
1403
1404 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1405 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
1406 }
1407
1408 pub fn on_canvas_hierarchy_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1409 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
1410 }
1411
1412 pub fn on_culling_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1413 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
1414 }
1415
1416 pub fn rebuild_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1417 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
1418 }
1419
1420 pub fn layout_complete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1421 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
1422 }
1423
1424 pub fn graphic_update_complete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1425 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
1426 }
1427
1428 pub fn update_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1429 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
1430 }
1431
1432 pub fn update_geometry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1433 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
1434 }
1435
1436 pub fn do_mesh_generation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1437 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
1438 }
1439
1440 pub fn do_legacy_mesh_generation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1441 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
1442 }
1443
1444 pub fn get_worker_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1445 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
1446 }
1447
1448 pub fn on_fill_vbo_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1449 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
1450 }
1451
1452 pub fn on_populate_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1453 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
1454 }
1455
1456 pub fn on_populate_mesh_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1457 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
1458 }
1459
1460 pub fn on_did_apply_animation_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1461 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
1462 }
1463
1464 pub fn set_native_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1465 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
1466 }
1467
1468 pub fn raycast_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1469 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
1470 }
1471
1472 pub fn pixel_adjust_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1473 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
1474 }
1475
1476 pub fn get_pixel_adjusted_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1477 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
1478 }
1479
1480 pub fn cross_fade_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1481 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
1482 }
1483
1484 pub fn cross_fade_color_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1485 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
1486 }
1487
1488 pub fn create_color_from_alpha_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1489 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
1490 }
1491
1492 pub fn cross_fade_alpha_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1493 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
1494 }
1495
1496 pub fn register_dirty_layout_callback_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1497 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
1498 }
1499
1500 pub fn unregister_dirty_layout_callback_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1501 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
1502 }
1503
1504 pub fn register_dirty_vertices_callback_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1505 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[54]
1506 }
1507
1508 pub fn unregister_dirty_vertices_callback_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1509 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[55]
1510 }
1511
1512 pub fn register_dirty_material_callback_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1513 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[56]
1514 }
1515
1516 pub fn unregister_dirty_material_callback_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1517 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[57]
1518 }
1519
1520 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1521 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[58]
1522 }
1523
1524 pub fn unity_engine_ui_i_canvas_element_get_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1525 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[59]
1526 }
1527}
1528
1529#[cfg(feature = "unity_engine-ui-graphic")]
1530impl Graphic {
1531 #[doc = "Direct (non-virtual) call to `Graphic`'s own `get_color`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1532 pub unsafe fn get_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::color::Color {
1533 let __mi = Self::get_color_method_info();
1534 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
1535 ::core::mem::transmute(__mi.method_ptr);
1536 __inner(this.into(), ::core::option::Option::None)
1537 }
1538
1539 #[doc = "Direct (non-virtual) call to `Graphic`'s own `set_color`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1540 pub unsafe fn set_color(this: impl ::core::convert::Into<::unity::IlInstance>, value: crate::unity_engine::color::Color) -> () {
1541 let __mi = Self::set_color_method_info();
1542 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::color::Color, ::unity::OptionalMethod) -> () =
1543 ::core::mem::transmute(__mi.method_ptr);
1544 __inner(this.into(), value, ::core::option::Option::None)
1545 }
1546
1547 #[doc = "Direct (non-virtual) call to `Graphic`'s own `get_raycastTarget`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1548 pub unsafe fn get_raycast_target(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
1549 let __mi = Self::get_raycast_target_method_info();
1550 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
1551 __inner(this.into(), ::core::option::Option::None)
1552 }
1553
1554 #[doc = "Direct (non-virtual) call to `Graphic`'s own `set_raycastTarget`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1555 pub unsafe fn set_raycast_target(this: impl ::core::convert::Into<::unity::IlInstance>, value: bool) -> () {
1556 let __mi = Self::set_raycast_target_method_info();
1557 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1558 __inner(this.into(), value, ::core::option::Option::None)
1559 }
1560
1561 #[doc = "Direct (non-virtual) call to `Graphic`'s own `SetAllDirty`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1562 pub unsafe fn set_all_dirty(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1563 let __mi = Self::set_all_dirty_method_info();
1564 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1565 __inner(this.into(), ::core::option::Option::None)
1566 }
1567
1568 #[doc = "Direct (non-virtual) call to `Graphic`'s own `SetLayoutDirty`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1569 pub unsafe fn set_layout_dirty(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1570 let __mi = Self::set_layout_dirty_method_info();
1571 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1572 __inner(this.into(), ::core::option::Option::None)
1573 }
1574
1575 #[doc = "Direct (non-virtual) call to `Graphic`'s own `SetVerticesDirty`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1576 pub unsafe fn set_vertices_dirty(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1577 let __mi = Self::set_vertices_dirty_method_info();
1578 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1579 __inner(this.into(), ::core::option::Option::None)
1580 }
1581
1582 #[doc = "Direct (non-virtual) call to `Graphic`'s own `SetMaterialDirty`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1583 pub unsafe fn set_material_dirty(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1584 let __mi = Self::set_material_dirty_method_info();
1585 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1586 __inner(this.into(), ::core::option::Option::None)
1587 }
1588
1589 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnRectTransformDimensionsChange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1590 pub unsafe fn on_rect_transform_dimensions_change(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1591 let __mi = Self::on_rect_transform_dimensions_change_method_info();
1592 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1593 __inner(this.into(), ::core::option::Option::None)
1594 }
1595
1596 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnBeforeTransformParentChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1597 pub unsafe fn on_before_transform_parent_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1598 let __mi = Self::on_before_transform_parent_changed_method_info();
1599 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1600 __inner(this.into(), ::core::option::Option::None)
1601 }
1602
1603 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnTransformParentChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1604 pub unsafe fn on_transform_parent_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1605 let __mi = Self::on_transform_parent_changed_method_info();
1606 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1607 __inner(this.into(), ::core::option::Option::None)
1608 }
1609
1610 #[doc = "Direct (non-virtual) call to `Graphic`'s own `get_rectTransform`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1611 pub unsafe fn get_rect_transform(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::recttransform::RectTransform {
1612 let __mi = Self::get_rect_transform_method_info();
1613 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::recttransform::RectTransform =
1614 ::core::mem::transmute(__mi.method_ptr);
1615 __inner(this.into(), ::core::option::Option::None)
1616 }
1617
1618 #[doc = "Direct (non-virtual) call to `Graphic`'s own `get_defaultMaterial`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1619 pub unsafe fn get_default_material(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::material::Material {
1620 let __mi = Self::get_default_material_method_info();
1621 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
1622 ::core::mem::transmute(__mi.method_ptr);
1623 __inner(this.into(), ::core::option::Option::None)
1624 }
1625
1626 #[doc = "Direct (non-virtual) call to `Graphic`'s own `get_material`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1627 pub unsafe fn get_material(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::material::Material {
1628 let __mi = Self::get_material_method_info();
1629 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
1630 ::core::mem::transmute(__mi.method_ptr);
1631 __inner(this.into(), ::core::option::Option::None)
1632 }
1633
1634 #[doc = "Direct (non-virtual) call to `Graphic`'s own `set_material`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1635 pub unsafe fn set_material(this: impl ::core::convert::Into<::unity::IlInstance>, value: crate::unity_engine::material::Material) -> () {
1636 let __mi = Self::set_material_method_info();
1637 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::material::Material, ::unity::OptionalMethod) -> () =
1638 ::core::mem::transmute(__mi.method_ptr);
1639 __inner(this.into(), value, ::core::option::Option::None)
1640 }
1641
1642 #[doc = "Direct (non-virtual) call to `Graphic`'s own `get_materialForRendering`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1643 pub unsafe fn get_material_for_rendering(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::material::Material {
1644 let __mi = Self::get_material_for_rendering_method_info();
1645 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::material::Material =
1646 ::core::mem::transmute(__mi.method_ptr);
1647 __inner(this.into(), ::core::option::Option::None)
1648 }
1649
1650 #[doc = "Direct (non-virtual) call to `Graphic`'s own `get_mainTexture`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1651 pub unsafe fn get_main_texture(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::texture::Texture {
1652 let __mi = Self::get_main_texture_method_info();
1653 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::texture::Texture =
1654 ::core::mem::transmute(__mi.method_ptr);
1655 __inner(this.into(), ::core::option::Option::None)
1656 }
1657
1658 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1659 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1660 let __mi = Self::on_enable_method_info();
1661 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1662 __inner(this.into(), ::core::option::Option::None)
1663 }
1664
1665 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1666 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1667 let __mi = Self::on_disable_method_info();
1668 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1669 __inner(this.into(), ::core::option::Option::None)
1670 }
1671
1672 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnDestroy`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1673 pub unsafe fn on_destroy(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1674 let __mi = Self::on_destroy_method_info();
1675 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1676 __inner(this.into(), ::core::option::Option::None)
1677 }
1678
1679 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnCanvasHierarchyChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1680 pub unsafe fn on_canvas_hierarchy_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1681 let __mi = Self::on_canvas_hierarchy_changed_method_info();
1682 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1683 __inner(this.into(), ::core::option::Option::None)
1684 }
1685
1686 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnCullingChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1687 pub unsafe fn on_culling_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1688 let __mi = Self::on_culling_changed_method_info();
1689 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1690 __inner(this.into(), ::core::option::Option::None)
1691 }
1692
1693 #[doc = "Direct (non-virtual) call to `Graphic`'s own `Rebuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1694 pub unsafe fn rebuild(this: impl ::core::convert::Into<::unity::IlInstance>, update: crate::unity_engine::ui::canvasupdate::CanvasUpdate) -> () {
1695 let __mi = Self::rebuild_method_info();
1696 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::ui::canvasupdate::CanvasUpdate, ::unity::OptionalMethod) -> () =
1697 ::core::mem::transmute(__mi.method_ptr);
1698 __inner(this.into(), update, ::core::option::Option::None)
1699 }
1700
1701 #[doc = "Direct (non-virtual) call to `Graphic`'s own `LayoutComplete`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1702 pub unsafe fn layout_complete(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1703 let __mi = Self::layout_complete_method_info();
1704 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1705 __inner(this.into(), ::core::option::Option::None)
1706 }
1707
1708 #[doc = "Direct (non-virtual) call to `Graphic`'s own `GraphicUpdateComplete`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1709 pub unsafe fn graphic_update_complete(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1710 let __mi = Self::graphic_update_complete_method_info();
1711 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1712 __inner(this.into(), ::core::option::Option::None)
1713 }
1714
1715 #[doc = "Direct (non-virtual) call to `Graphic`'s own `UpdateMaterial`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1716 pub unsafe fn update_material(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1717 let __mi = Self::update_material_method_info();
1718 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1719 __inner(this.into(), ::core::option::Option::None)
1720 }
1721
1722 #[doc = "Direct (non-virtual) call to `Graphic`'s own `UpdateGeometry`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1723 pub unsafe fn update_geometry(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1724 let __mi = Self::update_geometry_method_info();
1725 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1726 __inner(this.into(), ::core::option::Option::None)
1727 }
1728
1729 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnFillVBO`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1730 pub unsafe fn on_fill_vbo(
1731 this: impl ::core::convert::Into<::unity::IlInstance>,
1732 vbo: crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>,
1733 ) -> () {
1734 let __mi = Self::on_fill_vbo_method_info();
1735 let __inner: extern "C" fn(
1736 ::unity::IlInstance,
1737 crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>,
1738 ::unity::OptionalMethod,
1739 ) -> () = ::core::mem::transmute(__mi.method_ptr);
1740 __inner(this.into(), vbo, ::core::option::Option::None)
1741 }
1742
1743 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnPopulateMesh`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1744 pub unsafe fn on_populate_mesh(this: impl ::core::convert::Into<::unity::IlInstance>, m: crate::unity_engine::mesh::Mesh) -> () {
1745 let __mi = Self::on_populate_mesh_method_info();
1746 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::mesh::Mesh, ::unity::OptionalMethod) -> () =
1747 ::core::mem::transmute(__mi.method_ptr);
1748 __inner(this.into(), m, ::core::option::Option::None)
1749 }
1750
1751 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnPopulateMesh`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1752 pub unsafe fn on_populate_mesh_2(
1753 this: impl ::core::convert::Into<::unity::IlInstance>,
1754 vh: crate::unity_engine::ui::vertexhelper::VertexHelper,
1755 ) -> () {
1756 let __mi = Self::on_populate_mesh_2_method_info();
1757 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
1758 ::core::mem::transmute(__mi.method_ptr);
1759 __inner(this.into(), vh, ::core::option::Option::None)
1760 }
1761
1762 #[doc = "Direct (non-virtual) call to `Graphic`'s own `OnDidApplyAnimationProperties`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1763 pub unsafe fn on_did_apply_animation_properties(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1764 let __mi = Self::on_did_apply_animation_properties_method_info();
1765 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1766 __inner(this.into(), ::core::option::Option::None)
1767 }
1768
1769 #[doc = "Direct (non-virtual) call to `Graphic`'s own `SetNativeSize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1770 pub unsafe fn set_native_size(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1771 let __mi = Self::set_native_size_method_info();
1772 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1773 __inner(this.into(), ::core::option::Option::None)
1774 }
1775
1776 #[doc = "Direct (non-virtual) call to `Graphic`'s own `Raycast`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1777 pub unsafe fn raycast(
1778 this: impl ::core::convert::Into<::unity::IlInstance>,
1779 sp: crate::unity_engine::vector2::Vector2,
1780 event_camera: crate::unity_engine::camera::Camera,
1781 ) -> bool {
1782 let __mi = Self::raycast_method_info();
1783 let __inner: extern "C" fn(
1784 ::unity::IlInstance,
1785 crate::unity_engine::vector2::Vector2,
1786 crate::unity_engine::camera::Camera,
1787 ::unity::OptionalMethod,
1788 ) -> bool = ::core::mem::transmute(__mi.method_ptr);
1789 __inner(this.into(), sp, event_camera, ::core::option::Option::None)
1790 }
1791
1792 #[doc = "Direct (non-virtual) call to `Graphic`'s own `CrossFadeColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1793 pub unsafe fn cross_fade_color(
1794 this: impl ::core::convert::Into<::unity::IlInstance>,
1795 target_color: crate::unity_engine::color::Color,
1796 duration: f32,
1797 ignore_time_scale: bool,
1798 use_alpha: bool,
1799 ) -> () {
1800 let __mi = Self::cross_fade_color_method_info();
1801 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::color::Color, f32, bool, bool, ::unity::OptionalMethod) -> () =
1802 ::core::mem::transmute(__mi.method_ptr);
1803 __inner(
1804 this.into(),
1805 target_color,
1806 duration,
1807 ignore_time_scale,
1808 use_alpha,
1809 ::core::option::Option::None,
1810 )
1811 }
1812
1813 #[doc = "Direct (non-virtual) call to `Graphic`'s own `CrossFadeColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1814 pub unsafe fn cross_fade_color_2(
1815 this: impl ::core::convert::Into<::unity::IlInstance>,
1816 target_color: crate::unity_engine::color::Color,
1817 duration: f32,
1818 ignore_time_scale: bool,
1819 use_alpha: bool,
1820 use_rgb: bool,
1821 ) -> () {
1822 let __mi = Self::cross_fade_color_2_method_info();
1823 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::color::Color, f32, bool, bool, bool, ::unity::OptionalMethod) -> () =
1824 ::core::mem::transmute(__mi.method_ptr);
1825 __inner(
1826 this.into(),
1827 target_color,
1828 duration,
1829 ignore_time_scale,
1830 use_alpha,
1831 use_rgb,
1832 ::core::option::Option::None,
1833 )
1834 }
1835
1836 #[doc = "Direct (non-virtual) call to `Graphic`'s own `CrossFadeAlpha`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1837 pub unsafe fn cross_fade_alpha(this: impl ::core::convert::Into<::unity::IlInstance>, alpha: f32, duration: f32, ignore_time_scale: bool) -> () {
1838 let __mi = Self::cross_fade_alpha_method_info();
1839 let __inner: extern "C" fn(::unity::IlInstance, f32, f32, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1840 __inner(this.into(), alpha, duration, ignore_time_scale, ::core::option::Option::None)
1841 }
1842
1843 #[doc = "Direct (non-virtual) call to `Graphic`'s own `UnityEngine.UI.ICanvasElement.get_transform`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1844 pub unsafe fn unity_engine_ui_i_canvas_element_get_transform(
1845 this: impl ::core::convert::Into<::unity::IlInstance>,
1846 ) -> crate::unity_engine::transform::Transform {
1847 let __mi = Self::unity_engine_ui_i_canvas_element_get_transform_method_info();
1848 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::transform::Transform =
1849 ::core::mem::transmute(__mi.method_ptr);
1850 __inner(this.into(), ::core::option::Option::None)
1851 }
1852}
1853
1854#[cfg(feature = "unity_engine-ui-graphic")]
1855impl Graphic {
1856 #[doc = "`.ctor()` — no args"]
1857 pub fn new() -> Self {
1858 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1859 panic!(
1860 "{}
1861::{}
1862 failed to instantiate",
1863 ::core::stringify!(Graphic),
1864 ::core::stringify!(new),
1865 )
1866 });
1867 <Self as IGraphicMethods>::ctor(this);
1868 this
1869 }
1870}
1871
1872#[cfg(feature = "unity_engine-ui-graphic")]
1873#[doc(hidden)]
1874pub mod prelude {
1875 pub use super::{Graphic, IGraphic, IGraphicMethods};
1876 #[cfg(feature = "system-object")]
1877 pub use crate::system::object::IObjectMethods;
1878 #[cfg(feature = "unity_engine-behaviour")]
1879 pub use crate::unity_engine::behaviour::IBehaviourMethods;
1880 #[cfg(feature = "unity_engine-component")]
1881 pub use crate::unity_engine::component::IComponentMethods;
1882 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
1883 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
1884 #[cfg(feature = "unity_engine-monobehaviour")]
1885 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
1886 #[cfg(feature = "unity_engine-object_2")]
1887 pub use crate::unity_engine::object_2::IObject_2Methods;
1888 pub use crate::{
1889 system::object::IObject,
1890 unity_engine::{
1891 behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
1892 object_2::IObject_2,
1893 },
1894 };
1895}