engage/generated/app/
profilecardalbumlistmenuitemcontent.rs1#[cfg(feature = "app-profilecardalbumlistmenuitemcontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitemcontent::{BasicMenuItemContent, IBasicMenuItemContent},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/profilecardalbumlistmenuitemcontent/ProfileCardAlbumListMenuItemContent.md"))]
20 #[::unity::class(namespace = "App", name = "ProfileCardAlbumListMenuItemContent")]
21 #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22 pub struct ProfileCardAlbumListMenuItemContent {
23 #[offset(72)]
24 #[rename(name = "m_Title")]
25 pub m_title: crate::unity_engine::gameobject::GameObject,
26 #[offset(80)]
27 #[rename(name = "m_BackImage")]
28 pub m_back_image: crate::unity_engine::ui::image::Image,
29 #[offset(88)]
30 #[rename(name = "m_IsInitialized")]
31 pub m_is_initialized: bool,
32 }
33}
34
35#[cfg(feature = "app-profilecardalbumlistmenuitemcontent-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-profilecardalbumlistmenuitemcontent")]
39pub trait IProfileCardAlbumListMenuItemContentMethods: IProfileCardAlbumListMenuItemContent {
40 #[doc = "`Start()` overload"]
41 fn start(self) -> () {
42 unsafe {
43 let __receiver = <ProfileCardAlbumListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
44 <Self as ::unity::SystemObject>::as_instance(self),
45 );
46 {
47 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
48 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
49 panic!(
50 "unity: virtual slot {}
51 out of range (vtable len {}
52) on the runtime class behind {}
53 (method `{}
54`)",
55 14usize,
56 __vt.len(),
57 <ProfileCardAlbumListMenuItemContent as ::unity::ClassIdentity>::NAME,
58 "Start",
59 )
60 });
61 let __inner: extern "C" fn(ProfileCardAlbumListMenuItemContent, ::unity::OptionalMethod) -> () =
62 ::core::mem::transmute(__vi.method_ptr);
63 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
64 __inner(__receiver, __mi)
65 }
66 }
67 }
68 #[doc = "`SetGameObjects()` overload"]
69 fn set_game_objects(self) -> () {
70 unsafe {
71 let __receiver = <ProfileCardAlbumListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
72 <Self as ::unity::SystemObject>::as_instance(self),
73 );
74 ::unity::il2cpp_call!((::unity::module_base()+0x2308870usize)as*mut u8,();
75(ProfileCardAlbumListMenuItemContent)__receiver)
76 }
77 }
78 #[doc = "`Build(crate::app::basicmenuitem::BasicMenuItem)` overload"]
79 fn build(self, menu_item: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>) -> () {
80 unsafe {
81 let __receiver = <ProfileCardAlbumListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
82 <Self as ::unity::SystemObject>::as_instance(self),
83 );
84 {
85 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
86 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
87 panic!(
88 "unity: virtual slot {}
89 out of range (vtable len {}
90) on the runtime class behind {}
91 (method `{}
92`)",
93 8usize,
94 __vt.len(),
95 <ProfileCardAlbumListMenuItemContent as ::unity::ClassIdentity>::NAME,
96 "Build",
97 )
98 });
99 let __inner: extern "C" fn(
100 ProfileCardAlbumListMenuItemContent,
101 crate::app::basicmenuitem::BasicMenuItem,
102 ::unity::OptionalMethod,
103 ) -> () = ::core::mem::transmute(__vi.method_ptr);
104 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105 __inner(__receiver, ::core::convert::Into::into(menu_item), __mi)
106 }
107 }
108 }
109 #[doc = "`Disable()` overload"]
110 fn disable(self) -> () {
111 unsafe {
112 let __receiver = <ProfileCardAlbumListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
113 <Self as ::unity::SystemObject>::as_instance(self),
114 );
115 {
116 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
117 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
118 panic!(
119 "unity: virtual slot {}
120 out of range (vtable len {}
121) on the runtime class behind {}
122 (method `{}
123`)",
124 13usize,
125 __vt.len(),
126 <ProfileCardAlbumListMenuItemContent as ::unity::ClassIdentity>::NAME,
127 "Disable",
128 )
129 });
130 let __inner: extern "C" fn(ProfileCardAlbumListMenuItemContent, ::unity::OptionalMethod) -> () =
131 ::core::mem::transmute(__vi.method_ptr);
132 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
133 __inner(__receiver, __mi)
134 }
135 }
136 }
137 #[doc = "`SetActiveChildren(bool)` overload"]
138 fn set_active_children(self, is_active: impl ::core::convert::Into<bool>) -> () {
139 unsafe {
140 let __receiver = <ProfileCardAlbumListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
141 <Self as ::unity::SystemObject>::as_instance(self),
142 );
143 ::unity::il2cpp_call!((::unity::module_base()+0x2308ad0usize)as*mut u8,();
144(ProfileCardAlbumListMenuItemContent)__receiver,(bool)::core::convert::Into::into(is_active))
145 }
146 }
147 #[doc = "`.ctor()` overload"]
148 fn ctor(self) -> () {
149 unsafe {
150 let __receiver = <ProfileCardAlbumListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
151 <Self as ::unity::SystemObject>::as_instance(self),
152 );
153 ::unity::il2cpp_call!((::unity::module_base()+0x2308c10usize)as*mut u8,();
154(ProfileCardAlbumListMenuItemContent)__receiver)
155 }
156 }
157}
158
159#[cfg(feature = "app-profilecardalbumlistmenuitemcontent")]
160impl<__T: IProfileCardAlbumListMenuItemContent> IProfileCardAlbumListMenuItemContentMethods for __T {}
161
162#[cfg(feature = "app-profilecardalbumlistmenuitemcontent")]
163impl ProfileCardAlbumListMenuItemContent {
164 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
166 }
167
168 pub fn set_game_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
170 }
171
172 pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
174 }
175
176 pub fn disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
178 }
179
180 pub fn set_active_children_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
182 }
183
184 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
186 }
187}
188
189#[cfg(feature = "app-profilecardalbumlistmenuitemcontent")]
190impl ProfileCardAlbumListMenuItemContent {
191 #[doc = "Direct (non-virtual) call to `ProfileCardAlbumListMenuItemContent`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
192 pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
193 let __mi = Self::start_method_info();
194 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
195 __inner(this.into(), ::core::option::Option::None)
196 }
197
198 #[doc = "Direct (non-virtual) call to `ProfileCardAlbumListMenuItemContent`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
199 pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item: crate::app::basicmenuitem::BasicMenuItem) -> () {
200 let __mi = Self::build_method_info();
201 let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
202 ::core::mem::transmute(__mi.method_ptr);
203 __inner(this.into(), menu_item, ::core::option::Option::None)
204 }
205
206 #[doc = "Direct (non-virtual) call to `ProfileCardAlbumListMenuItemContent`'s own `Disable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
207 pub unsafe fn disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
208 let __mi = Self::disable_method_info();
209 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
210 __inner(this.into(), ::core::option::Option::None)
211 }
212}
213
214#[cfg(feature = "app-profilecardalbumlistmenuitemcontent")]
215impl ProfileCardAlbumListMenuItemContent {
216 #[doc = "`.ctor()` — no args"]
217 pub fn new() -> Self {
218 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
219 panic!(
220 "{}
221::{}
222 failed to instantiate",
223 ::core::stringify!(ProfileCardAlbumListMenuItemContent),
224 ::core::stringify!(new),
225 )
226 });
227 <Self as IProfileCardAlbumListMenuItemContentMethods>::ctor(this);
228 this
229 }
230}
231
232#[cfg(feature = "app-profilecardalbumlistmenuitemcontent")]
233#[doc(hidden)]
234pub mod prelude {
235 pub use super::{IProfileCardAlbumListMenuItemContent, IProfileCardAlbumListMenuItemContentMethods, ProfileCardAlbumListMenuItemContent};
236 #[cfg(feature = "app-basicmenuitemcontent")]
237 pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
238 #[cfg(feature = "system-object")]
239 pub use crate::system::object::IObjectMethods;
240 #[cfg(feature = "unity_engine-behaviour")]
241 pub use crate::unity_engine::behaviour::IBehaviourMethods;
242 #[cfg(feature = "unity_engine-component")]
243 pub use crate::unity_engine::component::IComponentMethods;
244 #[cfg(feature = "unity_engine-monobehaviour")]
245 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
246 #[cfg(feature = "unity_engine-object_2")]
247 pub use crate::unity_engine::object_2::IObject_2Methods;
248 pub use crate::{
249 app::basicmenuitemcontent::IBasicMenuItemContent,
250 system::object::IObject,
251 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
252 };
253}