1#[cfg(feature = "app-profilecardcommentlistmenuitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/profilecardcommentlistmenuitem/ProfileCardCommentListMenuItem.md"))]
14 #[::unity::class(namespace = "App", name = "ProfileCardCommentListMenuItem")]
15 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16 pub struct ProfileCardCommentListMenuItem {
17 #[offset(112)]
18 #[rename(name = "m_SelectEventHandler")]
19 pub m_select_event_handler: crate::app::profilecardcommentlistmenu::ProfileCardCommentListMenu_SelectEventHandler,
20 }
21}
22
23#[cfg(feature = "app-profilecardcommentlistmenuitem-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-profilecardcommentlistmenuitem")]
27pub trait IProfileCardCommentListMenuItemMethods: IProfileCardCommentListMenuItem {
28 #[doc = "`get_m_CommentData()` overload"]
29 fn get_m_comment_data(self) -> crate::app::profilecardcommentdata::ProfileCardCommentData {
30 unsafe {
31 let __receiver =
32 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x2311440usize)as*mut u8,crate::app::profilecardcommentdata::ProfileCardCommentData;
34(ProfileCardCommentListMenuItem)__receiver)
35 }
36 }
37 #[doc = "`set_m_CommentData(crate::app::profilecardcommentdata::ProfileCardCommentData)` overload"]
38 fn set_m_comment_data(self, value: impl ::core::convert::Into<crate::app::profilecardcommentdata::ProfileCardCommentData>) -> () {
39 unsafe {
40 let __receiver =
41 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 ::unity::il2cpp_call!((::unity::module_base()+0x2311450usize)as*mut u8,();
43(ProfileCardCommentListMenuItem)__receiver,(crate::app::profilecardcommentdata::ProfileCardCommentData)::core::convert::Into::into(value))
44 }
45 }
46 #[doc = "`get_m_Decided()` overload"]
47 fn get_m_decided(self) -> bool {
48 unsafe {
49 let __receiver =
50 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x2311460usize)as*mut u8,bool;
52(ProfileCardCommentListMenuItem)__receiver)
53 }
54 }
55 #[doc = "`set_m_Decided(bool)` overload"]
56 fn set_m_decided(self, value: impl ::core::convert::Into<bool>) -> () {
57 unsafe {
58 let __receiver =
59 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x2311470usize)as*mut u8,();
61(ProfileCardCommentListMenuItem)__receiver,(bool)::core::convert::Into::into(value))
62 }
63 }
64 #[doc = "`.ctor(crate::app::profilecardcommentdata::ProfileCardCommentData, bool, crate::app::profilecardcommentlistmenu::ProfileCardCommentListMenu_SelectEventHandler)` overload"]
65 fn ctor(
66 self,
67 comment_data: impl ::core::convert::Into<crate::app::profilecardcommentdata::ProfileCardCommentData>,
68 initial_select: impl ::core::convert::Into<bool>,
69 select_event_handler: impl ::core::convert::Into<crate::app::profilecardcommentlistmenu::ProfileCardCommentListMenu_SelectEventHandler>,
70 ) -> () {
71 unsafe {
72 let __receiver =
73 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x230eef0usize)as*mut u8,();
75(ProfileCardCommentListMenuItem)__receiver,(crate::app::profilecardcommentdata::ProfileCardCommentData)::core::convert::Into::into(comment_data),(bool)::core::convert::Into::into(initial_select),(crate::app::profilecardcommentlistmenu::ProfileCardCommentListMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler))
76 }
77 }
78 #[doc = "`OnBuild()` overload"]
79 fn on_build(self) -> () {
80 unsafe {
81 let __receiver =
82 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 {
84 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
85 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
86 panic!(
87 "unity: virtual slot {}
88 out of range (vtable len {}
89) on the runtime class behind {}
90 (method `{}
91`)",
92 10usize,
93 __vt.len(),
94 <ProfileCardCommentListMenuItem as ::unity::ClassIdentity>::NAME,
95 "OnBuild",
96 )
97 });
98 let __inner: extern "C" fn(ProfileCardCommentListMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
99 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
100 __inner(__receiver, __mi)
101 }
102 }
103 }
104 #[doc = "`OnBuildMenuItemContent()` overload"]
105 fn on_build_menu_item_content(self) -> () {
106 unsafe {
107 let __receiver =
108 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 {
110 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
112 panic!(
113 "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118 11usize,
119 __vt.len(),
120 <ProfileCardCommentListMenuItem as ::unity::ClassIdentity>::NAME,
121 "OnBuildMenuItemContent",
122 )
123 });
124 let __inner: extern "C" fn(ProfileCardCommentListMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
125 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
126 __inner(__receiver, __mi)
127 }
128 }
129 }
130 #[doc = "`SetInitialColor()` overload"]
131 fn set_initial_color(self) -> () {
132 unsafe {
133 let __receiver =
134 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x2311580usize)as*mut u8,();
136(ProfileCardCommentListMenuItem)__receiver)
137 }
138 }
139 #[doc = "`UpdateFixedCursor()` overload"]
140 fn update_fixed_cursor(self) -> () {
141 unsafe {
142 let __receiver =
143 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144 ::unity::il2cpp_call!((::unity::module_base()+0x23116e0usize)as*mut u8,();
145(ProfileCardCommentListMenuItem)__receiver)
146 }
147 }
148 #[doc = "`UpdateNewIcon()` overload"]
149 fn update_new_icon(self) -> () {
150 unsafe {
151 let __receiver =
152 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 ::unity::il2cpp_call!((::unity::module_base()+0x23117d0usize)as*mut u8,();
154(ProfileCardCommentListMenuItem)__receiver)
155 }
156 }
157 #[doc = "`SetDecided(bool, bool)` overload"]
158 fn set_decided(self, decided: impl ::core::convert::Into<bool>, update_cursor_order: impl ::core::convert::Into<bool>) -> () {
159 unsafe {
160 let __receiver =
161 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x2310cb0usize)as*mut u8,();
163(ProfileCardCommentListMenuItem)__receiver,(bool)::core::convert::Into::into(decided),(bool)::core::convert::Into::into(update_cursor_order))
164 }
165 }
166 #[doc = "`OnSelect()` overload"]
167 fn on_select(self) -> () {
168 unsafe {
169 let __receiver =
170 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171 {
172 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
173 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
174 panic!(
175 "unity: virtual slot {}
176 out of range (vtable len {}
177) on the runtime class behind {}
178 (method `{}
179`)",
180 12usize,
181 __vt.len(),
182 <ProfileCardCommentListMenuItem as ::unity::ClassIdentity>::NAME,
183 "OnSelect",
184 )
185 });
186 let __inner: extern "C" fn(ProfileCardCommentListMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
187 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
188 __inner(__receiver, __mi)
189 }
190 }
191 }
192 #[doc = "`OnCursorMoveEnd()` overload"]
193 fn on_cursor_move_end(self) -> () {
194 unsafe {
195 let __receiver =
196 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 {
198 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
199 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
200 panic!(
201 "unity: virtual slot {}
202 out of range (vtable len {}
203) on the runtime class behind {}
204 (method `{}
205`)",
206 14usize,
207 __vt.len(),
208 <ProfileCardCommentListMenuItem as ::unity::ClassIdentity>::NAME,
209 "OnCursorMoveEnd",
210 )
211 });
212 let __inner: extern "C" fn(ProfileCardCommentListMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
213 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
214 __inner(__receiver, __mi)
215 }
216 }
217 }
218 #[doc = "`OnDeselect()` overload"]
219 fn on_deselect(self) -> () {
220 unsafe {
221 let __receiver =
222 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223 {
224 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
225 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
226 panic!(
227 "unity: virtual slot {}
228 out of range (vtable len {}
229) on the runtime class behind {}
230 (method `{}
231`)",
232 13usize,
233 __vt.len(),
234 <ProfileCardCommentListMenuItem as ::unity::ClassIdentity>::NAME,
235 "OnDeselect",
236 )
237 });
238 let __inner: extern "C" fn(ProfileCardCommentListMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
239 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
240 __inner(__receiver, __mi)
241 }
242 }
243 }
244 #[doc = "`ACall()` overload"]
245 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
246 unsafe {
247 let __receiver =
248 <ProfileCardCommentListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249 {
250 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
251 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
252 panic!(
253 "unity: virtual slot {}
254 out of range (vtable len {}
255) on the runtime class behind {}
256 (method `{}
257`)",
258 18usize,
259 __vt.len(),
260 <ProfileCardCommentListMenuItem as ::unity::ClassIdentity>::NAME,
261 "ACall",
262 )
263 });
264 let __inner: extern "C" fn(ProfileCardCommentListMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
265 ::core::mem::transmute(__vi.method_ptr);
266 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
267 __inner(__receiver, __mi)
268 }
269 }
270 }
271}
272
273#[cfg(feature = "app-profilecardcommentlistmenuitem")]
274impl<__T: IProfileCardCommentListMenuItem> IProfileCardCommentListMenuItemMethods for __T {}
275
276#[cfg(feature = "app-profilecardcommentlistmenuitem")]
277impl ProfileCardCommentListMenuItem {
278 pub fn get_m_comment_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
280 }
281
282 pub fn set_m_comment_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
284 }
285
286 pub fn get_m_decided_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
288 }
289
290 pub fn set_m_decided_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
292 }
293
294 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
296 }
297
298 pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
300 }
301
302 pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
304 }
305
306 pub fn set_initial_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
308 }
309
310 pub fn update_fixed_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
312 }
313
314 pub fn update_new_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
316 }
317
318 pub fn set_decided_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
320 }
321
322 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
324 }
325
326 pub fn on_cursor_move_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
328 }
329
330 pub fn on_deselect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
332 }
333
334 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
336 }
337}
338
339#[cfg(feature = "app-profilecardcommentlistmenuitem")]
340impl ProfileCardCommentListMenuItem {
341 #[doc = "Direct (non-virtual) call to `ProfileCardCommentListMenuItem`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
342 pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
343 let __mi = Self::on_build_method_info();
344 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
345 __inner(this.into(), ::core::option::Option::None)
346 }
347
348 #[doc = "Direct (non-virtual) call to `ProfileCardCommentListMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
349 pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
350 let __mi = Self::on_build_menu_item_content_method_info();
351 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
352 __inner(this.into(), ::core::option::Option::None)
353 }
354
355 #[doc = "Direct (non-virtual) call to `ProfileCardCommentListMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
356 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
357 let __mi = Self::on_select_method_info();
358 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
359 __inner(this.into(), ::core::option::Option::None)
360 }
361
362 #[doc = "Direct (non-virtual) call to `ProfileCardCommentListMenuItem`'s own `OnCursorMoveEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
363 pub unsafe fn on_cursor_move_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
364 let __mi = Self::on_cursor_move_end_method_info();
365 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
366 __inner(this.into(), ::core::option::Option::None)
367 }
368
369 #[doc = "Direct (non-virtual) call to `ProfileCardCommentListMenuItem`'s own `OnDeselect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
370 pub unsafe fn on_deselect(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
371 let __mi = Self::on_deselect_method_info();
372 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
373 __inner(this.into(), ::core::option::Option::None)
374 }
375
376 #[doc = "Direct (non-virtual) call to `ProfileCardCommentListMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
377 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
378 let __mi = Self::a_call_method_info();
379 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
380 ::core::mem::transmute(__mi.method_ptr);
381 __inner(this.into(), ::core::option::Option::None)
382 }
383}
384
385#[cfg(feature = "app-profilecardcommentlistmenuitem")]
386impl ProfileCardCommentListMenuItem {
387 #[doc = "`.ctor(crate::app::profilecardcommentdata::ProfileCardCommentData, bool, crate::app::profilecardcommentlistmenu::ProfileCardCommentListMenu_SelectEventHandler)` — overload selector"]
388 pub fn new(
389 comment_data: crate::app::profilecardcommentdata::ProfileCardCommentData,
390 initial_select: bool,
391 select_event_handler: crate::app::profilecardcommentlistmenu::ProfileCardCommentListMenu_SelectEventHandler,
392 ) -> Self {
393 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
394 panic!(
395 "{}
396::{}
397 failed to instantiate",
398 ::core::stringify!(ProfileCardCommentListMenuItem),
399 ::core::stringify!(new),
400 )
401 });
402 <Self as IProfileCardCommentListMenuItemMethods>::ctor(this, comment_data, initial_select, select_event_handler);
403 this
404 }
405}
406
407#[cfg(feature = "app-profilecardcommentlistmenuitem")]
408#[doc(hidden)]
409pub mod prelude {
410 pub use super::{IProfileCardCommentListMenuItem, IProfileCardCommentListMenuItemMethods, ProfileCardCommentListMenuItem};
411 #[cfg(feature = "app-basicmenuitem")]
412 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
413 #[cfg(feature = "system-object")]
414 pub use crate::system::object::IObjectMethods;
415 pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
416}