Skip to main content

engage/generated/app/
filevieweritem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-filevieweritem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            menuitem::{IMenuItem, MenuItem},
11            stringitem::{IStringItem, StringItem},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/filevieweritem/FileViewerItem.md"))]
17    #[::unity::class(namespace = "App", name = "FileViewerItem")]
18    #[parent(crate::app::menuitem::MenuItem)]
19    pub struct FileViewerItem {
20        #[offset(32)]
21        #[rename(name = "m_Path")]
22        pub m_path: ::unity::Il2CppString,
23        #[offset(40)]
24        #[rename(name = "m_Func")]
25        pub m_func: crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result>,
26    }
27
28    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/filevieweritem/FileViewerItem_FileItem.md"))]
29    #[::unity::class(namespace = "App", name = "FileViewerItem.FileItem")]
30    #[parent(crate::app::filevieweritem::FileViewerItem_PathItem)]
31    pub struct FileViewerItem_FileItem {}
32
33    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/filevieweritem/FileViewerItem_PathItem.md"))]
34    #[::unity::class(namespace = "App", name = "FileViewerItem.PathItem")]
35    #[parent(crate::app::stringitem::StringItem)]
36    pub struct FileViewerItem_PathItem {
37        #[offset(48)]
38        #[rename(name = "m_Path")]
39        pub m_path: ::unity::Il2CppString,
40        #[offset(56)]
41        #[rename(name = "m_Func")]
42        pub m_func: crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result>,
43    }
44
45    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/filevieweritem/FileViewerItem_DirectoryItem.md"))]
46    #[::unity::class(namespace = "App", name = "FileViewerItem.DirectoryItem")]
47    #[parent(crate::app::filevieweritem::FileViewerItem_PathItem)]
48    pub struct FileViewerItem_DirectoryItem {}
49}
50
51#[cfg(feature = "app-filevieweritem-types")]
52pub use __types::*;
53
54#[cfg(feature = "app-filevieweritem")]
55impl FileViewerItem {
56    #[doc = "`DefaultFunc(crate::app::debugmenu::DebugMenu, ::unity::Il2CppString)` overload"]
57    pub fn default_func(
58        menu: impl ::core::convert::Into<crate::app::debugmenu::DebugMenu>,
59        name: impl ::core::convert::Into<::unity::Il2CppString>,
60    ) -> crate::app::menuitem::MenuItem_Result {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x26ea730usize)as*mut u8,crate::app::menuitem::MenuItem_Result;
63(crate::app::debugmenu::DebugMenu)::core::convert::Into::into(menu),(::unity::Il2CppString)::core::convert::Into::into(name))
64        }
65    }
66
67    #[doc = "`CreateMenu(crate::app::procinst::ProcInst, ::unity::Il2CppString, crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu,::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)` overload"]
68    pub fn create_menu(
69        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
70        path: impl ::core::convert::Into<::unity::Il2CppString>,
71        func: impl ::core::convert::Into<
72            crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result>,
73        >,
74    ) -> () {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x26ea3d0usize)as*mut u8,();
77(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(path),(crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)::core::convert::Into::into(func))
78        }
79    }
80}
81
82#[cfg(feature = "app-filevieweritem")]
83pub trait IFileViewerItemMethods: IFileViewerItem {
84    #[doc = "`.ctor(::unity::Il2CppString, crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu,::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)` overload"]
85    fn ctor(
86        self,
87        path: impl ::core::convert::Into<::unity::Il2CppString>,
88        func: impl ::core::convert::Into<
89            crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result>,
90        >,
91    ) -> () {
92        unsafe {
93            let __receiver = <FileViewerItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x26ea250usize)as*mut u8,();
95(FileViewerItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)::core::convert::Into::into(func))
96        }
97    }
98    #[doc = "`GetName()` overload"]
99    fn get_name(self) -> ::unity::Il2CppString {
100        unsafe {
101            let __receiver = <FileViewerItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            {
103                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
105                    panic!(
106                        "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111                        5usize,
112                        __vt.len(),
113                        <FileViewerItem as ::unity::ClassIdentity>::NAME,
114                        "GetName",
115                    )
116                });
117                let __inner: extern "C" fn(FileViewerItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
118                    ::core::mem::transmute(__vi.method_ptr);
119                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120                __inner(__receiver, __mi)
121            }
122        }
123    }
124    #[doc = "`ACall()` overload"]
125    fn a_call(self) -> crate::app::menuitem::MenuItem_Result {
126        unsafe {
127            let __receiver = <FileViewerItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            {
129                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
130                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
131                    panic!(
132                        "unity: virtual slot {}
133 out of range (vtable len {}
134) on the runtime class behind {}
135 (method `{}
136`)",
137                        12usize,
138                        __vt.len(),
139                        <FileViewerItem as ::unity::ClassIdentity>::NAME,
140                        "ACall",
141                    )
142                });
143                let __inner: extern "C" fn(FileViewerItem, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
144                    ::core::mem::transmute(__vi.method_ptr);
145                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
146                __inner(__receiver, __mi)
147            }
148        }
149    }
150}
151
152#[cfg(feature = "app-filevieweritem")]
153impl<__T: IFileViewerItem> IFileViewerItemMethods for __T {}
154
155#[cfg(feature = "app-filevieweritem")]
156impl FileViewerItem {
157    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
159    }
160
161    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
163    }
164
165    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
167    }
168
169    pub fn default_func_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
171    }
172
173    pub fn create_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
175    }
176}
177
178#[cfg(feature = "app-filevieweritem")]
179impl FileViewerItem {
180    #[doc = "Direct (non-virtual) call to `FileViewerItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
181    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
182        let __mi = Self::get_name_method_info();
183        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
184        __inner(this.into(), ::core::option::Option::None)
185    }
186
187    #[doc = "Direct (non-virtual) call to `FileViewerItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
188    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::menuitem::MenuItem_Result {
189        let __mi = Self::a_call_method_info();
190        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
191            ::core::mem::transmute(__mi.method_ptr);
192        __inner(this.into(), ::core::option::Option::None)
193    }
194}
195
196#[cfg(feature = "app-filevieweritem")]
197impl FileViewerItem {
198    #[doc = "`.ctor(::unity::Il2CppString, crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu,::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)` — overload selector"]
199    pub fn new(
200        path: ::unity::Il2CppString,
201        func: crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result>,
202    ) -> Self {
203        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
204            panic!(
205                "{}
206::{}
207 failed to instantiate",
208                ::core::stringify!(FileViewerItem),
209                ::core::stringify!(new),
210            )
211        });
212        <Self as IFileViewerItemMethods>::ctor(this, path, func);
213        this
214    }
215}
216
217#[cfg(feature = "app-filevieweritem")]
218pub trait IFileViewerItem_FileItemMethods: IFileViewerItem_FileItem {
219    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu,::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)` overload"]
220    fn ctor(
221        self,
222        path: impl ::core::convert::Into<::unity::Il2CppString>,
223        name: impl ::core::convert::Into<::unity::Il2CppString>,
224        func: impl ::core::convert::Into<
225            crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result>,
226        >,
227    ) -> () {
228        unsafe {
229            let __receiver =
230                <FileViewerItem_FileItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231            ::unity::il2cpp_call!((::unity::module_base()+0x1e5f840usize)as*mut u8,();
232(FileViewerItem_FileItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)::core::convert::Into::into(func))
233        }
234    }
235    #[doc = "`ACall()` overload"]
236    fn a_call(self) -> crate::app::menuitem::MenuItem_Result {
237        unsafe {
238            let __receiver =
239                <FileViewerItem_FileItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240            {
241                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
242                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
243                    panic!(
244                        "unity: virtual slot {}
245 out of range (vtable len {}
246) on the runtime class behind {}
247 (method `{}
248`)",
249                        12usize,
250                        __vt.len(),
251                        <FileViewerItem_FileItem as ::unity::ClassIdentity>::NAME,
252                        "ACall",
253                    )
254                });
255                let __inner: extern "C" fn(FileViewerItem_FileItem, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
256                    ::core::mem::transmute(__vi.method_ptr);
257                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
258                __inner(__receiver, __mi)
259            }
260        }
261    }
262    #[doc = "`XCall()` overload"]
263    fn x_call(self) -> crate::app::menuitem::MenuItem_Result {
264        unsafe {
265            let __receiver =
266                <FileViewerItem_FileItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267            {
268                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
269                let __vi = *__vt.get(14usize).unwrap_or_else(|| {
270                    panic!(
271                        "unity: virtual slot {}
272 out of range (vtable len {}
273) on the runtime class behind {}
274 (method `{}
275`)",
276                        14usize,
277                        __vt.len(),
278                        <FileViewerItem_FileItem as ::unity::ClassIdentity>::NAME,
279                        "XCall",
280                    )
281                });
282                let __inner: extern "C" fn(FileViewerItem_FileItem, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
283                    ::core::mem::transmute(__vi.method_ptr);
284                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
285                __inner(__receiver, __mi)
286            }
287        }
288    }
289}
290
291#[cfg(feature = "app-filevieweritem")]
292impl<__T: IFileViewerItem_FileItem> IFileViewerItem_FileItemMethods for __T {}
293
294#[cfg(feature = "app-filevieweritem")]
295impl FileViewerItem_FileItem {
296    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
298    }
299
300    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
302    }
303
304    pub fn x_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
306    }
307}
308
309#[cfg(feature = "app-filevieweritem")]
310impl FileViewerItem_FileItem {
311    #[doc = "Direct (non-virtual) call to `FileViewerItem_FileItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
312    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::menuitem::MenuItem_Result {
313        let __mi = Self::a_call_method_info();
314        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
315            ::core::mem::transmute(__mi.method_ptr);
316        __inner(this.into(), ::core::option::Option::None)
317    }
318
319    #[doc = "Direct (non-virtual) call to `FileViewerItem_FileItem`'s own `XCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
320    pub unsafe fn x_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::menuitem::MenuItem_Result {
321        let __mi = Self::x_call_method_info();
322        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
323            ::core::mem::transmute(__mi.method_ptr);
324        __inner(this.into(), ::core::option::Option::None)
325    }
326}
327
328#[cfg(feature = "app-filevieweritem")]
329impl FileViewerItem_FileItem {
330    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu,::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)` — overload selector"]
331    pub fn new(
332        path: ::unity::Il2CppString,
333        name: ::unity::Il2CppString,
334        func: crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result>,
335    ) -> Self {
336        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
337            panic!(
338                "{}
339::{}
340 failed to instantiate",
341                ::core::stringify!(FileViewerItem_FileItem),
342                ::core::stringify!(new),
343            )
344        });
345        <Self as IFileViewerItem_FileItemMethods>::ctor(this, path, name, func);
346        this
347    }
348}
349
350#[cfg(feature = "app-filevieweritem")]
351pub trait IFileViewerItem_PathItemMethods: IFileViewerItem_PathItem {
352    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu,::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)` overload"]
353    fn ctor(
354        self,
355        path: impl ::core::convert::Into<::unity::Il2CppString>,
356        name: impl ::core::convert::Into<::unity::Il2CppString>,
357        func: impl ::core::convert::Into<
358            crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result>,
359        >,
360    ) -> () {
361        unsafe {
362            let __receiver =
363                <FileViewerItem_PathItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
364            ::unity::il2cpp_call!((::unity::module_base()+0x1e5f600usize)as*mut u8,();
365(FileViewerItem_PathItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)::core::convert::Into::into(func))
366        }
367    }
368    #[doc = "`GetFullPath()` overload"]
369    fn get_full_path(self) -> ::unity::Il2CppString {
370        unsafe {
371            let __receiver =
372                <FileViewerItem_PathItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
373            ::unity::il2cpp_call!((::unity::module_base()+0x1e5f740usize)as*mut u8, ::unity::Il2CppString;
374(FileViewerItem_PathItem)__receiver)
375        }
376    }
377    #[doc = "`GetFunc()` overload"]
378    fn get_func(
379        self,
380    ) -> crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result> {
381        unsafe {
382            let __receiver =
383                <FileViewerItem_PathItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
384            ::unity::il2cpp_call!((::unity::module_base()+0x1e5fa50usize)as*mut u8,crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString,crate::app::menuitem::MenuItem_Result> ;
385(FileViewerItem_PathItem)__receiver)
386        }
387    }
388    #[doc = "`DoFunc()` overload"]
389    fn do_func(self) -> crate::app::menuitem::MenuItem_Result {
390        unsafe {
391            let __receiver =
392                <FileViewerItem_PathItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
393            ::unity::il2cpp_call!((::unity::module_base()+0x1e5f930usize)as*mut u8,crate::app::menuitem::MenuItem_Result;
394(FileViewerItem_PathItem)__receiver)
395        }
396    }
397}
398
399#[cfg(feature = "app-filevieweritem")]
400impl<__T: IFileViewerItem_PathItem> IFileViewerItem_PathItemMethods for __T {}
401
402#[cfg(feature = "app-filevieweritem")]
403impl FileViewerItem_PathItem {
404    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
406    }
407
408    pub fn get_full_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
410    }
411
412    pub fn get_func_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
414    }
415
416    pub fn do_func_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
418    }
419}
420
421#[cfg(feature = "app-filevieweritem")]
422impl FileViewerItem_PathItem {
423    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu,::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)` — overload selector"]
424    pub fn new(
425        path: ::unity::Il2CppString,
426        name: ::unity::Il2CppString,
427        func: crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result>,
428    ) -> Self {
429        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
430            panic!(
431                "{}
432::{}
433 failed to instantiate",
434                ::core::stringify!(FileViewerItem_PathItem),
435                ::core::stringify!(new),
436            )
437        });
438        <Self as IFileViewerItem_PathItemMethods>::ctor(this, path, name, func);
439        this
440    }
441}
442
443#[cfg(feature = "app-filevieweritem")]
444pub trait IFileViewerItem_DirectoryItemMethods: IFileViewerItem_DirectoryItem {
445    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu,::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)` overload"]
446    fn ctor(
447        self,
448        path: impl ::core::convert::Into<::unity::Il2CppString>,
449        name: impl ::core::convert::Into<::unity::Il2CppString>,
450        func: impl ::core::convert::Into<
451            crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result>,
452        >,
453    ) -> () {
454        unsafe {
455            let __receiver =
456                <FileViewerItem_DirectoryItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
457            ::unity::il2cpp_call!((::unity::module_base()+0x1e5f5a0usize)as*mut u8,();
458(FileViewerItem_DirectoryItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)::core::convert::Into::into(func))
459        }
460    }
461    #[doc = "`GetName()` overload"]
462    fn get_name(self) -> ::unity::Il2CppString {
463        unsafe {
464            let __receiver =
465                <FileViewerItem_DirectoryItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
466            {
467                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
468                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
469                    panic!(
470                        "unity: virtual slot {}
471 out of range (vtable len {}
472) on the runtime class behind {}
473 (method `{}
474`)",
475                        5usize,
476                        __vt.len(),
477                        <FileViewerItem_DirectoryItem as ::unity::ClassIdentity>::NAME,
478                        "GetName",
479                    )
480                });
481                let __inner: extern "C" fn(FileViewerItem_DirectoryItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
482                    ::core::mem::transmute(__vi.method_ptr);
483                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
484                __inner(__receiver, __mi)
485            }
486        }
487    }
488    #[doc = "`ACall()` overload"]
489    fn a_call(self) -> crate::app::menuitem::MenuItem_Result {
490        unsafe {
491            let __receiver =
492                <FileViewerItem_DirectoryItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
493            {
494                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
495                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
496                    panic!(
497                        "unity: virtual slot {}
498 out of range (vtable len {}
499) on the runtime class behind {}
500 (method `{}
501`)",
502                        12usize,
503                        __vt.len(),
504                        <FileViewerItem_DirectoryItem as ::unity::ClassIdentity>::NAME,
505                        "ACall",
506                    )
507                });
508                let __inner: extern "C" fn(FileViewerItem_DirectoryItem, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
509                    ::core::mem::transmute(__vi.method_ptr);
510                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
511                __inner(__receiver, __mi)
512            }
513        }
514    }
515    #[doc = "`GetFontColor()` overload"]
516    fn get_font_color(self) -> crate::unity_engine::color::Color {
517        unsafe {
518            let __receiver =
519                <FileViewerItem_DirectoryItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
520            {
521                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
522                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
523                    panic!(
524                        "unity: virtual slot {}
525 out of range (vtable len {}
526) on the runtime class behind {}
527 (method `{}
528`)",
529                        27usize,
530                        __vt.len(),
531                        <FileViewerItem_DirectoryItem as ::unity::ClassIdentity>::NAME,
532                        "GetFontColor",
533                    )
534                });
535                let __inner: extern "C" fn(FileViewerItem_DirectoryItem, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
536                    ::core::mem::transmute(__vi.method_ptr);
537                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
538                __inner(__receiver, __mi)
539            }
540        }
541    }
542}
543
544#[cfg(feature = "app-filevieweritem")]
545impl<__T: IFileViewerItem_DirectoryItem> IFileViewerItem_DirectoryItemMethods for __T {}
546
547#[cfg(feature = "app-filevieweritem")]
548impl FileViewerItem_DirectoryItem {
549    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
551    }
552
553    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
555    }
556
557    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
559    }
560
561    pub fn get_font_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
563    }
564}
565
566#[cfg(feature = "app-filevieweritem")]
567impl FileViewerItem_DirectoryItem {
568    #[doc = "Direct (non-virtual) call to `FileViewerItem_DirectoryItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
569    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
570        let __mi = Self::get_name_method_info();
571        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
572        __inner(this.into(), ::core::option::Option::None)
573    }
574
575    #[doc = "Direct (non-virtual) call to `FileViewerItem_DirectoryItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
576    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::menuitem::MenuItem_Result {
577        let __mi = Self::a_call_method_info();
578        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
579            ::core::mem::transmute(__mi.method_ptr);
580        __inner(this.into(), ::core::option::Option::None)
581    }
582
583    #[doc = "Direct (non-virtual) call to `FileViewerItem_DirectoryItem`'s own `GetFontColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
584    pub unsafe fn get_font_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::color::Color {
585        let __mi = Self::get_font_color_method_info();
586        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
587            ::core::mem::transmute(__mi.method_ptr);
588        __inner(this.into(), ::core::option::Option::None)
589    }
590}
591
592#[cfg(feature = "app-filevieweritem")]
593impl FileViewerItem_DirectoryItem {
594    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu,::unity::Il2CppString,crate::app::menuitem::MenuItem_Result>)` — overload selector"]
595    pub fn new(
596        path: ::unity::Il2CppString,
597        name: ::unity::Il2CppString,
598        func: crate::system::func_3::Func_3<crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_Result>,
599    ) -> Self {
600        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
601            panic!(
602                "{}
603::{}
604 failed to instantiate",
605                ::core::stringify!(FileViewerItem_DirectoryItem),
606                ::core::stringify!(new),
607            )
608        });
609        <Self as IFileViewerItem_DirectoryItemMethods>::ctor(this, path, name, func);
610        this
611    }
612}
613
614#[cfg(feature = "app-filevieweritem")]
615#[doc(hidden)]
616pub mod prelude {
617    pub use super::{
618        FileViewerItem, FileViewerItem_DirectoryItem, FileViewerItem_FileItem, FileViewerItem_PathItem, IFileViewerItem, IFileViewerItemMethods,
619        IFileViewerItem_DirectoryItem, IFileViewerItem_DirectoryItemMethods, IFileViewerItem_FileItem, IFileViewerItem_FileItemMethods,
620        IFileViewerItem_PathItem, IFileViewerItem_PathItemMethods,
621    };
622    #[cfg(feature = "app-menuitem")]
623    pub use crate::app::menuitem::IMenuItemMethods;
624    #[cfg(feature = "app-stringitem")]
625    pub use crate::app::stringitem::IStringItemMethods;
626    #[cfg(feature = "system-object")]
627    pub use crate::system::object::IObjectMethods;
628    pub use crate::{
629        app::{menuitem::IMenuItem, stringitem::IStringItem},
630        system::object::IObject,
631    };
632}