Skip to main content

engage/generated/app/
separatoritem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-separatoritem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::menuitem::{IMenuItem, MenuItem},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/separatoritem/SeparatorItem.md"))]
14    #[::unity::class(namespace = "App", name = "SeparatorItem")]
15    #[parent(crate::app::menuitem::MenuItem)]
16    pub struct SeparatorItem {
17        #[static_field]
18        #[rename(name = "BackColor")]
19        pub back_color: crate::unity_engine::color::Color,
20    }
21}
22
23#[cfg(feature = "app-separatoritem-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-separatoritem")]
27impl SeparatorItem {
28    #[doc = "`.cctor()` overload"]
29    pub fn cctor() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x21a6e50usize)as*mut u8,();
32            )
33        }
34    }
35}
36
37#[cfg(feature = "app-separatoritem")]
38pub trait ISeparatorItemMethods: ISeparatorItem {
39    #[doc = "`GetName()` overload"]
40    fn get_name(self) -> ::unity::Il2CppString {
41        unsafe {
42            let __receiver = <SeparatorItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            {
44                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
45                let __vi = *__vt.get(5usize).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                        5usize,
53                        __vt.len(),
54                        <SeparatorItem as ::unity::ClassIdentity>::NAME,
55                        "GetName",
56                    )
57                });
58                let __inner: extern "C" fn(SeparatorItem, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
59                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
60                __inner(__receiver, __mi)
61            }
62        }
63    }
64    #[doc = "`GetHeight()` overload"]
65    fn get_height(self) -> f32 {
66        unsafe {
67            let __receiver = <SeparatorItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            {
69                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
70                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
71                    panic!(
72                        "unity: virtual slot {}
73 out of range (vtable len {}
74) on the runtime class behind {}
75 (method `{}
76`)",
77                        26usize,
78                        __vt.len(),
79                        <SeparatorItem as ::unity::ClassIdentity>::NAME,
80                        "GetHeight",
81                    )
82                });
83                let __inner: extern "C" fn(SeparatorItem, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
84                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
85                __inner(__receiver, __mi)
86            }
87        }
88    }
89    #[doc = "`GetBackColor()` overload"]
90    fn get_back_color(self) -> crate::unity_engine::color::Color {
91        unsafe {
92            let __receiver = <SeparatorItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            {
94                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
95                let __vi = *__vt.get(28usize).unwrap_or_else(|| {
96                    panic!(
97                        "unity: virtual slot {}
98 out of range (vtable len {}
99) on the runtime class behind {}
100 (method `{}
101`)",
102                        28usize,
103                        __vt.len(),
104                        <SeparatorItem as ::unity::ClassIdentity>::NAME,
105                        "GetBackColor",
106                    )
107                });
108                let __inner: extern "C" fn(SeparatorItem, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
109                    ::core::mem::transmute(__vi.method_ptr);
110                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
111                __inner(__receiver, __mi)
112            }
113        }
114    }
115    #[doc = "`IsSelectable()` overload"]
116    fn is_selectable(self) -> bool {
117        unsafe {
118            let __receiver = <SeparatorItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            {
120                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
121                let __vi = *__vt.get(24usize).unwrap_or_else(|| {
122                    panic!(
123                        "unity: virtual slot {}
124 out of range (vtable len {}
125) on the runtime class behind {}
126 (method `{}
127`)",
128                        24usize,
129                        __vt.len(),
130                        <SeparatorItem as ::unity::ClassIdentity>::NAME,
131                        "IsSelectable",
132                    )
133                });
134                let __inner: extern "C" fn(SeparatorItem, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
135                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
136                __inner(__receiver, __mi)
137            }
138        }
139    }
140    #[doc = "`.ctor()` overload"]
141    fn ctor(self) -> () {
142        unsafe {
143            let __receiver = <SeparatorItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x21a6e40usize)as*mut u8,();
145(SeparatorItem)__receiver)
146        }
147    }
148}
149
150#[cfg(feature = "app-separatoritem")]
151impl<__T: ISeparatorItem> ISeparatorItemMethods for __T {}
152
153#[cfg(feature = "app-separatoritem")]
154impl SeparatorItem {
155    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
157    }
158
159    pub fn get_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
161    }
162
163    pub fn get_back_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
165    }
166
167    pub fn is_selectable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
169    }
170
171    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
173    }
174
175    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
177    }
178}
179
180#[cfg(feature = "app-separatoritem")]
181impl SeparatorItem {
182    #[doc = "Direct (non-virtual) call to `SeparatorItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
183    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
184        let __mi = Self::get_name_method_info();
185        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
186        __inner(this.into(), ::core::option::Option::None)
187    }
188
189    #[doc = "Direct (non-virtual) call to `SeparatorItem`'s own `GetHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
190    pub unsafe fn get_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
191        let __mi = Self::get_height_method_info();
192        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
193        __inner(this.into(), ::core::option::Option::None)
194    }
195
196    #[doc = "Direct (non-virtual) call to `SeparatorItem`'s own `GetBackColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
197    pub unsafe fn get_back_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::color::Color {
198        let __mi = Self::get_back_color_method_info();
199        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
200            ::core::mem::transmute(__mi.method_ptr);
201        __inner(this.into(), ::core::option::Option::None)
202    }
203
204    #[doc = "Direct (non-virtual) call to `SeparatorItem`'s own `IsSelectable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
205    pub unsafe fn is_selectable(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
206        let __mi = Self::is_selectable_method_info();
207        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
208        __inner(this.into(), ::core::option::Option::None)
209    }
210}
211
212#[cfg(feature = "app-separatoritem")]
213impl SeparatorItem {
214    #[doc = "`.ctor()` — no args"]
215    pub fn new() -> Self {
216        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
217            panic!(
218                "{}
219::{}
220 failed to instantiate",
221                ::core::stringify!(SeparatorItem),
222                ::core::stringify!(new),
223            )
224        });
225        <Self as ISeparatorItemMethods>::ctor(this);
226        this
227    }
228}
229
230#[cfg(feature = "app-separatoritem")]
231#[doc(hidden)]
232pub mod prelude {
233    pub use super::{ISeparatorItem, ISeparatorItemMethods, SeparatorItem};
234    #[cfg(feature = "app-menuitem")]
235    pub use crate::app::menuitem::IMenuItemMethods;
236    #[cfg(feature = "system-object")]
237    pub use crate::system::object::IObjectMethods;
238    pub use crate::{app::menuitem::IMenuItem, system::object::IObject};
239}