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