Skip to main content

engage/generated/app/
profilecardmessageselectmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-profilecardmessageselectmenucontent-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/profilecardmessageselectmenucontent/ProfileCardMessageSelectMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "ProfileCardMessageSelectMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct ProfileCardMessageSelectMenuContent {
23        #[offset(232)]
24        #[rename(name = "m_CaptionText")]
25        pub m_caption_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
26    }
27}
28
29#[cfg(feature = "app-profilecardmessageselectmenucontent-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-profilecardmessageselectmenucontent")]
33pub trait IProfileCardMessageSelectMenuContentMethods: IProfileCardMessageSelectMenuContent {
34    #[doc = "`GetMenuItemContentMax()` overload"]
35    fn get_menu_item_content_max(self) -> i32 {
36        unsafe {
37            let __receiver = <ProfileCardMessageSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(
38                <Self as ::unity::SystemObject>::as_instance(self),
39            );
40            {
41                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
42                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
43                    panic!(
44                        "unity: virtual slot {}
45 out of range (vtable len {}
46) on the runtime class behind {}
47 (method `{}
48`)",
49                        4usize,
50                        __vt.len(),
51                        <ProfileCardMessageSelectMenuContent as ::unity::ClassIdentity>::NAME,
52                        "GetMenuItemContentMax",
53                    )
54                });
55                let __inner: extern "C" fn(ProfileCardMessageSelectMenuContent, ::unity::OptionalMethod) -> i32 =
56                    ::core::mem::transmute(__vi.method_ptr);
57                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
58                __inner(__receiver, __mi)
59            }
60        }
61    }
62    #[doc = "`CalcCursorMovedPosX(i32)` overload"]
63    fn calc_cursor_moved_pos_x(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
64        unsafe {
65            let __receiver = <ProfileCardMessageSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(
66                <Self as ::unity::SystemObject>::as_instance(self),
67            );
68            {
69                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
70                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
71                    panic!(
72                        "unity: virtual slot {}
73 out of range (vtable len {}
74) on the runtime class behind {}
75 (method `{}
76`)",
77                        9usize,
78                        __vt.len(),
79                        <ProfileCardMessageSelectMenuContent as ::unity::ClassIdentity>::NAME,
80                        "CalcCursorMovedPosX",
81                    )
82                });
83                let __inner: extern "C" fn(ProfileCardMessageSelectMenuContent, i32, ::unity::OptionalMethod) -> f32 =
84                    ::core::mem::transmute(__vi.method_ptr);
85                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
86                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
87            }
88        }
89    }
90    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
91    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
92        unsafe {
93            let __receiver = <ProfileCardMessageSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(
94                <Self as ::unity::SystemObject>::as_instance(self),
95            );
96            {
97                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
98                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
99                    panic!(
100                        "unity: virtual slot {}
101 out of range (vtable len {}
102) on the runtime class behind {}
103 (method `{}
104`)",
105                        10usize,
106                        __vt.len(),
107                        <ProfileCardMessageSelectMenuContent as ::unity::ClassIdentity>::NAME,
108                        "CalcCursorMovedPosY",
109                    )
110                });
111                let __inner: extern "C" fn(ProfileCardMessageSelectMenuContent, i32, ::unity::OptionalMethod) -> f32 =
112                    ::core::mem::transmute(__vi.method_ptr);
113                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
114                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
115            }
116        }
117    }
118    #[doc = "`CalcW()` overload"]
119    fn calc_w(self) -> f32 {
120        unsafe {
121            let __receiver = <ProfileCardMessageSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(
122                <Self as ::unity::SystemObject>::as_instance(self),
123            );
124            {
125                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
126                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
127                    panic!(
128                        "unity: virtual slot {}
129 out of range (vtable len {}
130) on the runtime class behind {}
131 (method `{}
132`)",
133                        21usize,
134                        __vt.len(),
135                        <ProfileCardMessageSelectMenuContent as ::unity::ClassIdentity>::NAME,
136                        "CalcW",
137                    )
138                });
139                let __inner: extern "C" fn(ProfileCardMessageSelectMenuContent, ::unity::OptionalMethod) -> f32 =
140                    ::core::mem::transmute(__vi.method_ptr);
141                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
142                __inner(__receiver, __mi)
143            }
144        }
145    }
146    #[doc = "`CalcH()` overload"]
147    fn calc_h(self) -> f32 {
148        unsafe {
149            let __receiver = <ProfileCardMessageSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(
150                <Self as ::unity::SystemObject>::as_instance(self),
151            );
152            {
153                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
154                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
155                    panic!(
156                        "unity: virtual slot {}
157 out of range (vtable len {}
158) on the runtime class behind {}
159 (method `{}
160`)",
161                        22usize,
162                        __vt.len(),
163                        <ProfileCardMessageSelectMenuContent as ::unity::ClassIdentity>::NAME,
164                        "CalcH",
165                    )
166                });
167                let __inner: extern "C" fn(ProfileCardMessageSelectMenuContent, ::unity::OptionalMethod) -> f32 =
168                    ::core::mem::transmute(__vi.method_ptr);
169                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
170                __inner(__receiver, __mi)
171            }
172        }
173    }
174    #[doc = "`SetCaption(::unity::Il2CppString)` overload"]
175    fn set_caption(self, caption: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
176        unsafe {
177            let __receiver = <ProfileCardMessageSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(
178                <Self as ::unity::SystemObject>::as_instance(self),
179            );
180            ::unity::il2cpp_call!((::unity::module_base()+0x230ebf0usize)as*mut u8,();
181(ProfileCardMessageSelectMenuContent)__receiver,(::unity::Il2CppString)::core::convert::Into::into(caption))
182        }
183    }
184    #[doc = "`.ctor()` overload"]
185    fn ctor(self) -> () {
186        unsafe {
187            let __receiver = <ProfileCardMessageSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(
188                <Self as ::unity::SystemObject>::as_instance(self),
189            );
190            ::unity::il2cpp_call!((::unity::module_base()+0x231b610usize)as*mut u8,();
191(ProfileCardMessageSelectMenuContent)__receiver)
192        }
193    }
194}
195
196#[cfg(feature = "app-profilecardmessageselectmenucontent")]
197impl<__T: IProfileCardMessageSelectMenuContent> IProfileCardMessageSelectMenuContentMethods for __T {}
198
199#[cfg(feature = "app-profilecardmessageselectmenucontent")]
200impl ProfileCardMessageSelectMenuContent {
201    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
203    }
204
205    pub fn calc_cursor_moved_pos_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
207    }
208
209    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
211    }
212
213    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
215    }
216
217    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
219    }
220
221    pub fn set_caption_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
223    }
224
225    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
227    }
228}
229
230#[cfg(feature = "app-profilecardmessageselectmenucontent")]
231impl ProfileCardMessageSelectMenuContent {
232    #[doc = "Direct (non-virtual) call to `ProfileCardMessageSelectMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
233    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
234        let __mi = Self::get_menu_item_content_max_method_info();
235        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
236        __inner(this.into(), ::core::option::Option::None)
237    }
238
239    #[doc = "Direct (non-virtual) call to `ProfileCardMessageSelectMenuContent`'s own `CalcCursorMovedPosX`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
240    pub unsafe fn calc_cursor_moved_pos_x(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
241        let __mi = Self::calc_cursor_moved_pos_x_method_info();
242        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
243        __inner(this.into(), menu_item_index, ::core::option::Option::None)
244    }
245
246    #[doc = "Direct (non-virtual) call to `ProfileCardMessageSelectMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
247    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
248        let __mi = Self::calc_cursor_moved_pos_y_method_info();
249        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
250        __inner(this.into(), menu_item_index, ::core::option::Option::None)
251    }
252
253    #[doc = "Direct (non-virtual) call to `ProfileCardMessageSelectMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
254    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
255        let __mi = Self::calc_w_method_info();
256        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
257        __inner(this.into(), ::core::option::Option::None)
258    }
259
260    #[doc = "Direct (non-virtual) call to `ProfileCardMessageSelectMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
261    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
262        let __mi = Self::calc_h_method_info();
263        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
264        __inner(this.into(), ::core::option::Option::None)
265    }
266}
267
268#[cfg(feature = "app-profilecardmessageselectmenucontent")]
269impl ProfileCardMessageSelectMenuContent {
270    #[doc = "`.ctor()` — no args"]
271    pub fn new() -> Self {
272        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
273            panic!(
274                "{}
275::{}
276 failed to instantiate",
277                ::core::stringify!(ProfileCardMessageSelectMenuContent),
278                ::core::stringify!(new),
279            )
280        });
281        <Self as IProfileCardMessageSelectMenuContentMethods>::ctor(this);
282        this
283    }
284}
285
286#[cfg(feature = "app-profilecardmessageselectmenucontent")]
287#[doc(hidden)]
288pub mod prelude {
289    pub use super::{IProfileCardMessageSelectMenuContent, IProfileCardMessageSelectMenuContentMethods, ProfileCardMessageSelectMenuContent};
290    #[cfg(feature = "app-basicmenucontent")]
291    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
292    #[cfg(feature = "system-object")]
293    pub use crate::system::object::IObjectMethods;
294    #[cfg(feature = "unity_engine-behaviour")]
295    pub use crate::unity_engine::behaviour::IBehaviourMethods;
296    #[cfg(feature = "unity_engine-component")]
297    pub use crate::unity_engine::component::IComponentMethods;
298    #[cfg(feature = "unity_engine-monobehaviour")]
299    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
300    #[cfg(feature = "unity_engine-object_2")]
301    pub use crate::unity_engine::object_2::IObject_2Methods;
302    pub use crate::{
303        app::basicmenucontent::IBasicMenuContent,
304        system::object::IObject,
305        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
306    };
307}