Skip to main content

engage/generated/app/
profilecardtopmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-profilecardtopmenucontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
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/profilecardtopmenucontent/ProfileCardTopMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "ProfileCardTopMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct ProfileCardTopMenuContent {}
23}
24
25#[cfg(feature = "app-profilecardtopmenucontent-types")]
26pub use __types::*;
27
28#[cfg(feature = "app-profilecardtopmenucontent")]
29pub trait IProfileCardTopMenuContentMethods: IProfileCardTopMenuContent {
30    #[doc = "`GetMenuItemContentMax()` overload"]
31    fn get_menu_item_content_max(self) -> i32 {
32        unsafe {
33            let __receiver =
34                <ProfileCardTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            {
36                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
37                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
38                    panic!(
39                        "unity: virtual slot {}
40 out of range (vtable len {}
41) on the runtime class behind {}
42 (method `{}
43`)",
44                        4usize,
45                        __vt.len(),
46                        <ProfileCardTopMenuContent as ::unity::ClassIdentity>::NAME,
47                        "GetMenuItemContentMax",
48                    )
49                });
50                let __inner: extern "C" fn(ProfileCardTopMenuContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
51                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
52                __inner(__receiver, __mi)
53            }
54        }
55    }
56    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
57    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
58        unsafe {
59            let __receiver =
60                <ProfileCardTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            {
62                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
63                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
64                    panic!(
65                        "unity: virtual slot {}
66 out of range (vtable len {}
67) on the runtime class behind {}
68 (method `{}
69`)",
70                        10usize,
71                        __vt.len(),
72                        <ProfileCardTopMenuContent as ::unity::ClassIdentity>::NAME,
73                        "CalcCursorMovedPosY",
74                    )
75                });
76                let __inner: extern "C" fn(ProfileCardTopMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
77                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
78                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
79            }
80        }
81    }
82    #[doc = "`.ctor()` overload"]
83    fn ctor(self) -> () {
84        unsafe {
85            let __receiver =
86                <ProfileCardTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x2c00460usize)as*mut u8,();
88(ProfileCardTopMenuContent)__receiver)
89        }
90    }
91}
92
93#[cfg(feature = "app-profilecardtopmenucontent")]
94impl<__T: IProfileCardTopMenuContent> IProfileCardTopMenuContentMethods for __T {}
95
96#[cfg(feature = "app-profilecardtopmenucontent")]
97impl ProfileCardTopMenuContent {
98    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
100    }
101
102    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
104    }
105
106    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
108    }
109}
110
111#[cfg(feature = "app-profilecardtopmenucontent")]
112impl ProfileCardTopMenuContent {
113    #[doc = "Direct (non-virtual) call to `ProfileCardTopMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
114    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
115        let __mi = Self::get_menu_item_content_max_method_info();
116        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
117        __inner(this.into(), ::core::option::Option::None)
118    }
119
120    #[doc = "Direct (non-virtual) call to `ProfileCardTopMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
121    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
122        let __mi = Self::calc_cursor_moved_pos_y_method_info();
123        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
124        __inner(this.into(), menu_item_index, ::core::option::Option::None)
125    }
126}
127
128#[cfg(feature = "app-profilecardtopmenucontent")]
129impl ProfileCardTopMenuContent {
130    #[doc = "`.ctor()` — no args"]
131    pub fn new() -> Self {
132        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
133            panic!(
134                "{}
135::{}
136 failed to instantiate",
137                ::core::stringify!(ProfileCardTopMenuContent),
138                ::core::stringify!(new),
139            )
140        });
141        <Self as IProfileCardTopMenuContentMethods>::ctor(this);
142        this
143    }
144}
145
146#[cfg(feature = "app-profilecardtopmenucontent")]
147#[doc(hidden)]
148pub mod prelude {
149    pub use super::{IProfileCardTopMenuContent, IProfileCardTopMenuContentMethods, ProfileCardTopMenuContent};
150    #[cfg(feature = "app-basicmenucontent")]
151    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
152    #[cfg(feature = "system-object")]
153    pub use crate::system::object::IObjectMethods;
154    #[cfg(feature = "unity_engine-behaviour")]
155    pub use crate::unity_engine::behaviour::IBehaviourMethods;
156    #[cfg(feature = "unity_engine-component")]
157    pub use crate::unity_engine::component::IComponentMethods;
158    #[cfg(feature = "unity_engine-monobehaviour")]
159    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
160    #[cfg(feature = "unity_engine-object_2")]
161    pub use crate::unity_engine::object_2::IObject_2Methods;
162    pub use crate::{
163        app::basicmenucontent::IBasicMenuContent,
164        system::object::IObject,
165        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
166    };
167}