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