engage/generated/unity_engine/ui/
rectmask2d.rs1#[cfg(feature = "unity_engine-ui-rectmask2d-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/rectmask2d/RectMask2D.md"))]
20 #[::unity::class(namespace = "UnityEngine.UI", name = "RectMask2D")]
21 #[parent(crate::unity_engine::event_systems::uibehaviour::UIBehaviour)]
22 pub struct RectMask2D {
23 #[offset(24)]
24 #[rename(name = "m_VertexClipper")]
25 pub m_vertex_clipper: crate::unity_engine::ui::rectangularvertexclipper::RectangularVertexClipper,
26 #[offset(32)]
27 #[rename(name = "m_RectTransform")]
28 pub m_rect_transform: crate::unity_engine::recttransform::RectTransform,
29 #[offset(40)]
30 #[rename(name = "m_MaskableTargets")]
31 pub m_maskable_targets: crate::system::collections::generic::hashset_1::HashSet_1<crate::unity_engine::ui::maskablegraphic::MaskableGraphic>,
32 #[offset(48)]
33 #[rename(name = "m_ClipTargets")]
34 pub m_clip_targets: crate::system::collections::generic::hashset_1::HashSet_1<crate::unity_engine::ui::iclippable::IClippable>,
35 #[offset(56)]
36 #[rename(name = "m_ShouldRecalculateClipRects")]
37 pub m_should_recalculate_clip_rects: bool,
38 #[offset(64)]
39 #[rename(name = "m_Clippers")]
40 pub m_clippers: crate::system::collections::generic::list_1::List_1<crate::unity_engine::ui::rectmask2d::RectMask2D>,
41 #[offset(72)]
42 #[rename(name = "m_LastClipRectCanvasSpace")]
43 pub m_last_clip_rect_canvas_space: crate::unity_engine::rect::Rect,
44 #[offset(88)]
45 #[rename(name = "m_ForceClip")]
46 pub m_force_clip: bool,
47 #[offset(92)]
48 #[rename(name = "m_Padding")]
49 pub m_padding: crate::unity_engine::vector4::Vector4,
50 #[offset(108)]
51 #[rename(name = "m_Softness")]
52 pub m_softness: crate::unity_engine::vector2int::Vector2Int,
53 #[offset(120)]
54 #[rename(name = "m_Canvas")]
55 pub m_canvas: crate::unity_engine::canvas::Canvas,
56 #[offset(128)]
57 #[rename(name = "m_Corners")]
58 pub m_corners: ::unity::Array<crate::unity_engine::vector3::Vector3>,
59 }
60}
61
62#[cfg(feature = "unity_engine-ui-rectmask2d-types")]
63pub use __types::*;
64
65#[cfg(feature = "unity_engine-ui-rectmask2d")]
66pub trait IRectMask2DMethods: IRectMask2D {
67 #[doc = "`get_padding()` overload"]
68 fn get_padding(self) -> crate::unity_engine::vector4::Vector4 {
69 unsafe {
70 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x3722710usize)as*mut u8,crate::unity_engine::vector4::Vector4;
72(RectMask2D)__receiver)
73 }
74 }
75 #[doc = "`set_padding(crate::unity_engine::vector4::Vector4)` overload"]
76 fn set_padding(self, value: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>) -> () {
77 unsafe {
78 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x3722720usize)as*mut u8,();
80(RectMask2D)__receiver,(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(value))
81 }
82 }
83 #[doc = "`get_softness()` overload"]
84 fn get_softness(self) -> crate::unity_engine::vector2int::Vector2Int {
85 unsafe {
86 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 ::unity::il2cpp_call!((::unity::module_base()+0x3722740usize)as*mut u8,crate::unity_engine::vector2int::Vector2Int;
88(RectMask2D)__receiver)
89 }
90 }
91 #[doc = "`set_softness(crate::unity_engine::vector2int::Vector2Int)` overload"]
92 fn set_softness(self, value: impl ::core::convert::Into<crate::unity_engine::vector2int::Vector2Int>) -> () {
93 unsafe {
94 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x3722750usize)as*mut u8,();
96(RectMask2D)__receiver,(crate::unity_engine::vector2int::Vector2Int)::core::convert::Into::into(value))
97 }
98 }
99 #[doc = "`get_Canvas()` overload"]
100 fn get_canvas(self) -> crate::unity_engine::canvas::Canvas {
101 unsafe {
102 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x37227a0usize)as*mut u8,crate::unity_engine::canvas::Canvas;
104(RectMask2D)__receiver)
105 }
106 }
107 #[doc = "`get_canvasRect()` overload"]
108 fn get_canvas_rect(self) -> crate::unity_engine::rect::Rect {
109 unsafe {
110 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x3722940usize)as*mut u8,crate::unity_engine::rect::Rect;
112(RectMask2D)__receiver)
113 }
114 }
115 #[doc = "`get_rectTransform()` overload"]
116 fn get_rect_transform(self) -> crate::unity_engine::recttransform::RectTransform {
117 unsafe {
118 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119 ::unity::il2cpp_call!((::unity::module_base()+0x37229d0usize)as*mut u8,crate::unity_engine::recttransform::RectTransform;
120(RectMask2D)__receiver)
121 }
122 }
123 #[doc = "`.ctor()` overload"]
124 fn ctor(self) -> () {
125 unsafe {
126 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x3722c50usize)as*mut u8,();
128(RectMask2D)__receiver)
129 }
130 }
131 #[doc = "`OnEnable()` overload"]
132 fn on_enable(self) -> () {
133 unsafe {
134 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 {
136 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
137 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
138 panic!(
139 "unity: virtual slot {}
140 out of range (vtable len {}
141) on the runtime class behind {}
142 (method `{}
143`)",
144 5usize,
145 __vt.len(),
146 <RectMask2D as ::unity::ClassIdentity>::NAME,
147 "OnEnable",
148 )
149 });
150 let __inner: extern "C" fn(RectMask2D, ::unity::OptionalMethod) -> () = ::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 = "`OnDisable()` overload"]
157 fn on_disable(self) -> () {
158 unsafe {
159 let __receiver = <RectMask2D 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(7usize).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 7usize,
170 __vt.len(),
171 <RectMask2D as ::unity::ClassIdentity>::NAME,
172 "OnDisable",
173 )
174 });
175 let __inner: extern "C" fn(RectMask2D, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
176 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
177 __inner(__receiver, __mi)
178 }
179 }
180 }
181 #[doc = "`IsRaycastLocationValid(crate::unity_engine::vector2::Vector2, crate::unity_engine::camera::Camera)` overload"]
182 fn is_raycast_location_valid(
183 self,
184 sp: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
185 event_camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
186 ) -> bool {
187 unsafe {
188 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 {
190 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
191 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
192 panic!(
193 "unity: virtual slot {}
194 out of range (vtable len {}
195) on the runtime class behind {}
196 (method `{}
197`)",
198 19usize,
199 __vt.len(),
200 <RectMask2D as ::unity::ClassIdentity>::NAME,
201 "IsRaycastLocationValid",
202 )
203 });
204 let __inner: extern "C" fn(
205 RectMask2D,
206 crate::unity_engine::vector2::Vector2,
207 crate::unity_engine::camera::Camera,
208 ::unity::OptionalMethod,
209 ) -> bool = ::core::mem::transmute(__vi.method_ptr);
210 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
211 __inner(
212 __receiver,
213 ::core::convert::Into::into(sp),
214 ::core::convert::Into::into(event_camera),
215 __mi,
216 )
217 }
218 }
219 }
220 #[doc = "`get_rootCanvasRect()` overload"]
221 fn get_root_canvas_rect(self) -> crate::unity_engine::rect::Rect {
222 unsafe {
223 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x3723120usize)as*mut u8,crate::unity_engine::rect::Rect;
225(RectMask2D)__receiver)
226 }
227 }
228 #[doc = "`PerformClipping()` overload"]
229 fn perform_clipping(self) -> () {
230 unsafe {
231 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232 {
233 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
234 let __vi = *__vt.get(20usize).unwrap_or_else(|| {
235 panic!(
236 "unity: virtual slot {}
237 out of range (vtable len {}
238) on the runtime class behind {}
239 (method `{}
240`)",
241 20usize,
242 __vt.len(),
243 <RectMask2D as ::unity::ClassIdentity>::NAME,
244 "PerformClipping",
245 )
246 });
247 let __inner: extern "C" fn(RectMask2D, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
248 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
249 __inner(__receiver, __mi)
250 }
251 }
252 }
253 #[doc = "`UpdateClipSoftness()` overload"]
254 fn update_clip_softness(self) -> () {
255 unsafe {
256 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257 {
258 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
259 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
260 panic!(
261 "unity: virtual slot {}
262 out of range (vtable len {}
263) on the runtime class behind {}
264 (method `{}
265`)",
266 21usize,
267 __vt.len(),
268 <RectMask2D as ::unity::ClassIdentity>::NAME,
269 "UpdateClipSoftness",
270 )
271 });
272 let __inner: extern "C" fn(RectMask2D, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
273 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
274 __inner(__receiver, __mi)
275 }
276 }
277 }
278 #[doc = "`AddClippable(crate::unity_engine::ui::iclippable::IClippable)` overload"]
279 fn add_clippable(self, clippable: impl ::core::convert::Into<crate::unity_engine::ui::iclippable::IClippable>) -> () {
280 unsafe {
281 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282 ::unity::il2cpp_call!((::unity::module_base()+0x371cf20usize)as*mut u8,();
283(RectMask2D)__receiver,(crate::unity_engine::ui::iclippable::IClippable)::core::convert::Into::into(clippable))
284 }
285 }
286 #[doc = "`RemoveClippable(crate::unity_engine::ui::iclippable::IClippable)` overload"]
287 fn remove_clippable(self, clippable: impl ::core::convert::Into<crate::unity_engine::ui::iclippable::IClippable>) -> () {
288 unsafe {
289 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290 ::unity::il2cpp_call!((::unity::module_base()+0x371cd70usize)as*mut u8,();
291(RectMask2D)__receiver,(crate::unity_engine::ui::iclippable::IClippable)::core::convert::Into::into(clippable))
292 }
293 }
294 #[doc = "`OnTransformParentChanged()` overload"]
295 fn on_transform_parent_changed(self) -> () {
296 unsafe {
297 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298 {
299 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
300 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
301 panic!(
302 "unity: virtual slot {}
303 out of range (vtable len {}
304) on the runtime class behind {}
305 (method `{}
306`)",
307 12usize,
308 __vt.len(),
309 <RectMask2D as ::unity::ClassIdentity>::NAME,
310 "OnTransformParentChanged",
311 )
312 });
313 let __inner: extern "C" fn(RectMask2D, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
314 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
315 __inner(__receiver, __mi)
316 }
317 }
318 }
319 #[doc = "`OnCanvasHierarchyChanged()` overload"]
320 fn on_canvas_hierarchy_changed(self) -> () {
321 unsafe {
322 let __receiver = <RectMask2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323 {
324 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
325 let __vi = *__vt.get(15usize).unwrap_or_else(|| {
326 panic!(
327 "unity: virtual slot {}
328 out of range (vtable len {}
329) on the runtime class behind {}
330 (method `{}
331`)",
332 15usize,
333 __vt.len(),
334 <RectMask2D as ::unity::ClassIdentity>::NAME,
335 "OnCanvasHierarchyChanged",
336 )
337 });
338 let __inner: extern "C" fn(RectMask2D, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
339 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
340 __inner(__receiver, __mi)
341 }
342 }
343 }
344}
345
346#[cfg(feature = "unity_engine-ui-rectmask2d")]
347impl<__T: IRectMask2D> IRectMask2DMethods for __T {}
348
349#[cfg(feature = "unity_engine-ui-rectmask2d")]
350impl RectMask2D {
351 pub fn get_padding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
353 }
354
355 pub fn set_padding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
357 }
358
359 pub fn get_softness_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
361 }
362
363 pub fn set_softness_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
365 }
366
367 pub fn get_canvas_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
369 }
370
371 pub fn get_canvas_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
373 }
374
375 pub fn get_rect_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
377 }
378
379 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
381 }
382
383 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
385 }
386
387 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
389 }
390
391 pub fn is_raycast_location_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
393 }
394
395 pub fn get_root_canvas_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
397 }
398
399 pub fn perform_clipping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
401 }
402
403 pub fn update_clip_softness_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
405 }
406
407 pub fn add_clippable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
409 }
410
411 pub fn remove_clippable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
413 }
414
415 pub fn on_transform_parent_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
417 }
418
419 pub fn on_canvas_hierarchy_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
421 }
422}
423
424#[cfg(feature = "unity_engine-ui-rectmask2d")]
425impl RectMask2D {
426 #[doc = "Direct (non-virtual) call to `RectMask2D`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
427 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
428 let __mi = Self::on_enable_method_info();
429 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
430 __inner(this.into(), ::core::option::Option::None)
431 }
432
433 #[doc = "Direct (non-virtual) call to `RectMask2D`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
434 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
435 let __mi = Self::on_disable_method_info();
436 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
437 __inner(this.into(), ::core::option::Option::None)
438 }
439
440 #[doc = "Direct (non-virtual) call to `RectMask2D`'s own `IsRaycastLocationValid`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
441 pub unsafe fn is_raycast_location_valid(
442 this: impl ::core::convert::Into<::unity::IlInstance>,
443 sp: crate::unity_engine::vector2::Vector2,
444 event_camera: crate::unity_engine::camera::Camera,
445 ) -> bool {
446 let __mi = Self::is_raycast_location_valid_method_info();
447 let __inner: extern "C" fn(
448 ::unity::IlInstance,
449 crate::unity_engine::vector2::Vector2,
450 crate::unity_engine::camera::Camera,
451 ::unity::OptionalMethod,
452 ) -> bool = ::core::mem::transmute(__mi.method_ptr);
453 __inner(this.into(), sp, event_camera, ::core::option::Option::None)
454 }
455
456 #[doc = "Direct (non-virtual) call to `RectMask2D`'s own `PerformClipping`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
457 pub unsafe fn perform_clipping(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
458 let __mi = Self::perform_clipping_method_info();
459 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
460 __inner(this.into(), ::core::option::Option::None)
461 }
462
463 #[doc = "Direct (non-virtual) call to `RectMask2D`'s own `UpdateClipSoftness`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
464 pub unsafe fn update_clip_softness(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
465 let __mi = Self::update_clip_softness_method_info();
466 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
467 __inner(this.into(), ::core::option::Option::None)
468 }
469
470 #[doc = "Direct (non-virtual) call to `RectMask2D`'s own `OnTransformParentChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
471 pub unsafe fn on_transform_parent_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
472 let __mi = Self::on_transform_parent_changed_method_info();
473 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
474 __inner(this.into(), ::core::option::Option::None)
475 }
476
477 #[doc = "Direct (non-virtual) call to `RectMask2D`'s own `OnCanvasHierarchyChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
478 pub unsafe fn on_canvas_hierarchy_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
479 let __mi = Self::on_canvas_hierarchy_changed_method_info();
480 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
481 __inner(this.into(), ::core::option::Option::None)
482 }
483}
484
485#[cfg(feature = "unity_engine-ui-rectmask2d")]
486impl RectMask2D {
487 #[doc = "`.ctor()` — no args"]
488 pub fn new() -> Self {
489 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
490 panic!(
491 "{}
492::{}
493 failed to instantiate",
494 ::core::stringify!(RectMask2D),
495 ::core::stringify!(new),
496 )
497 });
498 <Self as IRectMask2DMethods>::ctor(this);
499 this
500 }
501}
502
503#[cfg(feature = "unity_engine-ui-rectmask2d")]
504#[doc(hidden)]
505pub mod prelude {
506 pub use super::{IRectMask2D, IRectMask2DMethods, RectMask2D};
507 #[cfg(feature = "system-object")]
508 pub use crate::system::object::IObjectMethods;
509 #[cfg(feature = "unity_engine-behaviour")]
510 pub use crate::unity_engine::behaviour::IBehaviourMethods;
511 #[cfg(feature = "unity_engine-component")]
512 pub use crate::unity_engine::component::IComponentMethods;
513 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
514 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
515 #[cfg(feature = "unity_engine-monobehaviour")]
516 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
517 #[cfg(feature = "unity_engine-object_2")]
518 pub use crate::unity_engine::object_2::IObject_2Methods;
519 pub use crate::{
520 system::object::IObject,
521 unity_engine::{
522 behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
523 object_2::IObject_2,
524 },
525 };
526}