Skip to main content

engage/generated/app/
paramitem.rs

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