Skip to main content

engage/generated/unity_engine/ui/
maskablegraphic.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-ui-maskablegraphic-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            events::{
15                unityevent_1::{IUnityEvent_1, UnityEvent_1},
16                unityeventbase::{IUnityEventBase, UnityEventBase},
17            },
18            monobehaviour::{IMonoBehaviour, MonoBehaviour},
19            object_2::{IObject_2, Object_2},
20            ui::graphic::{Graphic, IGraphic},
21        },
22    };
23
24    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/maskablegraphic/MaskableGraphic_CullStateChangedEvent.md"))]
25    #[::unity::class(namespace = "UnityEngine.UI", name = "MaskableGraphic.CullStateChangedEvent")]
26    #[parent(crate::unity_engine::events::unityevent_1::UnityEvent_1<bool>)]
27    pub struct MaskableGraphic_CullStateChangedEvent {}
28
29    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/maskablegraphic/MaskableGraphic.md"))]
30    #[::unity::class(namespace = "UnityEngine.UI", name = "MaskableGraphic")]
31    #[parent(crate::unity_engine::ui::graphic::Graphic)]
32    pub struct MaskableGraphic {
33        #[offset(153)]
34        #[rename(name = "m_ShouldRecalculateStencil")]
35        pub m_should_recalculate_stencil: bool,
36        #[offset(160)]
37        #[rename(name = "m_MaskMaterial")]
38        pub m_mask_material: crate::unity_engine::material::Material,
39        #[offset(168)]
40        #[rename(name = "m_ParentMask")]
41        pub m_parent_mask: crate::unity_engine::ui::rectmask2d::RectMask2D,
42        #[offset(176)]
43        #[rename(name = "m_Maskable")]
44        pub m_maskable: bool,
45        #[offset(177)]
46        #[rename(name = "m_IsMaskingGraphic")]
47        pub m_is_masking_graphic: bool,
48        #[offset(178)]
49        #[rename(name = "m_IncludeForMasking")]
50        pub m_include_for_masking: bool,
51        #[offset(184)]
52        #[rename(name = "m_OnCullStateChanged")]
53        pub m_on_cull_state_changed: crate::unity_engine::ui::maskablegraphic::MaskableGraphic_CullStateChangedEvent,
54        #[offset(192)]
55        #[rename(name = "m_ShouldRecalculate")]
56        pub m_should_recalculate: bool,
57        #[offset(196)]
58        #[rename(name = "m_StencilValue")]
59        pub m_stencil_value: i32,
60        #[offset(200)]
61        #[rename(name = "m_Corners")]
62        pub m_corners: ::unity::Array<crate::unity_engine::vector3::Vector3>,
63    }
64}
65
66#[cfg(feature = "unity_engine-ui-maskablegraphic-types")]
67pub use __types::*;
68
69#[cfg(feature = "unity_engine-ui-maskablegraphic")]
70pub trait IMaskableGraphic_CullStateChangedEventMethods: IMaskableGraphic_CullStateChangedEvent {
71    #[doc = "`.ctor()` overload"]
72    fn ctor(self) -> () {
73        unsafe {
74            let __receiver = <MaskableGraphic_CullStateChangedEvent as ::unity::FromIlInstance>::from_il_instance(
75                <Self as ::unity::SystemObject>::as_instance(self),
76            );
77            ::unity::il2cpp_call!((::unity::module_base()+0x3c0de90usize)as*mut u8,();
78(MaskableGraphic_CullStateChangedEvent)__receiver)
79        }
80    }
81}
82
83#[cfg(feature = "unity_engine-ui-maskablegraphic")]
84impl<__T: IMaskableGraphic_CullStateChangedEvent> IMaskableGraphic_CullStateChangedEventMethods for __T {}
85
86#[cfg(feature = "unity_engine-ui-maskablegraphic")]
87impl MaskableGraphic_CullStateChangedEvent {
88    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
89        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
90    }
91}
92
93#[cfg(feature = "unity_engine-ui-maskablegraphic")]
94impl MaskableGraphic_CullStateChangedEvent {
95    #[doc = "`.ctor()` — no args"]
96    pub fn new() -> Self {
97        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
98            panic!(
99                "{}
100::{}
101 failed to instantiate",
102                ::core::stringify!(MaskableGraphic_CullStateChangedEvent),
103                ::core::stringify!(new),
104            )
105        });
106        <Self as IMaskableGraphic_CullStateChangedEventMethods>::ctor(this);
107        this
108    }
109}
110
111#[cfg(feature = "unity_engine-ui-maskablegraphic")]
112pub trait IMaskableGraphicMethods: IMaskableGraphic {
113    #[doc = "`get_onCullStateChanged()` overload"]
114    fn get_on_cull_state_changed(self) -> crate::unity_engine::ui::maskablegraphic::MaskableGraphic_CullStateChangedEvent {
115        unsafe {
116            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117            ::unity::il2cpp_call!((::unity::module_base()+0x371c250usize)as*mut u8,crate::unity_engine::ui::maskablegraphic::MaskableGraphic_CullStateChangedEvent;
118(MaskableGraphic)__receiver)
119        }
120    }
121    #[doc = "`set_onCullStateChanged(crate::unity_engine::ui::maskablegraphic::MaskableGraphic_CullStateChangedEvent)` overload"]
122    fn set_on_cull_state_changed(
123        self,
124        value: impl ::core::convert::Into<crate::unity_engine::ui::maskablegraphic::MaskableGraphic_CullStateChangedEvent>,
125    ) -> () {
126        unsafe {
127            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x371c260usize)as*mut u8,();
129(MaskableGraphic)__receiver,(crate::unity_engine::ui::maskablegraphic::MaskableGraphic_CullStateChangedEvent)::core::convert::Into::into(value))
130        }
131    }
132    #[doc = "`get_maskable()` overload"]
133    fn get_maskable(self) -> bool {
134        unsafe {
135            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            ::unity::il2cpp_call!((::unity::module_base()+0x371c270usize)as*mut u8,bool;
137(MaskableGraphic)__receiver)
138        }
139    }
140    #[doc = "`set_maskable(bool)` overload"]
141    fn set_maskable(self, value: impl ::core::convert::Into<bool>) -> () {
142        unsafe {
143            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x371c280usize)as*mut u8,();
145(MaskableGraphic)__receiver,(bool)::core::convert::Into::into(value))
146        }
147    }
148    #[doc = "`get_isMaskingGraphic()` overload"]
149    fn get_is_masking_graphic(self) -> bool {
150        unsafe {
151            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x371c2c0usize)as*mut u8,bool;
153(MaskableGraphic)__receiver)
154        }
155    }
156    #[doc = "`set_isMaskingGraphic(bool)` overload"]
157    fn set_is_masking_graphic(self, value: impl ::core::convert::Into<bool>) -> () {
158        unsafe {
159            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            ::unity::il2cpp_call!((::unity::module_base()+0x371a570usize)as*mut u8,();
161(MaskableGraphic)__receiver,(bool)::core::convert::Into::into(value))
162        }
163    }
164    #[doc = "`GetModifiedMaterial(crate::unity_engine::material::Material)` overload"]
165    fn get_modified_material(
166        self,
167        base_material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
168    ) -> crate::unity_engine::material::Material {
169        unsafe {
170            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            {
172                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
173                let __vi = *__vt.get(58usize).unwrap_or_else(|| {
174                    panic!(
175                        "unity: virtual slot {}
176 out of range (vtable len {}
177) on the runtime class behind {}
178 (method `{}
179`)",
180                        58usize,
181                        __vt.len(),
182                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
183                        "GetModifiedMaterial",
184                    )
185                });
186                let __inner: extern "C" fn(
187                    MaskableGraphic,
188                    crate::unity_engine::material::Material,
189                    ::unity::OptionalMethod,
190                ) -> crate::unity_engine::material::Material = ::core::mem::transmute(__vi.method_ptr);
191                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
192                __inner(__receiver, ::core::convert::Into::into(base_material), __mi)
193            }
194        }
195    }
196    #[doc = "`Cull(crate::unity_engine::rect::Rect, bool)` overload"]
197    fn cull(self, clip_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>, valid_rect: impl ::core::convert::Into<bool>) -> () {
198        unsafe {
199            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200            {
201                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
202                let __vi = *__vt.get(59usize).unwrap_or_else(|| {
203                    panic!(
204                        "unity: virtual slot {}
205 out of range (vtable len {}
206) on the runtime class behind {}
207 (method `{}
208`)",
209                        59usize,
210                        __vt.len(),
211                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
212                        "Cull",
213                    )
214                });
215                let __inner: extern "C" fn(MaskableGraphic, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
216                    ::core::mem::transmute(__vi.method_ptr);
217                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
218                __inner(
219                    __receiver,
220                    ::core::convert::Into::into(clip_rect),
221                    ::core::convert::Into::into(valid_rect),
222                    __mi,
223                )
224            }
225        }
226    }
227    #[doc = "`UpdateCull(bool)` overload"]
228    fn update_cull(self, cull: impl ::core::convert::Into<bool>) -> () {
229        unsafe {
230            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231            ::unity::il2cpp_call!((::unity::module_base()+0x371c850usize)as*mut u8,();
232(MaskableGraphic)__receiver,(bool)::core::convert::Into::into(cull))
233        }
234    }
235    #[doc = "`SetClipRect(crate::unity_engine::rect::Rect, bool)` overload"]
236    fn set_clip_rect(
237        self,
238        clip_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
239        valid_rect: impl ::core::convert::Into<bool>,
240    ) -> () {
241        unsafe {
242            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243            {
244                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
245                let __vi = *__vt.get(60usize).unwrap_or_else(|| {
246                    panic!(
247                        "unity: virtual slot {}
248 out of range (vtable len {}
249) on the runtime class behind {}
250 (method `{}
251`)",
252                        60usize,
253                        __vt.len(),
254                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
255                        "SetClipRect",
256                    )
257                });
258                let __inner: extern "C" fn(MaskableGraphic, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
259                    ::core::mem::transmute(__vi.method_ptr);
260                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
261                __inner(
262                    __receiver,
263                    ::core::convert::Into::into(clip_rect),
264                    ::core::convert::Into::into(valid_rect),
265                    __mi,
266                )
267            }
268        }
269    }
270    #[doc = "`SetClipSoftness(crate::unity_engine::vector2::Vector2)` overload"]
271    fn set_clip_softness(self, clip_softness: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
272        unsafe {
273            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274            {
275                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
276                let __vi = *__vt.get(61usize).unwrap_or_else(|| {
277                    panic!(
278                        "unity: virtual slot {}
279 out of range (vtable len {}
280) on the runtime class behind {}
281 (method `{}
282`)",
283                        61usize,
284                        __vt.len(),
285                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
286                        "SetClipSoftness",
287                    )
288                });
289                let __inner: extern "C" fn(MaskableGraphic, crate::unity_engine::vector2::Vector2, ::unity::OptionalMethod) -> () =
290                    ::core::mem::transmute(__vi.method_ptr);
291                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
292                __inner(__receiver, ::core::convert::Into::into(clip_softness), __mi)
293            }
294        }
295    }
296    #[doc = "`OnEnable()` overload"]
297    fn on_enable(self) -> () {
298        unsafe {
299            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300            {
301                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
302                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
303                    panic!(
304                        "unity: virtual slot {}
305 out of range (vtable len {}
306) on the runtime class behind {}
307 (method `{}
308`)",
309                        5usize,
310                        __vt.len(),
311                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
312                        "OnEnable",
313                    )
314                });
315                let __inner: extern "C" fn(MaskableGraphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
316                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
317                __inner(__receiver, __mi)
318            }
319        }
320    }
321    #[doc = "`OnDisable()` overload"]
322    fn on_disable(self) -> () {
323        unsafe {
324            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
325            {
326                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
327                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
328                    panic!(
329                        "unity: virtual slot {}
330 out of range (vtable len {}
331) on the runtime class behind {}
332 (method `{}
333`)",
334                        7usize,
335                        __vt.len(),
336                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
337                        "OnDisable",
338                    )
339                });
340                let __inner: extern "C" fn(MaskableGraphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
341                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
342                __inner(__receiver, __mi)
343            }
344        }
345    }
346    #[doc = "`OnTransformParentChanged()` overload"]
347    fn on_transform_parent_changed(self) -> () {
348        unsafe {
349            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
350            {
351                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
352                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
353                    panic!(
354                        "unity: virtual slot {}
355 out of range (vtable len {}
356) on the runtime class behind {}
357 (method `{}
358`)",
359                        12usize,
360                        __vt.len(),
361                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
362                        "OnTransformParentChanged",
363                    )
364                });
365                let __inner: extern "C" fn(MaskableGraphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
366                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
367                __inner(__receiver, __mi)
368            }
369        }
370    }
371    #[doc = "`ParentMaskStateChanged()` overload"]
372    fn parent_mask_state_changed(self) -> () {
373        unsafe {
374            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
375            {
376                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
377                let __vi = *__vt.get(62usize).unwrap_or_else(|| {
378                    panic!(
379                        "unity: virtual slot {}
380 out of range (vtable len {}
381) on the runtime class behind {}
382 (method `{}
383`)",
384                        62usize,
385                        __vt.len(),
386                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
387                        "ParentMaskStateChanged",
388                    )
389                });
390                let __inner: extern "C" fn(MaskableGraphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
391                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
392                __inner(__receiver, __mi)
393            }
394        }
395    }
396    #[doc = "`OnCanvasHierarchyChanged()` overload"]
397    fn on_canvas_hierarchy_changed(self) -> () {
398        unsafe {
399            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
400            {
401                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
402                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
403                    panic!(
404                        "unity: virtual slot {}
405 out of range (vtable len {}
406) on the runtime class behind {}
407 (method `{}
408`)",
409                        15usize,
410                        __vt.len(),
411                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
412                        "OnCanvasHierarchyChanged",
413                    )
414                });
415                let __inner: extern "C" fn(MaskableGraphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
416                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
417                __inner(__receiver, __mi)
418            }
419        }
420    }
421    #[doc = "`get_rootCanvasRect()` overload"]
422    fn get_root_canvas_rect(self) -> crate::unity_engine::rect::Rect {
423        unsafe {
424            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
425            ::unity::il2cpp_call!((::unity::module_base()+0x371c460usize)as*mut u8,crate::unity_engine::rect::Rect;
426(MaskableGraphic)__receiver)
427        }
428    }
429    #[doc = "`UpdateClipParent()` overload"]
430    fn update_clip_parent(self) -> () {
431        unsafe {
432            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
433            ::unity::il2cpp_call!((::unity::module_base()+0x371ca50usize)as*mut u8,();
434(MaskableGraphic)__receiver)
435        }
436    }
437    #[doc = "`RecalculateClipping()` overload"]
438    fn recalculate_clipping(self) -> () {
439        unsafe {
440            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
441            {
442                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
443                let __vi = *__vt.get(63usize).unwrap_or_else(|| {
444                    panic!(
445                        "unity: virtual slot {}
446 out of range (vtable len {}
447) on the runtime class behind {}
448 (method `{}
449`)",
450                        63usize,
451                        __vt.len(),
452                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
453                        "RecalculateClipping",
454                    )
455                });
456                let __inner: extern "C" fn(MaskableGraphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
457                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
458                __inner(__receiver, __mi)
459            }
460        }
461    }
462    #[doc = "`RecalculateMasking()` overload"]
463    fn recalculate_masking(self) -> () {
464        unsafe {
465            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
466            {
467                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
468                let __vi = *__vt.get(64usize).unwrap_or_else(|| {
469                    panic!(
470                        "unity: virtual slot {}
471 out of range (vtable len {}
472) on the runtime class behind {}
473 (method `{}
474`)",
475                        64usize,
476                        __vt.len(),
477                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
478                        "RecalculateMasking",
479                    )
480                });
481                let __inner: extern "C" fn(MaskableGraphic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
482                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
483                __inner(__receiver, __mi)
484            }
485        }
486    }
487    #[doc = "`.ctor()` overload"]
488    fn ctor(self) -> () {
489        unsafe {
490            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
491            ::unity::il2cpp_call!((::unity::module_base()+0x371d100usize)as*mut u8,();
492(MaskableGraphic)__receiver)
493        }
494    }
495    #[doc = "`UnityEngine.UI.IClippable.get_gameObject()` overload"]
496    fn unity_engine_ui_i_clippable_get_game_object(self) -> crate::unity_engine::gameobject::GameObject {
497        unsafe {
498            let __receiver = <MaskableGraphic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
499            {
500                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
501                let __vi = *__vt.get(50usize).unwrap_or_else(|| {
502                    panic!(
503                        "unity: virtual slot {}
504 out of range (vtable len {}
505) on the runtime class behind {}
506 (method `{}
507`)",
508                        50usize,
509                        __vt.len(),
510                        <MaskableGraphic as ::unity::ClassIdentity>::NAME,
511                        "UnityEngine.UI.IClippable.get_gameObject",
512                    )
513                });
514                let __inner: extern "C" fn(MaskableGraphic, ::unity::OptionalMethod) -> crate::unity_engine::gameobject::GameObject =
515                    ::core::mem::transmute(__vi.method_ptr);
516                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
517                __inner(__receiver, __mi)
518            }
519        }
520    }
521}
522
523#[cfg(feature = "unity_engine-ui-maskablegraphic")]
524impl<__T: IMaskableGraphic> IMaskableGraphicMethods for __T {}
525
526#[cfg(feature = "unity_engine-ui-maskablegraphic")]
527impl MaskableGraphic {
528    pub fn get_on_cull_state_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
529        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
530    }
531
532    pub fn set_on_cull_state_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
533        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
534    }
535
536    pub fn get_maskable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
537        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
538    }
539
540    pub fn set_maskable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
541        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
542    }
543
544    pub fn get_is_masking_graphic_method_info() -> &'static ::unity::il2cpp::MethodInfo {
545        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
546    }
547
548    pub fn set_is_masking_graphic_method_info() -> &'static ::unity::il2cpp::MethodInfo {
549        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
550    }
551
552    pub fn get_modified_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
553        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
554    }
555
556    pub fn cull_method_info() -> &'static ::unity::il2cpp::MethodInfo {
557        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
558    }
559
560    pub fn update_cull_method_info() -> &'static ::unity::il2cpp::MethodInfo {
561        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
562    }
563
564    pub fn set_clip_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
565        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
566    }
567
568    pub fn set_clip_softness_method_info() -> &'static ::unity::il2cpp::MethodInfo {
569        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
570    }
571
572    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
573        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
574    }
575
576    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
577        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
578    }
579
580    pub fn on_transform_parent_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
581        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
582    }
583
584    pub fn parent_mask_state_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
585        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
586    }
587
588    pub fn on_canvas_hierarchy_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
589        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
590    }
591
592    pub fn get_root_canvas_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
593        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
594    }
595
596    pub fn update_clip_parent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
597        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
598    }
599
600    pub fn recalculate_clipping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
601        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
602    }
603
604    pub fn recalculate_masking_method_info() -> &'static ::unity::il2cpp::MethodInfo {
605        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
606    }
607
608    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
609        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
610    }
611
612    pub fn unity_engine_ui_i_clippable_get_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
614    }
615}
616
617#[cfg(feature = "unity_engine-ui-maskablegraphic")]
618impl MaskableGraphic {
619    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `GetModifiedMaterial`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
620    pub unsafe fn get_modified_material(
621        this: impl ::core::convert::Into<::unity::IlInstance>,
622        base_material: crate::unity_engine::material::Material,
623    ) -> crate::unity_engine::material::Material {
624        let __mi = Self::get_modified_material_method_info();
625        let __inner: extern "C" fn(
626            ::unity::IlInstance,
627            crate::unity_engine::material::Material,
628            ::unity::OptionalMethod,
629        ) -> crate::unity_engine::material::Material = ::core::mem::transmute(__mi.method_ptr);
630        __inner(this.into(), base_material, ::core::option::Option::None)
631    }
632
633    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `Cull`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
634    pub unsafe fn cull(this: impl ::core::convert::Into<::unity::IlInstance>, clip_rect: crate::unity_engine::rect::Rect, valid_rect: bool) -> () {
635        let __mi = Self::cull_method_info();
636        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
637            ::core::mem::transmute(__mi.method_ptr);
638        __inner(this.into(), clip_rect, valid_rect, ::core::option::Option::None)
639    }
640
641    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `SetClipRect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
642    pub unsafe fn set_clip_rect(
643        this: impl ::core::convert::Into<::unity::IlInstance>,
644        clip_rect: crate::unity_engine::rect::Rect,
645        valid_rect: bool,
646    ) -> () {
647        let __mi = Self::set_clip_rect_method_info();
648        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
649            ::core::mem::transmute(__mi.method_ptr);
650        __inner(this.into(), clip_rect, valid_rect, ::core::option::Option::None)
651    }
652
653    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `SetClipSoftness`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
654    pub unsafe fn set_clip_softness(
655        this: impl ::core::convert::Into<::unity::IlInstance>,
656        clip_softness: crate::unity_engine::vector2::Vector2,
657    ) -> () {
658        let __mi = Self::set_clip_softness_method_info();
659        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::vector2::Vector2, ::unity::OptionalMethod) -> () =
660            ::core::mem::transmute(__mi.method_ptr);
661        __inner(this.into(), clip_softness, ::core::option::Option::None)
662    }
663
664    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
665    pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
666        let __mi = Self::on_enable_method_info();
667        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
668        __inner(this.into(), ::core::option::Option::None)
669    }
670
671    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
672    pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
673        let __mi = Self::on_disable_method_info();
674        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
675        __inner(this.into(), ::core::option::Option::None)
676    }
677
678    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `OnTransformParentChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
679    pub unsafe fn on_transform_parent_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
680        let __mi = Self::on_transform_parent_changed_method_info();
681        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
682        __inner(this.into(), ::core::option::Option::None)
683    }
684
685    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `ParentMaskStateChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
686    pub unsafe fn parent_mask_state_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
687        let __mi = Self::parent_mask_state_changed_method_info();
688        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
689        __inner(this.into(), ::core::option::Option::None)
690    }
691
692    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `OnCanvasHierarchyChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
693    pub unsafe fn on_canvas_hierarchy_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
694        let __mi = Self::on_canvas_hierarchy_changed_method_info();
695        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
696        __inner(this.into(), ::core::option::Option::None)
697    }
698
699    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `RecalculateClipping`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
700    pub unsafe fn recalculate_clipping(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
701        let __mi = Self::recalculate_clipping_method_info();
702        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
703        __inner(this.into(), ::core::option::Option::None)
704    }
705
706    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `RecalculateMasking`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
707    pub unsafe fn recalculate_masking(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
708        let __mi = Self::recalculate_masking_method_info();
709        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
710        __inner(this.into(), ::core::option::Option::None)
711    }
712
713    #[doc = "Direct (non-virtual) call to `MaskableGraphic`'s own `UnityEngine.UI.IClippable.get_gameObject`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
714    pub unsafe fn unity_engine_ui_i_clippable_get_game_object(
715        this: impl ::core::convert::Into<::unity::IlInstance>,
716    ) -> crate::unity_engine::gameobject::GameObject {
717        let __mi = Self::unity_engine_ui_i_clippable_get_game_object_method_info();
718        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::gameobject::GameObject =
719            ::core::mem::transmute(__mi.method_ptr);
720        __inner(this.into(), ::core::option::Option::None)
721    }
722}
723
724#[cfg(feature = "unity_engine-ui-maskablegraphic")]
725impl MaskableGraphic {
726    #[doc = "`.ctor()` — no args"]
727    pub fn new() -> Self {
728        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
729            panic!(
730                "{}
731::{}
732 failed to instantiate",
733                ::core::stringify!(MaskableGraphic),
734                ::core::stringify!(new),
735            )
736        });
737        <Self as IMaskableGraphicMethods>::ctor(this);
738        this
739    }
740}
741
742#[cfg(feature = "unity_engine-ui-maskablegraphic")]
743#[doc(hidden)]
744pub mod prelude {
745    pub use super::{
746        IMaskableGraphic, IMaskableGraphicMethods, IMaskableGraphic_CullStateChangedEvent, IMaskableGraphic_CullStateChangedEventMethods,
747        MaskableGraphic, MaskableGraphic_CullStateChangedEvent,
748    };
749    #[cfg(feature = "system-object")]
750    pub use crate::system::object::IObjectMethods;
751    #[cfg(feature = "unity_engine-behaviour")]
752    pub use crate::unity_engine::behaviour::IBehaviourMethods;
753    #[cfg(feature = "unity_engine-component")]
754    pub use crate::unity_engine::component::IComponentMethods;
755    #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
756    pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
757    #[cfg(feature = "unity_engine-events-unityevent_1")]
758    pub use crate::unity_engine::events::unityevent_1::IUnityEvent_1Methods;
759    #[cfg(feature = "unity_engine-events-unityeventbase")]
760    pub use crate::unity_engine::events::unityeventbase::IUnityEventBaseMethods;
761    #[cfg(feature = "unity_engine-monobehaviour")]
762    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
763    #[cfg(feature = "unity_engine-object_2")]
764    pub use crate::unity_engine::object_2::IObject_2Methods;
765    #[cfg(feature = "unity_engine-ui-graphic")]
766    pub use crate::unity_engine::ui::graphic::IGraphicMethods;
767    pub use crate::{
768        system::object::IObject,
769        unity_engine::{
770            behaviour::IBehaviour,
771            component::IComponent,
772            event_systems::uibehaviour::IUIBehaviour,
773            events::{unityevent_1::IUnityEvent_1, unityeventbase::IUnityEventBase},
774            monobehaviour::IMonoBehaviour,
775            object_2::IObject_2,
776            ui::graphic::IGraphic,
777        },
778    };
779}