1#[cfg(feature = "app-photographselectareamenucontent-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/photographselectareamenucontent/PhotographSelectAreaMenuContent.md"))]
20 #[::unity::class(namespace = "App", name = "PhotographSelectAreaMenuContent")]
21 #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22 pub struct PhotographSelectAreaMenuContent {
23 #[static_field]
24 #[rename(name = "s_MenuPrefabPath")]
25 pub s_menu_prefab_path: ::unity::Il2CppString,
26 #[static_field]
27 #[rename(name = "s_AreaSpriteAtlasPath")]
28 pub s_area_sprite_atlas_path: ::unity::Il2CppString,
29 #[offset(232)]
30 #[rename(name = "m_AreaImage")]
31 pub m_area_image: crate::unity_engine::ui::image::Image,
32 #[offset(240)]
33 #[rename(name = "m_SpotCount")]
34 pub m_spot_count: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
35 #[offset(248)]
36 #[rename(name = "m_AreaSpriteAtlas")]
37 pub m_area_sprite_atlas: crate::unity_engine::u2d::spriteatlas::SpriteAtlas,
38 #[offset(256)]
39 #[rename(name = "m_AreaSprite")]
40 pub m_area_sprite: crate::unity_engine::sprite::Sprite,
41 }
42}
43
44#[cfg(feature = "app-photographselectareamenucontent-types")]
45pub use __types::*;
46
47#[cfg(feature = "app-photographselectareamenucontent")]
48impl PhotographSelectAreaMenuContent {
49 #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
50 pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x2694d40usize)as*mut u8,();
53(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
54 }
55 }
56
57 #[doc = "`LoadResource()` overload"]
58 pub fn load_resource() -> () {
59 unsafe {
60 ::unity::il2cpp_call!((::unity::module_base()+0x2695350usize)as*mut u8,();
61 )
62 }
63 }
64
65 #[doc = "`IsLoadingResource()` overload"]
66 pub fn is_loading_resource() -> bool {
67 unsafe {
68 ::unity::il2cpp_call!((::unity::module_base()+0x2695650usize)as*mut u8,bool;
69 )
70 }
71 }
72
73 #[doc = "`UnloadResource()` overload"]
74 pub fn unload_resource() -> () {
75 unsafe {
76 ::unity::il2cpp_call!((::unity::module_base()+0x2695760usize)as*mut u8,();
77 )
78 }
79 }
80
81 #[doc = "`.cctor()` overload"]
82 pub fn cctor() -> () {
83 unsafe {
84 ::unity::il2cpp_call!((::unity::module_base()+0x2695890usize)as*mut u8,();
85 )
86 }
87 }
88}
89
90#[cfg(feature = "app-photographselectareamenucontent")]
91pub trait IPhotographSelectAreaMenuContentMethods: IPhotographSelectAreaMenuContent {
92 #[doc = "`Awake()` overload"]
93 fn awake(self) -> () {
94 unsafe {
95 let __receiver =
96 <PhotographSelectAreaMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 {
98 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
99 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
100 panic!(
101 "unity: virtual slot {}
102 out of range (vtable len {}
103) on the runtime class behind {}
104 (method `{}
105`)",
106 30usize,
107 __vt.len(),
108 <PhotographSelectAreaMenuContent as ::unity::ClassIdentity>::NAME,
109 "Awake",
110 )
111 });
112 let __inner: extern "C" fn(PhotographSelectAreaMenuContent, ::unity::OptionalMethod) -> () = ::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, __mi)
115 }
116 }
117 }
118 #[doc = "`SetAreaData(crate::app::photographspotdata::PhotographSpotData)` overload"]
119 fn set_area_data(self, area_data: impl ::core::convert::Into<crate::app::photographspotdata::PhotographSpotData>) -> () {
120 unsafe {
121 let __receiver =
122 <PhotographSelectAreaMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!((::unity::module_base()+0x2694f60usize)as*mut u8,();
124(PhotographSelectAreaMenuContent)__receiver,(crate::app::photographspotdata::PhotographSpotData)::core::convert::Into::into(area_data))
125 }
126 }
127 #[doc = "`OnDestroy()` overload"]
128 fn on_destroy(self) -> () {
129 unsafe {
130 let __receiver =
131 <PhotographSelectAreaMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 {
133 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
134 let __vi = *__vt.get(33usize).unwrap_or_else(|| {
135 panic!(
136 "unity: virtual slot {}
137 out of range (vtable len {}
138) on the runtime class behind {}
139 (method `{}
140`)",
141 33usize,
142 __vt.len(),
143 <PhotographSelectAreaMenuContent as ::unity::ClassIdentity>::NAME,
144 "OnDestroy",
145 )
146 });
147 let __inner: extern "C" fn(PhotographSelectAreaMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
148 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
149 __inner(__receiver, __mi)
150 }
151 }
152 }
153 #[doc = "`CalcW()` overload"]
154 fn calc_w(self) -> f32 {
155 unsafe {
156 let __receiver =
157 <PhotographSelectAreaMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 {
159 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
160 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
161 panic!(
162 "unity: virtual slot {}
163 out of range (vtable len {}
164) on the runtime class behind {}
165 (method `{}
166`)",
167 21usize,
168 __vt.len(),
169 <PhotographSelectAreaMenuContent as ::unity::ClassIdentity>::NAME,
170 "CalcW",
171 )
172 });
173 let __inner: extern "C" fn(PhotographSelectAreaMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
174 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
175 __inner(__receiver, __mi)
176 }
177 }
178 }
179 #[doc = "`CalcH()` overload"]
180 fn calc_h(self) -> f32 {
181 unsafe {
182 let __receiver =
183 <PhotographSelectAreaMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 {
185 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
186 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
187 panic!(
188 "unity: virtual slot {}
189 out of range (vtable len {}
190) on the runtime class behind {}
191 (method `{}
192`)",
193 22usize,
194 __vt.len(),
195 <PhotographSelectAreaMenuContent as ::unity::ClassIdentity>::NAME,
196 "CalcH",
197 )
198 });
199 let __inner: extern "C" fn(PhotographSelectAreaMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
200 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
201 __inner(__receiver, __mi)
202 }
203 }
204 }
205 #[doc = "`CalcCursorMovedPosX(i32)` overload"]
206 fn calc_cursor_moved_pos_x(self, idx: impl ::core::convert::Into<i32>) -> f32 {
207 unsafe {
208 let __receiver =
209 <PhotographSelectAreaMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210 {
211 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
212 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
213 panic!(
214 "unity: virtual slot {}
215 out of range (vtable len {}
216) on the runtime class behind {}
217 (method `{}
218`)",
219 9usize,
220 __vt.len(),
221 <PhotographSelectAreaMenuContent as ::unity::ClassIdentity>::NAME,
222 "CalcCursorMovedPosX",
223 )
224 });
225 let __inner: extern "C" fn(PhotographSelectAreaMenuContent, i32, ::unity::OptionalMethod) -> f32 =
226 ::core::mem::transmute(__vi.method_ptr);
227 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
228 __inner(__receiver, ::core::convert::Into::into(idx), __mi)
229 }
230 }
231 }
232 #[doc = "`CalcCursorMovedPosY(i32)` overload"]
233 fn calc_cursor_moved_pos_y(self, idx: impl ::core::convert::Into<i32>) -> f32 {
234 unsafe {
235 let __receiver =
236 <PhotographSelectAreaMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 {
238 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
239 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
240 panic!(
241 "unity: virtual slot {}
242 out of range (vtable len {}
243) on the runtime class behind {}
244 (method `{}
245`)",
246 10usize,
247 __vt.len(),
248 <PhotographSelectAreaMenuContent as ::unity::ClassIdentity>::NAME,
249 "CalcCursorMovedPosY",
250 )
251 });
252 let __inner: extern "C" fn(PhotographSelectAreaMenuContent, i32, ::unity::OptionalMethod) -> f32 =
253 ::core::mem::transmute(__vi.method_ptr);
254 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
255 __inner(__receiver, ::core::convert::Into::into(idx), __mi)
256 }
257 }
258 }
259 #[doc = "`.ctor()` overload"]
260 fn ctor(self) -> () {
261 unsafe {
262 let __receiver =
263 <PhotographSelectAreaMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
264 ::unity::il2cpp_call!((::unity::module_base()+0x2695820usize)as*mut u8,();
265(PhotographSelectAreaMenuContent)__receiver)
266 }
267 }
268}
269
270#[cfg(feature = "app-photographselectareamenucontent")]
271impl<__T: IPhotographSelectAreaMenuContent> IPhotographSelectAreaMenuContentMethods for __T {}
272
273#[cfg(feature = "app-photographselectareamenucontent")]
274impl PhotographSelectAreaMenuContent {
275 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
277 }
278
279 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
281 }
282
283 pub fn set_area_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
285 }
286
287 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
289 }
290
291 pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
293 }
294
295 pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
297 }
298
299 pub fn calc_cursor_moved_pos_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
301 }
302
303 pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
305 }
306
307 pub fn load_resource_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
309 }
310
311 pub fn is_loading_resource_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
313 }
314
315 pub fn unload_resource_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
317 }
318
319 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
321 }
322
323 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
325 }
326}
327
328#[cfg(feature = "app-photographselectareamenucontent")]
329impl PhotographSelectAreaMenuContent {
330 #[doc = "Direct (non-virtual) call to `PhotographSelectAreaMenuContent`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
331 pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
332 let __mi = Self::awake_method_info();
333 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
334 __inner(this.into(), ::core::option::Option::None)
335 }
336
337 #[doc = "Direct (non-virtual) call to `PhotographSelectAreaMenuContent`'s own `OnDestroy`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
338 pub unsafe fn on_destroy(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
339 let __mi = Self::on_destroy_method_info();
340 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
341 __inner(this.into(), ::core::option::Option::None)
342 }
343
344 #[doc = "Direct (non-virtual) call to `PhotographSelectAreaMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
345 pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
346 let __mi = Self::calc_w_method_info();
347 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
348 __inner(this.into(), ::core::option::Option::None)
349 }
350
351 #[doc = "Direct (non-virtual) call to `PhotographSelectAreaMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
352 pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
353 let __mi = Self::calc_h_method_info();
354 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
355 __inner(this.into(), ::core::option::Option::None)
356 }
357
358 #[doc = "Direct (non-virtual) call to `PhotographSelectAreaMenuContent`'s own `CalcCursorMovedPosX`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
359 pub unsafe fn calc_cursor_moved_pos_x(this: impl ::core::convert::Into<::unity::IlInstance>, idx: i32) -> f32 {
360 let __mi = Self::calc_cursor_moved_pos_x_method_info();
361 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
362 __inner(this.into(), idx, ::core::option::Option::None)
363 }
364
365 #[doc = "Direct (non-virtual) call to `PhotographSelectAreaMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
366 pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, idx: i32) -> f32 {
367 let __mi = Self::calc_cursor_moved_pos_y_method_info();
368 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
369 __inner(this.into(), idx, ::core::option::Option::None)
370 }
371}
372
373#[cfg(feature = "app-photographselectareamenucontent")]
374impl PhotographSelectAreaMenuContent {
375 #[doc = "`.ctor()` — no args"]
376 pub fn new() -> Self {
377 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
378 panic!(
379 "{}
380::{}
381 failed to instantiate",
382 ::core::stringify!(PhotographSelectAreaMenuContent),
383 ::core::stringify!(new),
384 )
385 });
386 <Self as IPhotographSelectAreaMenuContentMethods>::ctor(this);
387 this
388 }
389}
390
391#[cfg(feature = "app-photographselectareamenucontent")]
392#[doc(hidden)]
393pub mod prelude {
394 pub use super::{IPhotographSelectAreaMenuContent, IPhotographSelectAreaMenuContentMethods, PhotographSelectAreaMenuContent};
395 #[cfg(feature = "app-basicmenucontent")]
396 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
397 #[cfg(feature = "system-object")]
398 pub use crate::system::object::IObjectMethods;
399 #[cfg(feature = "unity_engine-behaviour")]
400 pub use crate::unity_engine::behaviour::IBehaviourMethods;
401 #[cfg(feature = "unity_engine-component")]
402 pub use crate::unity_engine::component::IComponentMethods;
403 #[cfg(feature = "unity_engine-monobehaviour")]
404 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
405 #[cfg(feature = "unity_engine-object_2")]
406 pub use crate::unity_engine::object_2::IObject_2Methods;
407 pub use crate::{
408 app::basicmenucontent::IBasicMenuContent,
409 system::object::IObject,
410 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
411 };
412}