Skip to main content

engage/generated/app/
ringselectmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-ringselectmenucontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
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/ringselectmenucontent/RingSelectMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "RingSelectMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct RingSelectMenuContent {
23        #[offset(232)]
24        #[rename(name = "m_rootObject")]
25        pub m_root_object: crate::unity_engine::gameobject::GameObject,
26        #[offset(240)]
27        #[rename(name = "m_pageIcon")]
28        pub m_page_icon: crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>,
29        #[offset(248)]
30        #[rename(name = "m_pageTitle")]
31        pub m_page_title: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
32    }
33}
34
35#[cfg(feature = "app-ringselectmenucontent-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-ringselectmenucontent")]
39pub trait IRingSelectMenuContentMethods: IRingSelectMenuContent {
40    #[doc = "`CalcW()` overload"]
41    fn calc_w(self) -> f32 {
42        unsafe {
43            let __receiver = <RingSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44            {
45                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
46                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
47                    panic!(
48                        "unity: virtual slot {}
49 out of range (vtable len {}
50) on the runtime class behind {}
51 (method `{}
52`)",
53                        21usize,
54                        __vt.len(),
55                        <RingSelectMenuContent as ::unity::ClassIdentity>::NAME,
56                        "CalcW",
57                    )
58                });
59                let __inner: extern "C" fn(RingSelectMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
60                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
61                __inner(__receiver, __mi)
62            }
63        }
64    }
65    #[doc = "`CalcH()` overload"]
66    fn calc_h(self) -> f32 {
67        unsafe {
68            let __receiver = <RingSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            {
70                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
71                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
72                    panic!(
73                        "unity: virtual slot {}
74 out of range (vtable len {}
75) on the runtime class behind {}
76 (method `{}
77`)",
78                        22usize,
79                        __vt.len(),
80                        <RingSelectMenuContent as ::unity::ClassIdentity>::NAME,
81                        "CalcH",
82                    )
83                });
84                let __inner: extern "C" fn(RingSelectMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
85                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
86                __inner(__receiver, __mi)
87            }
88        }
89    }
90    #[doc = "`CalcCursorMovedPosX(i32)` overload"]
91    fn calc_cursor_moved_pos_x(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
92        unsafe {
93            let __receiver = <RingSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            {
95                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
96                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
97                    panic!(
98                        "unity: virtual slot {}
99 out of range (vtable len {}
100) on the runtime class behind {}
101 (method `{}
102`)",
103                        9usize,
104                        __vt.len(),
105                        <RingSelectMenuContent as ::unity::ClassIdentity>::NAME,
106                        "CalcCursorMovedPosX",
107                    )
108                });
109                let __inner: extern "C" fn(RingSelectMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::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, ::core::convert::Into::into(menu_item_index), __mi)
112            }
113        }
114    }
115    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
116    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
117        unsafe {
118            let __receiver = <RingSelectMenuContent 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(10usize).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                        10usize,
129                        __vt.len(),
130                        <RingSelectMenuContent as ::unity::ClassIdentity>::NAME,
131                        "CalcCursorMovedPosY",
132                    )
133                });
134                let __inner: extern "C" fn(RingSelectMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::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, ::core::convert::Into::into(menu_item_index), __mi)
137            }
138        }
139    }
140    #[doc = "`SetActivePage(i32)` overload"]
141    fn set_active_page(self, page: impl ::core::convert::Into<i32>) -> () {
142        unsafe {
143            let __receiver = <RingSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x1eb9cb0usize)as*mut u8,();
145(RingSelectMenuContent)__receiver,(i32)::core::convert::Into::into(page))
146        }
147    }
148    #[doc = "`.ctor()` overload"]
149    fn ctor(self) -> () {
150        unsafe {
151            let __receiver = <RingSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x1ebcda0usize)as*mut u8,();
153(RingSelectMenuContent)__receiver)
154        }
155    }
156}
157
158#[cfg(feature = "app-ringselectmenucontent")]
159impl<__T: IRingSelectMenuContent> IRingSelectMenuContentMethods for __T {}
160
161#[cfg(feature = "app-ringselectmenucontent")]
162impl RingSelectMenuContent {
163    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
165    }
166
167    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
169    }
170
171    pub fn calc_cursor_moved_pos_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
173    }
174
175    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
177    }
178
179    pub fn set_active_page_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
181    }
182
183    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
185    }
186}
187
188#[cfg(feature = "app-ringselectmenucontent")]
189impl RingSelectMenuContent {
190    #[doc = "Direct (non-virtual) call to `RingSelectMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
191    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
192        let __mi = Self::calc_w_method_info();
193        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
194        __inner(this.into(), ::core::option::Option::None)
195    }
196
197    #[doc = "Direct (non-virtual) call to `RingSelectMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
198    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
199        let __mi = Self::calc_h_method_info();
200        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
201        __inner(this.into(), ::core::option::Option::None)
202    }
203
204    #[doc = "Direct (non-virtual) call to `RingSelectMenuContent`'s own `CalcCursorMovedPosX`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
205    pub unsafe fn calc_cursor_moved_pos_x(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
206        let __mi = Self::calc_cursor_moved_pos_x_method_info();
207        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
208        __inner(this.into(), menu_item_index, ::core::option::Option::None)
209    }
210
211    #[doc = "Direct (non-virtual) call to `RingSelectMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
212    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
213        let __mi = Self::calc_cursor_moved_pos_y_method_info();
214        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
215        __inner(this.into(), menu_item_index, ::core::option::Option::None)
216    }
217}
218
219#[cfg(feature = "app-ringselectmenucontent")]
220impl RingSelectMenuContent {
221    #[doc = "`.ctor()` — no args"]
222    pub fn new() -> Self {
223        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
224            panic!(
225                "{}
226::{}
227 failed to instantiate",
228                ::core::stringify!(RingSelectMenuContent),
229                ::core::stringify!(new),
230            )
231        });
232        <Self as IRingSelectMenuContentMethods>::ctor(this);
233        this
234    }
235}
236
237#[cfg(feature = "app-ringselectmenucontent")]
238#[doc(hidden)]
239pub mod prelude {
240    pub use super::{IRingSelectMenuContent, IRingSelectMenuContentMethods, RingSelectMenuContent};
241    #[cfg(feature = "app-basicmenucontent")]
242    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
243    #[cfg(feature = "system-object")]
244    pub use crate::system::object::IObjectMethods;
245    #[cfg(feature = "unity_engine-behaviour")]
246    pub use crate::unity_engine::behaviour::IBehaviourMethods;
247    #[cfg(feature = "unity_engine-component")]
248    pub use crate::unity_engine::component::IComponentMethods;
249    #[cfg(feature = "unity_engine-monobehaviour")]
250    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
251    #[cfg(feature = "unity_engine-object_2")]
252    pub use crate::unity_engine::object_2::IObject_2Methods;
253    pub use crate::{
254        app::basicmenucontent::IBasicMenuContent,
255        system::object::IObject,
256        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
257    };
258}