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