Skip to main content

engage/generated/app/
systemscrollmenuitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-systemscrollmenuitemcontent-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/systemscrollmenuitemcontent/SystemScrollMenuItemContent.md"))]
20    #[::unity::class(namespace = "App", name = "SystemScrollMenuItemContent")]
21    #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22    pub struct SystemScrollMenuItemContent {
23        #[offset(72)]
24        #[rename(name = "m_Partner")]
25        pub m_partner: crate::unity_engine::gameobject::GameObject,
26        #[offset(80)]
27        #[rename(name = "m_Title")]
28        pub m_title: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29        #[offset(88)]
30        #[rename(name = "m_Help")]
31        pub m_help: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
32        #[offset(96)]
33        #[rename(name = "m_Icon")]
34        pub m_icon: crate::unity_engine::gameobject::GameObject,
35    }
36}
37
38#[cfg(feature = "app-systemscrollmenuitemcontent-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-systemscrollmenuitemcontent")]
42pub trait ISystemScrollMenuItemContentMethods: ISystemScrollMenuItemContent {
43    #[doc = "`Build(crate::app::basicmenuitem::BasicMenuItem)` overload"]
44    fn build(self, menu_item: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>) -> () {
45        unsafe {
46            let __receiver =
47                <SystemScrollMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            {
49                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
50                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
51                    panic!(
52                        "unity: virtual slot {}
53 out of range (vtable len {}
54) on the runtime class behind {}
55 (method `{}
56`)",
57                        8usize,
58                        __vt.len(),
59                        <SystemScrollMenuItemContent as ::unity::ClassIdentity>::NAME,
60                        "Build",
61                    )
62                });
63                let __inner: extern "C" fn(SystemScrollMenuItemContent, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
64                    ::core::mem::transmute(__vi.method_ptr);
65                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
66                __inner(__receiver, ::core::convert::Into::into(menu_item), __mi)
67            }
68        }
69    }
70    #[doc = "`Update()` overload"]
71    fn update(self) -> () {
72        unsafe {
73            let __receiver =
74                <SystemScrollMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            {
76                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
77                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
78                    panic!(
79                        "unity: virtual slot {}
80 out of range (vtable len {}
81) on the runtime class behind {}
82 (method `{}
83`)",
84                        15usize,
85                        __vt.len(),
86                        <SystemScrollMenuItemContent as ::unity::ClassIdentity>::NAME,
87                        "Update",
88                    )
89                });
90                let __inner: extern "C" fn(SystemScrollMenuItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
91                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
92                __inner(__receiver, __mi)
93            }
94        }
95    }
96    #[doc = "`UpdateTextColor()` overload"]
97    fn update_text_color(self) -> () {
98        unsafe {
99            let __receiver =
100                <SystemScrollMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101            {
102                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
103                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
104                    panic!(
105                        "unity: virtual slot {}
106 out of range (vtable len {}
107) on the runtime class behind {}
108 (method `{}
109`)",
110                        7usize,
111                        __vt.len(),
112                        <SystemScrollMenuItemContent as ::unity::ClassIdentity>::NAME,
113                        "UpdateTextColor",
114                    )
115                });
116                let __inner: extern "C" fn(SystemScrollMenuItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
117                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118                __inner(__receiver, __mi)
119            }
120        }
121    }
122    #[doc = "`Disable()` overload"]
123    fn disable(self) -> () {
124        unsafe {
125            let __receiver =
126                <SystemScrollMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            {
128                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
129                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
130                    panic!(
131                        "unity: virtual slot {}
132 out of range (vtable len {}
133) on the runtime class behind {}
134 (method `{}
135`)",
136                        13usize,
137                        __vt.len(),
138                        <SystemScrollMenuItemContent as ::unity::ClassIdentity>::NAME,
139                        "Disable",
140                    )
141                });
142                let __inner: extern "C" fn(SystemScrollMenuItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
143                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
144                __inner(__receiver, __mi)
145            }
146        }
147    }
148    #[doc = "`SetHelpText(::unity::Il2CppString, crate::unity_engine::color::Color)` overload"]
149    fn set_help_text(
150        self,
151        help: impl ::core::convert::Into<::unity::Il2CppString>,
152        c: impl ::core::convert::Into<crate::unity_engine::color::Color>,
153    ) -> () {
154        unsafe {
155            let __receiver =
156                <SystemScrollMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157            ::unity::il2cpp_call!((::unity::module_base()+0x20b7380usize)as*mut u8,();
158(SystemScrollMenuItemContent)__receiver,(::unity::Il2CppString)::core::convert::Into::into(help),(crate::unity_engine::color::Color)::core::convert::Into::into(c))
159        }
160    }
161    #[doc = "`SetHelpActive(bool, crate::unity_engine::color::Color)` overload"]
162    fn set_help_active(self, b_active: impl ::core::convert::Into<bool>, c: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
163        unsafe {
164            let __receiver =
165                <SystemScrollMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            ::unity::il2cpp_call!((::unity::module_base()+0x20b74b0usize)as*mut u8,();
167(SystemScrollMenuItemContent)__receiver,(bool)::core::convert::Into::into(b_active),(crate::unity_engine::color::Color)::core::convert::Into::into(c))
168        }
169    }
170    #[doc = "`SetIcon(crate::app::gmapspot::GmapSpot)` overload"]
171    fn set_icon(self, spot: impl ::core::convert::Into<crate::app::gmapspot::GmapSpot>) -> () {
172        unsafe {
173            let __receiver =
174                <SystemScrollMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            ::unity::il2cpp_call!((::unity::module_base()+0x20b6e10usize)as*mut u8,();
176(SystemScrollMenuItemContent)__receiver,(crate::app::gmapspot::GmapSpot)::core::convert::Into::into(spot))
177        }
178    }
179    #[doc = "`GetEncountIcon(crate::app::encountunitdata::EncountUnitData_RareType)` overload"]
180    fn get_encount_icon(
181        self,
182        rare_type: impl ::core::convert::Into<crate::app::encountunitdata::EncountUnitData_RareType>,
183    ) -> crate::unity_engine::sprite::Sprite {
184        unsafe {
185            let __receiver =
186                <SystemScrollMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187            ::unity::il2cpp_call!((::unity::module_base()+0x20b75e0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
188(SystemScrollMenuItemContent)__receiver,(crate::app::encountunitdata::EncountUnitData_RareType)::core::convert::Into::into(rare_type))
189        }
190    }
191    #[doc = "`.ctor()` overload"]
192    fn ctor(self) -> () {
193        unsafe {
194            let __receiver =
195                <SystemScrollMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196            ::unity::il2cpp_call!((::unity::module_base()+0x20b7680usize)as*mut u8,();
197(SystemScrollMenuItemContent)__receiver)
198        }
199    }
200}
201
202#[cfg(feature = "app-systemscrollmenuitemcontent")]
203impl<__T: ISystemScrollMenuItemContent> ISystemScrollMenuItemContentMethods for __T {}
204
205#[cfg(feature = "app-systemscrollmenuitemcontent")]
206impl SystemScrollMenuItemContent {
207    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
209    }
210
211    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
213    }
214
215    pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
217    }
218
219    pub fn disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
221    }
222
223    pub fn set_help_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
225    }
226
227    pub fn set_help_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
229    }
230
231    pub fn set_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
233    }
234
235    pub fn get_encount_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
237    }
238
239    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
241    }
242}
243
244#[cfg(feature = "app-systemscrollmenuitemcontent")]
245impl SystemScrollMenuItemContent {
246    #[doc = "Direct (non-virtual) call to `SystemScrollMenuItemContent`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
247    pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item: crate::app::basicmenuitem::BasicMenuItem) -> () {
248        let __mi = Self::build_method_info();
249        let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
250            ::core::mem::transmute(__mi.method_ptr);
251        __inner(this.into(), menu_item, ::core::option::Option::None)
252    }
253
254    #[doc = "Direct (non-virtual) call to `SystemScrollMenuItemContent`'s own `Update`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
255    pub unsafe fn update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
256        let __mi = Self::update_method_info();
257        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
258        __inner(this.into(), ::core::option::Option::None)
259    }
260
261    #[doc = "Direct (non-virtual) call to `SystemScrollMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
262    pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
263        let __mi = Self::update_text_color_method_info();
264        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
265        __inner(this.into(), ::core::option::Option::None)
266    }
267
268    #[doc = "Direct (non-virtual) call to `SystemScrollMenuItemContent`'s own `Disable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
269    pub unsafe fn disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
270        let __mi = Self::disable_method_info();
271        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
272        __inner(this.into(), ::core::option::Option::None)
273    }
274}
275
276#[cfg(feature = "app-systemscrollmenuitemcontent")]
277impl SystemScrollMenuItemContent {
278    #[doc = "`.ctor()` — no args"]
279    pub fn new() -> Self {
280        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
281            panic!(
282                "{}
283::{}
284 failed to instantiate",
285                ::core::stringify!(SystemScrollMenuItemContent),
286                ::core::stringify!(new),
287            )
288        });
289        <Self as ISystemScrollMenuItemContentMethods>::ctor(this);
290        this
291    }
292}
293
294#[cfg(feature = "app-systemscrollmenuitemcontent")]
295#[doc(hidden)]
296pub mod prelude {
297    pub use super::{ISystemScrollMenuItemContent, ISystemScrollMenuItemContentMethods, SystemScrollMenuItemContent};
298    #[cfg(feature = "app-basicmenuitemcontent")]
299    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
300    #[cfg(feature = "system-object")]
301    pub use crate::system::object::IObjectMethods;
302    #[cfg(feature = "unity_engine-behaviour")]
303    pub use crate::unity_engine::behaviour::IBehaviourMethods;
304    #[cfg(feature = "unity_engine-component")]
305    pub use crate::unity_engine::component::IComponentMethods;
306    #[cfg(feature = "unity_engine-monobehaviour")]
307    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
308    #[cfg(feature = "unity_engine-object_2")]
309    pub use crate::unity_engine::object_2::IObject_2Methods;
310    pub use crate::{
311        app::basicmenuitemcontent::IBasicMenuItemContent,
312        system::object::IObject,
313        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
314    };
315}