engage/generated/unity_engine/ui/
imask_interface.rs1#[cfg(feature = "unity_engine-ui-imask_interface-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/imask_interface/IMask_Interface.md"))]
10 #[::unity::class(namespace = "UnityEngine.UI", name = "IMask")]
11 pub struct IMask_Interface {}
12}
13
14#[cfg(feature = "unity_engine-ui-imask_interface-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-ui-imask_interface")]
18pub trait IIMask_InterfaceMethods: IIMask_Interface {
19 #[doc = "`Enabled()` overload"]
20 fn enabled(self) -> bool {
21 unsafe {
22 let __receiver = <IMask_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 {
24 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
26 panic!(
27 "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32 0usize,
33 __vt.len(),
34 <IMask_Interface as ::unity::ClassIdentity>::NAME,
35 "Enabled",
36 )
37 });
38 let __inner: extern "C" fn(IMask_Interface, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
39 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
40 __inner(__receiver, __mi)
41 }
42 }
43 }
44 #[doc = "`get_rectTransform()` overload"]
45 fn get_rect_transform(self) -> crate::unity_engine::recttransform::RectTransform {
46 unsafe {
47 let __receiver = <IMask_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 {
49 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
50 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
51 panic!(
52 "unity: virtual slot {}
53 out of range (vtable len {}
54) on the runtime class behind {}
55 (method `{}
56`)",
57 1usize,
58 __vt.len(),
59 <IMask_Interface as ::unity::ClassIdentity>::NAME,
60 "get_rectTransform",
61 )
62 });
63 let __inner: extern "C" fn(IMask_Interface, ::unity::OptionalMethod) -> crate::unity_engine::recttransform::RectTransform =
64 ::core::mem::transmute(__vi.method_ptr);
65 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
66 __inner(__receiver, __mi)
67 }
68 }
69 }
70}
71
72#[cfg(feature = "unity_engine-ui-imask_interface")]
73impl<__T: IIMask_Interface> IIMask_InterfaceMethods for __T {}
74
75#[cfg(feature = "unity_engine-ui-imask_interface")]
76impl IMask_Interface {
77 pub fn enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
79 }
80
81 pub fn get_rect_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
83 }
84}
85
86#[cfg(feature = "unity_engine-ui-imask_interface")]
87impl IMask_Interface {
88 #[doc = "Direct (non-virtual) call to `IMask_Interface`'s own `Enabled`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
89 pub unsafe fn enabled(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
90 let __mi = Self::enabled_method_info();
91 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
92 __inner(this.into(), ::core::option::Option::None)
93 }
94
95 #[doc = "Direct (non-virtual) call to `IMask_Interface`'s own `get_rectTransform`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
96 pub unsafe fn get_rect_transform(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::recttransform::RectTransform {
97 let __mi = Self::get_rect_transform_method_info();
98 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::recttransform::RectTransform =
99 ::core::mem::transmute(__mi.method_ptr);
100 __inner(this.into(), ::core::option::Option::None)
101 }
102}
103
104#[cfg(feature = "unity_engine-ui-imask_interface")]
105#[doc(hidden)]
106pub mod prelude {
107 pub use super::{IIMask_Interface, IIMask_InterfaceMethods, IMask_Interface};
108}