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