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