Skip to main content

engage/generated/app/
photographselectpausemenuitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-photographselectpausemenuitemcontent-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/photographselectpausemenuitemcontent/PhotographSelectPauseMenuItemContent.md"))]
20    #[::unity::class(namespace = "App", name = "PhotographSelectPauseMenuItemContent")]
21    #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22    pub struct PhotographSelectPauseMenuItemContent {
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-photographselectpausemenuitemcontent-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-photographselectpausemenuitemcontent")]
36pub trait IPhotographSelectPauseMenuItemContentMethods: IPhotographSelectPauseMenuItemContent {
37    #[doc = "`FindObject()` overload"]
38    fn find_object(self) -> () {
39        unsafe {
40            let __receiver = <PhotographSelectPauseMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
41                <Self as ::unity::SystemObject>::as_instance(self),
42            );
43            ::unity::il2cpp_call!((::unity::module_base()+0x269ae50usize)as*mut u8,();
44(PhotographSelectPauseMenuItemContent)__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 = <PhotographSelectPauseMenuItemContent 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                        <PhotographSelectPauseMenuItemContent as ::unity::ClassIdentity>::NAME,
65                        "Build",
66                    )
67                });
68                let __inner: extern "C" fn(
69                    PhotographSelectPauseMenuItemContent,
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 = <PhotographSelectPauseMenuItemContent 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                        <PhotographSelectPauseMenuItemContent as ::unity::ClassIdentity>::NAME,
96                        "BuildText",
97                    )
98                });
99                let __inner: extern "C" fn(PhotographSelectPauseMenuItemContent, ::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 = <PhotographSelectPauseMenuItemContent 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                        <PhotographSelectPauseMenuItemContent as ::unity::ClassIdentity>::NAME,
124                        "BuildTextColor",
125                    )
126                });
127                let __inner: extern "C" fn(PhotographSelectPauseMenuItemContent, ::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 = <PhotographSelectPauseMenuItemContent 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                        <PhotographSelectPauseMenuItemContent as ::unity::ClassIdentity>::NAME,
152                        "UpdateTextColor",
153                    )
154                });
155                let __inner: extern "C" fn(PhotographSelectPauseMenuItemContent, ::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 = <PhotographSelectPauseMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
166                <Self as ::unity::SystemObject>::as_instance(self),
167            );
168            ::unity::il2cpp_call!((::unity::module_base()+0x269b2d0usize)as*mut u8,();
169(PhotographSelectPauseMenuItemContent)__receiver)
170        }
171    }
172}
173
174#[cfg(feature = "app-photographselectpausemenuitemcontent")]
175impl<__T: IPhotographSelectPauseMenuItemContent> IPhotographSelectPauseMenuItemContentMethods for __T {}
176
177#[cfg(feature = "app-photographselectpausemenuitemcontent")]
178impl PhotographSelectPauseMenuItemContent {
179    pub fn find_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-photographselectpausemenuitemcontent")]
205impl PhotographSelectPauseMenuItemContent {
206    #[doc = "Direct (non-virtual) call to `PhotographSelectPauseMenuItemContent`'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 `PhotographSelectPauseMenuItemContent`'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 `PhotographSelectPauseMenuItemContent`'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 `PhotographSelectPauseMenuItemContent`'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-photographselectpausemenuitemcontent")]
237impl PhotographSelectPauseMenuItemContent {
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!(PhotographSelectPauseMenuItemContent),
246                ::core::stringify!(new),
247            )
248        });
249        <Self as IPhotographSelectPauseMenuItemContentMethods>::ctor(this);
250        this
251    }
252}
253
254#[cfg(feature = "app-photographselectpausemenuitemcontent")]
255#[doc(hidden)]
256pub mod prelude {
257    pub use super::{IPhotographSelectPauseMenuItemContent, IPhotographSelectPauseMenuItemContentMethods, PhotographSelectPauseMenuItemContent};
258    #[cfg(feature = "app-basicmenuitemcontent")]
259    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
260    #[cfg(feature = "system-object")]
261    pub use crate::system::object::IObjectMethods;
262    #[cfg(feature = "unity_engine-behaviour")]
263    pub use crate::unity_engine::behaviour::IBehaviourMethods;
264    #[cfg(feature = "unity_engine-component")]
265    pub use crate::unity_engine::component::IComponentMethods;
266    #[cfg(feature = "unity_engine-monobehaviour")]
267    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
268    #[cfg(feature = "unity_engine-object_2")]
269    pub use crate::unity_engine::object_2::IObject_2Methods;
270    pub use crate::{
271        app::basicmenuitemcontent::IBasicMenuItemContent,
272        system::object::IObject,
273        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
274    };
275}