Skip to main content

engage/generated/app/
profilecardmessagelistmenucontent.rs

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