Skip to main content

engage/generated/app/
photographselectdisposmenuitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-photographselectdisposmenuitemcontent-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/photographselectdisposmenuitemcontent/PhotographSelectDisposMenuItemContent.md"))]
20    #[::unity::class(namespace = "App", name = "PhotographSelectDisposMenuItemContent")]
21    #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22    pub struct PhotographSelectDisposMenuItemContent {
23        #[offset(72)]
24        #[rename(name = "m_AreaText")]
25        pub m_area_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
26        #[offset(80)]
27        #[rename(name = "m_UnitIcon")]
28        pub m_unit_icon: crate::app::uniticon::UnitIcon,
29    }
30}
31
32#[cfg(feature = "app-photographselectdisposmenuitemcontent-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-photographselectdisposmenuitemcontent")]
36pub trait IPhotographSelectDisposMenuItemContentMethods: IPhotographSelectDisposMenuItemContent {
37    #[doc = "`Build(crate::app::basicmenuitem::BasicMenuItem)` overload"]
38    fn build(self, menu_item: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>) -> () {
39        unsafe {
40            let __receiver = <PhotographSelectDisposMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
41                <Self as ::unity::SystemObject>::as_instance(self),
42            );
43            {
44                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
45                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
46                    panic!(
47                        "unity: virtual slot {}
48 out of range (vtable len {}
49) on the runtime class behind {}
50 (method `{}
51`)",
52                        8usize,
53                        __vt.len(),
54                        <PhotographSelectDisposMenuItemContent as ::unity::ClassIdentity>::NAME,
55                        "Build",
56                    )
57                });
58                let __inner: extern "C" fn(
59                    PhotographSelectDisposMenuItemContent,
60                    crate::app::basicmenuitem::BasicMenuItem,
61                    ::unity::OptionalMethod,
62                ) -> () = ::core::mem::transmute(__vi.method_ptr);
63                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
64                __inner(__receiver, ::core::convert::Into::into(menu_item), __mi)
65            }
66        }
67    }
68    #[doc = "`SetupObject(crate::app::photographselectdisposmenuitem::PhotographSelectDisposMenuItem)` overload"]
69    fn setup_object(self, menu_item: impl ::core::convert::Into<crate::app::photographselectdisposmenuitem::PhotographSelectDisposMenuItem>) -> () {
70        unsafe {
71            let __receiver = <PhotographSelectDisposMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
72                <Self as ::unity::SystemObject>::as_instance(self),
73            );
74            ::unity::il2cpp_call!((::unity::module_base()+0x26984a0usize)as*mut u8,();
75(PhotographSelectDisposMenuItemContent)__receiver,(crate::app::photographselectdisposmenuitem::PhotographSelectDisposMenuItem)::core::convert::Into::into(menu_item))
76        }
77    }
78    #[doc = "`UpdateTextColor()` overload"]
79    fn update_text_color(self) -> () {
80        unsafe {
81            let __receiver = <PhotographSelectDisposMenuItemContent 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(7usize).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                        7usize,
94                        __vt.len(),
95                        <PhotographSelectDisposMenuItemContent as ::unity::ClassIdentity>::NAME,
96                        "UpdateTextColor",
97                    )
98                });
99                let __inner: extern "C" fn(PhotographSelectDisposMenuItemContent, ::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 = "`.ctor()` overload"]
107    fn ctor(self) -> () {
108        unsafe {
109            let __receiver = <PhotographSelectDisposMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
110                <Self as ::unity::SystemObject>::as_instance(self),
111            );
112            ::unity::il2cpp_call!((::unity::module_base()+0x26987e0usize)as*mut u8,();
113(PhotographSelectDisposMenuItemContent)__receiver)
114        }
115    }
116}
117
118#[cfg(feature = "app-photographselectdisposmenuitemcontent")]
119impl<__T: IPhotographSelectDisposMenuItemContent> IPhotographSelectDisposMenuItemContentMethods for __T {}
120
121#[cfg(feature = "app-photographselectdisposmenuitemcontent")]
122impl PhotographSelectDisposMenuItemContent {
123    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
125    }
126
127    pub fn setup_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
129    }
130
131    pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
133    }
134
135    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
137    }
138}
139
140#[cfg(feature = "app-photographselectdisposmenuitemcontent")]
141impl PhotographSelectDisposMenuItemContent {
142    #[doc = "Direct (non-virtual) call to `PhotographSelectDisposMenuItemContent`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
143    pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item: crate::app::basicmenuitem::BasicMenuItem) -> () {
144        let __mi = Self::build_method_info();
145        let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
146            ::core::mem::transmute(__mi.method_ptr);
147        __inner(this.into(), menu_item, ::core::option::Option::None)
148    }
149
150    #[doc = "Direct (non-virtual) call to `PhotographSelectDisposMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
151    pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
152        let __mi = Self::update_text_color_method_info();
153        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
154        __inner(this.into(), ::core::option::Option::None)
155    }
156}
157
158#[cfg(feature = "app-photographselectdisposmenuitemcontent")]
159impl PhotographSelectDisposMenuItemContent {
160    #[doc = "`.ctor()` — no args"]
161    pub fn new() -> Self {
162        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
163            panic!(
164                "{}
165::{}
166 failed to instantiate",
167                ::core::stringify!(PhotographSelectDisposMenuItemContent),
168                ::core::stringify!(new),
169            )
170        });
171        <Self as IPhotographSelectDisposMenuItemContentMethods>::ctor(this);
172        this
173    }
174}
175
176#[cfg(feature = "app-photographselectdisposmenuitemcontent")]
177#[doc(hidden)]
178pub mod prelude {
179    pub use super::{IPhotographSelectDisposMenuItemContent, IPhotographSelectDisposMenuItemContentMethods, PhotographSelectDisposMenuItemContent};
180    #[cfg(feature = "app-basicmenuitemcontent")]
181    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
182    #[cfg(feature = "system-object")]
183    pub use crate::system::object::IObjectMethods;
184    #[cfg(feature = "unity_engine-behaviour")]
185    pub use crate::unity_engine::behaviour::IBehaviourMethods;
186    #[cfg(feature = "unity_engine-component")]
187    pub use crate::unity_engine::component::IComponentMethods;
188    #[cfg(feature = "unity_engine-monobehaviour")]
189    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
190    #[cfg(feature = "unity_engine-object_2")]
191    pub use crate::unity_engine::object_2::IObject_2Methods;
192    pub use crate::{
193        app::basicmenuitemcontent::IBasicMenuItemContent,
194        system::object::IObject,
195        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
196    };
197}