Skip to main content

engage/generated/app/
profilecardtitlemenuitem.rs

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