engage/generated/app/
groupenditem.rs1#[cfg(feature = "app-groupenditem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::menuitem::{IMenuItem, MenuItem},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/groupenditem/GroupEndItem.md"))]
14 #[::unity::class(namespace = "App", name = "GroupEndItem")]
15 #[parent(crate::app::menuitem::MenuItem)]
16 pub struct GroupEndItem {}
17}
18
19#[cfg(feature = "app-groupenditem-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-groupenditem")]
23pub trait IGroupEndItemMethods: IGroupEndItem {
24 #[doc = "`GetKind()` overload"]
25 fn get_kind(self) -> crate::app::menuitem::MenuItem_Kind {
26 unsafe {
27 let __receiver = <GroupEndItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 {
29 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
30 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
31 panic!(
32 "unity: virtual slot {}
33 out of range (vtable len {}
34) on the runtime class behind {}
35 (method `{}
36`)",
37 11usize,
38 __vt.len(),
39 <GroupEndItem as ::unity::ClassIdentity>::NAME,
40 "GetKind",
41 )
42 });
43 let __inner: extern "C" fn(GroupEndItem, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Kind =
44 ::core::mem::transmute(__vi.method_ptr);
45 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
46 __inner(__receiver, __mi)
47 }
48 }
49 }
50 #[doc = "`IsVisible()` overload"]
51 fn is_visible(self) -> bool {
52 unsafe {
53 let __receiver = <GroupEndItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 {
55 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
56 let __vi = *__vt.get(23usize).unwrap_or_else(|| {
57 panic!(
58 "unity: virtual slot {}
59 out of range (vtable len {}
60) on the runtime class behind {}
61 (method `{}
62`)",
63 23usize,
64 __vt.len(),
65 <GroupEndItem as ::unity::ClassIdentity>::NAME,
66 "IsVisible",
67 )
68 });
69 let __inner: extern "C" fn(GroupEndItem, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
70 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
71 __inner(__receiver, __mi)
72 }
73 }
74 }
75 #[doc = "`.ctor()` overload"]
76 fn ctor(self) -> () {
77 unsafe {
78 let __receiver = <GroupEndItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x2978210usize)as*mut u8,();
80(GroupEndItem)__receiver)
81 }
82 }
83}
84
85#[cfg(feature = "app-groupenditem")]
86impl<__T: IGroupEndItem> IGroupEndItemMethods for __T {}
87
88#[cfg(feature = "app-groupenditem")]
89impl GroupEndItem {
90 pub fn get_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
92 }
93
94 pub fn is_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
96 }
97
98 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
100 }
101}
102
103#[cfg(feature = "app-groupenditem")]
104impl GroupEndItem {
105 #[doc = "Direct (non-virtual) call to `GroupEndItem`'s own `GetKind`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
106 pub unsafe fn get_kind(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::menuitem::MenuItem_Kind {
107 let __mi = Self::get_kind_method_info();
108 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Kind =
109 ::core::mem::transmute(__mi.method_ptr);
110 __inner(this.into(), ::core::option::Option::None)
111 }
112
113 #[doc = "Direct (non-virtual) call to `GroupEndItem`'s own `IsVisible`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
114 pub unsafe fn is_visible(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
115 let __mi = Self::is_visible_method_info();
116 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
117 __inner(this.into(), ::core::option::Option::None)
118 }
119}
120
121#[cfg(feature = "app-groupenditem")]
122impl GroupEndItem {
123 #[doc = "`.ctor()` — no args"]
124 pub fn new() -> Self {
125 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
126 panic!(
127 "{}
128::{}
129 failed to instantiate",
130 ::core::stringify!(GroupEndItem),
131 ::core::stringify!(new),
132 )
133 });
134 <Self as IGroupEndItemMethods>::ctor(this);
135 this
136 }
137}
138
139#[cfg(feature = "app-groupenditem")]
140#[doc(hidden)]
141pub mod prelude {
142 pub use super::{GroupEndItem, IGroupEndItem, IGroupEndItemMethods};
143 #[cfg(feature = "app-menuitem")]
144 pub use crate::app::menuitem::IMenuItemMethods;
145 #[cfg(feature = "system-object")]
146 pub use crate::system::object::IObjectMethods;
147 pub use crate::{app::menuitem::IMenuItem, system::object::IObject};
148}