Skip to main content

engage/generated/root/
hubcamerareversehorizontalmenuitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-hubcamerareversehorizontalmenuitem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10        root::configbasicmenuitem::{ConfigBasicMenuItem, IConfigBasicMenuItem},
11        system::object::{IObject, Object},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/hubcamerareversehorizontalmenuitem/HubCameraReverseHorizontalMenuItem.md"))]
15    #[::unity::class(namespace = "", name = "HubCameraReverseHorizontalMenuItem")]
16    #[parent(crate::root::configbasicmenuitem::ConfigBasicMenuItem)]
17    pub struct HubCameraReverseHorizontalMenuItem {}
18}
19
20#[cfg(feature = "root-hubcamerareversehorizontalmenuitem-types")]
21pub use __types::*;
22
23#[cfg(feature = "root-hubcamerareversehorizontalmenuitem")]
24pub trait IHubCameraReverseHorizontalMenuItemMethods: IHubCameraReverseHorizontalMenuItem {
25    #[doc = "`.ctor()` overload"]
26    fn ctor(self) -> () {
27        unsafe {
28            let __receiver =
29                <HubCameraReverseHorizontalMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
30            ::unity::il2cpp_call!((::unity::module_base()+0x2d7e980usize)as*mut u8,();
31(HubCameraReverseHorizontalMenuItem)__receiver)
32        }
33    }
34    #[doc = "`CustomCall()` overload"]
35    fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
36        unsafe {
37            let __receiver =
38                <HubCameraReverseHorizontalMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            {
40                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
41                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
42                    panic!(
43                        "unity: virtual slot {}
44 out of range (vtable len {}
45) on the runtime class behind {}
46 (method `{}
47`)",
48                        26usize,
49                        __vt.len(),
50                        <HubCameraReverseHorizontalMenuItem as ::unity::ClassIdentity>::NAME,
51                        "CustomCall",
52                    )
53                });
54                let __inner: extern "C" fn(HubCameraReverseHorizontalMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
55                    ::core::mem::transmute(__vi.method_ptr);
56                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
57                __inner(__receiver, __mi)
58            }
59        }
60    }
61    #[doc = "`InitContent()` overload"]
62    fn init_content(self) -> () {
63        unsafe {
64            let __receiver =
65                <HubCameraReverseHorizontalMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            {
67                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
68                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
69                    panic!(
70                        "unity: virtual slot {}
71 out of range (vtable len {}
72) on the runtime class behind {}
73 (method `{}
74`)",
75                        27usize,
76                        __vt.len(),
77                        <HubCameraReverseHorizontalMenuItem as ::unity::ClassIdentity>::NAME,
78                        "InitContent",
79                    )
80                });
81                let __inner: extern "C" fn(HubCameraReverseHorizontalMenuItem, ::unity::OptionalMethod) -> () =
82                    ::core::mem::transmute(__vi.method_ptr);
83                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
84                __inner(__receiver, __mi)
85            }
86        }
87    }
88    #[doc = "`SetCommandText()` overload"]
89    fn set_command_text(self) -> () {
90        unsafe {
91            let __receiver =
92                <HubCameraReverseHorizontalMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            ::unity::il2cpp_call!((::unity::module_base()+0x2d7ea40usize)as*mut u8,();
94(HubCameraReverseHorizontalMenuItem)__receiver)
95        }
96    }
97    #[doc = "`SetHelpText()` overload"]
98    fn set_help_text(self) -> () {
99        unsafe {
100            let __receiver =
101                <HubCameraReverseHorizontalMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            ::unity::il2cpp_call!((::unity::module_base()+0x2d7eb50usize)as*mut u8,();
103(HubCameraReverseHorizontalMenuItem)__receiver)
104        }
105    }
106}
107
108#[cfg(feature = "root-hubcamerareversehorizontalmenuitem")]
109impl<__T: IHubCameraReverseHorizontalMenuItem> IHubCameraReverseHorizontalMenuItemMethods for __T {}
110
111#[cfg(feature = "root-hubcamerareversehorizontalmenuitem")]
112impl HubCameraReverseHorizontalMenuItem {
113    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
115    }
116
117    pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
119    }
120
121    pub fn init_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
123    }
124
125    pub fn set_command_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
127    }
128
129    pub fn set_help_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
131    }
132}
133
134#[cfg(feature = "root-hubcamerareversehorizontalmenuitem")]
135impl HubCameraReverseHorizontalMenuItem {
136    #[doc = "Direct (non-virtual) call to `HubCameraReverseHorizontalMenuItem`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
137    pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
138        let __mi = Self::custom_call_method_info();
139        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
140            ::core::mem::transmute(__mi.method_ptr);
141        __inner(this.into(), ::core::option::Option::None)
142    }
143
144    #[doc = "Direct (non-virtual) call to `HubCameraReverseHorizontalMenuItem`'s own `InitContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
145    pub unsafe fn init_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
146        let __mi = Self::init_content_method_info();
147        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
148        __inner(this.into(), ::core::option::Option::None)
149    }
150}
151
152#[cfg(feature = "root-hubcamerareversehorizontalmenuitem")]
153impl HubCameraReverseHorizontalMenuItem {
154    #[doc = "`.ctor()` — no args"]
155    pub fn new() -> Self {
156        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
157            panic!(
158                "{}
159::{}
160 failed to instantiate",
161                ::core::stringify!(HubCameraReverseHorizontalMenuItem),
162                ::core::stringify!(new),
163            )
164        });
165        <Self as IHubCameraReverseHorizontalMenuItemMethods>::ctor(this);
166        this
167    }
168}
169
170#[cfg(feature = "root-hubcamerareversehorizontalmenuitem")]
171#[doc(hidden)]
172pub mod prelude {
173    pub use super::{HubCameraReverseHorizontalMenuItem, IHubCameraReverseHorizontalMenuItem, IHubCameraReverseHorizontalMenuItemMethods};
174    #[cfg(feature = "app-basicmenuitem")]
175    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
176    #[cfg(feature = "root-configbasicmenuitem")]
177    pub use crate::root::configbasicmenuitem::IConfigBasicMenuItemMethods;
178    #[cfg(feature = "system-object")]
179    pub use crate::system::object::IObjectMethods;
180    pub use crate::{app::basicmenuitem::IBasicMenuItem, root::configbasicmenuitem::IConfigBasicMenuItem, system::object::IObject};
181}