engage/generated/unity_engine/ui/
igraphicenableddisabled.rs1#[cfg(feature = "unity_engine-ui-igraphicenableddisabled-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/igraphicenableddisabled/IGraphicEnabledDisabled.md"))]
10 #[::unity::class(namespace = "UnityEngine.UI", name = "IGraphicEnabledDisabled")]
11 pub struct IGraphicEnabledDisabled {}
12}
13
14#[cfg(feature = "unity_engine-ui-igraphicenableddisabled-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-ui-igraphicenableddisabled")]
18pub trait IIGraphicEnabledDisabledMethods: IIGraphicEnabledDisabled {
19 #[doc = "`OnSiblingGraphicEnabledDisabled()` overload"]
20 fn on_sibling_graphic_enabled_disabled(self) -> () {
21 unsafe {
22 let __receiver =
23 <IGraphicEnabledDisabled as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
24 {
25 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
26 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
27 panic!(
28 "unity: virtual slot {}
29 out of range (vtable len {}
30) on the runtime class behind {}
31 (method `{}
32`)",
33 0usize,
34 __vt.len(),
35 <IGraphicEnabledDisabled as ::unity::ClassIdentity>::NAME,
36 "OnSiblingGraphicEnabledDisabled",
37 )
38 });
39 let __inner: extern "C" fn(IGraphicEnabledDisabled, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
40 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
41 __inner(__receiver, __mi)
42 }
43 }
44 }
45}
46
47#[cfg(feature = "unity_engine-ui-igraphicenableddisabled")]
48impl<__T: IIGraphicEnabledDisabled> IIGraphicEnabledDisabledMethods for __T {}
49
50#[cfg(feature = "unity_engine-ui-igraphicenableddisabled")]
51impl IGraphicEnabledDisabled {
52 pub fn on_sibling_graphic_enabled_disabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
54 }
55}
56
57#[cfg(feature = "unity_engine-ui-igraphicenableddisabled")]
58impl IGraphicEnabledDisabled {
59 #[doc = "Direct (non-virtual) call to `IGraphicEnabledDisabled`'s own `OnSiblingGraphicEnabledDisabled`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
60 pub unsafe fn on_sibling_graphic_enabled_disabled(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
61 let __mi = Self::on_sibling_graphic_enabled_disabled_method_info();
62 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
63 __inner(this.into(), ::core::option::Option::None)
64 }
65}
66
67#[cfg(feature = "unity_engine-ui-igraphicenableddisabled")]
68#[doc(hidden)]
69pub mod prelude {
70 pub use super::{IGraphicEnabledDisabled, IIGraphicEnabledDisabled, IIGraphicEnabledDisabledMethods};
71}