Skip to main content

engage/generated/app/
gridmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gridmenucontent-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/gridmenucontent/GridMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "GridMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct GridMenuContent {
23        #[static_field]
24        #[rename(name = "PrefabPath")]
25        pub prefab_path: ::unity::Il2CppString,
26        #[offset(232)]
27        #[rename(name = "m_gridLayoutGroup")]
28        pub m_grid_layout_group: crate::unity_engine::ui::gridlayoutgroup::GridLayoutGroup,
29    }
30}
31
32#[cfg(feature = "app-gridmenucontent-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-gridmenucontent")]
36impl GridMenuContent {
37    #[doc = "`LoadPrefabAsync()` overload"]
38    pub fn load_prefab_async() -> () {
39        unsafe {
40            ::unity::il2cpp_call!((::unity::module_base()+0x296f040usize)as*mut u8,();
41            )
42        }
43    }
44
45    #[doc = "`Create()` overload"]
46    pub fn create() -> crate::app::gridmenucontent::GridMenuContent {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x296f0e0usize)as*mut u8,crate::app::gridmenucontent::GridMenuContent;
49            )
50        }
51    }
52
53    #[doc = "`.cctor()` overload"]
54    pub fn cctor() -> () {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x296f210usize)as*mut u8,();
57            )
58        }
59    }
60}
61
62#[cfg(feature = "app-gridmenucontent")]
63pub trait IGridMenuContentMethods: IGridMenuContent {
64    #[doc = "`GetMenuItemContentMax()` overload"]
65    fn get_menu_item_content_max(self) -> i32 {
66        unsafe {
67            let __receiver = <GridMenuContent 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(4usize).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                        4usize,
78                        __vt.len(),
79                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
80                        "GetMenuItemContentMax",
81                    )
82                });
83                let __inner: extern "C" fn(GridMenuContent, ::unity::OptionalMethod) -> i32 = ::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 = "`CalcCursorMovedPosX(i32)` overload"]
90    fn calc_cursor_moved_pos_x(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
91        unsafe {
92            let __receiver = <GridMenuContent 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(9usize).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                        9usize,
103                        __vt.len(),
104                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
105                        "CalcCursorMovedPosX",
106                    )
107                });
108                let __inner: extern "C" fn(GridMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
109                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
110                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
111            }
112        }
113    }
114    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
115    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
116        unsafe {
117            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            {
119                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
120                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
121                    panic!(
122                        "unity: virtual slot {}
123 out of range (vtable len {}
124) on the runtime class behind {}
125 (method `{}
126`)",
127                        10usize,
128                        __vt.len(),
129                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
130                        "CalcCursorMovedPosY",
131                    )
132                });
133                let __inner: extern "C" fn(GridMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
134                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
135                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
136            }
137        }
138    }
139    #[doc = "`InitObjReference()` overload"]
140    fn init_obj_reference(self) -> () {
141        unsafe {
142            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            {
144                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
145                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
146                    panic!(
147                        "unity: virtual slot {}
148 out of range (vtable len {}
149) on the runtime class behind {}
150 (method `{}
151`)",
152                        13usize,
153                        __vt.len(),
154                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
155                        "InitObjReference",
156                    )
157                });
158                let __inner: extern "C" fn(GridMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
159                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
160                __inner(__receiver, __mi)
161            }
162        }
163    }
164    #[doc = "`CalcW()` overload"]
165    fn calc_w(self) -> f32 {
166        unsafe {
167            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            {
169                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
170                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
171                    panic!(
172                        "unity: virtual slot {}
173 out of range (vtable len {}
174) on the runtime class behind {}
175 (method `{}
176`)",
177                        21usize,
178                        __vt.len(),
179                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
180                        "CalcW",
181                    )
182                });
183                let __inner: extern "C" fn(GridMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
184                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
185                __inner(__receiver, __mi)
186            }
187        }
188    }
189    #[doc = "`CalcH()` overload"]
190    fn calc_h(self) -> f32 {
191        unsafe {
192            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            {
194                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
195                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
196                    panic!(
197                        "unity: virtual slot {}
198 out of range (vtable len {}
199) on the runtime class behind {}
200 (method `{}
201`)",
202                        22usize,
203                        __vt.len(),
204                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
205                        "CalcH",
206                    )
207                });
208                let __inner: extern "C" fn(GridMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
209                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
210                __inner(__receiver, __mi)
211            }
212        }
213    }
214    #[doc = "`CycleMenuItemContent(bool, i32)` overload"]
215    fn cycle_menu_item_content(self, is_forward: impl ::core::convert::Into<bool>, cycle_count: impl ::core::convert::Into<i32>) -> () {
216        unsafe {
217            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            {
219                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
220                let __vi = *__vt.get(28usize).unwrap_or_else(|| {
221                    panic!(
222                        "unity: virtual slot {}
223 out of range (vtable len {}
224) on the runtime class behind {}
225 (method `{}
226`)",
227                        28usize,
228                        __vt.len(),
229                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
230                        "CycleMenuItemContent",
231                    )
232                });
233                let __inner: extern "C" fn(GridMenuContent, bool, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
234                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
235                __inner(
236                    __receiver,
237                    ::core::convert::Into::into(is_forward),
238                    ::core::convert::Into::into(cycle_count),
239                    __mi,
240                )
241            }
242        }
243    }
244    #[doc = "`GetLineHeightForScroll()` overload"]
245    fn get_line_height_for_scroll(self) -> f32 {
246        unsafe {
247            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248            {
249                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
250                let __vi = *__vt.get(29usize).unwrap_or_else(|| {
251                    panic!(
252                        "unity: virtual slot {}
253 out of range (vtable len {}
254) on the runtime class behind {}
255 (method `{}
256`)",
257                        29usize,
258                        __vt.len(),
259                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
260                        "GetLineHeightForScroll",
261                    )
262                });
263                let __inner: extern "C" fn(GridMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
264                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
265                __inner(__receiver, __mi)
266            }
267        }
268    }
269    #[doc = "`Awake()` overload"]
270    fn awake(self) -> () {
271        unsafe {
272            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273            {
274                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
275                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
276                    panic!(
277                        "unity: virtual slot {}
278 out of range (vtable len {}
279) on the runtime class behind {}
280 (method `{}
281`)",
282                        30usize,
283                        __vt.len(),
284                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
285                        "Awake",
286                    )
287                });
288                let __inner: extern "C" fn(GridMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
289                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
290                __inner(__receiver, __mi)
291            }
292        }
293    }
294    #[doc = "`CalcColumn(i32)` overload"]
295    fn calc_column(self, menu_item_index: impl ::core::convert::Into<i32>) -> i32 {
296        unsafe {
297            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298            {
299                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
300                let __vi = *__vt.get(34usize).unwrap_or_else(|| {
301                    panic!(
302                        "unity: virtual slot {}
303 out of range (vtable len {}
304) on the runtime class behind {}
305 (method `{}
306`)",
307                        34usize,
308                        __vt.len(),
309                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
310                        "CalcColumn",
311                    )
312                });
313                let __inner: extern "C" fn(GridMenuContent, i32, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
314                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
315                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
316            }
317        }
318    }
319    #[doc = "`CalcRow(i32)` overload"]
320    fn calc_row(self, menu_item_index: impl ::core::convert::Into<i32>) -> i32 {
321        unsafe {
322            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323            {
324                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
325                let __vi = *__vt.get(35usize).unwrap_or_else(|| {
326                    panic!(
327                        "unity: virtual slot {}
328 out of range (vtable len {}
329) on the runtime class behind {}
330 (method `{}
331`)",
332                        35usize,
333                        __vt.len(),
334                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
335                        "CalcRow",
336                    )
337                });
338                let __inner: extern "C" fn(GridMenuContent, i32, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
339                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
340                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
341            }
342        }
343    }
344    #[doc = "`CalcMenuItemIndex(i32, i32)` overload"]
345    fn calc_menu_item_index(self, row: impl ::core::convert::Into<i32>, column: impl ::core::convert::Into<i32>) -> i32 {
346        unsafe {
347            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
348            {
349                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
350                let __vi = *__vt.get(36usize).unwrap_or_else(|| {
351                    panic!(
352                        "unity: virtual slot {}
353 out of range (vtable len {}
354) on the runtime class behind {}
355 (method `{}
356`)",
357                        36usize,
358                        __vt.len(),
359                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
360                        "CalcMenuItemIndex",
361                    )
362                });
363                let __inner: extern "C" fn(GridMenuContent, i32, i32, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
364                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
365                __inner(__receiver, ::core::convert::Into::into(row), ::core::convert::Into::into(column), __mi)
366            }
367        }
368    }
369    #[doc = "`SetCellSize(f32, f32)` overload"]
370    fn set_cell_size(self, w: impl ::core::convert::Into<f32>, h: impl ::core::convert::Into<f32>) -> () {
371        unsafe {
372            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
373            ::unity::il2cpp_call!((::unity::module_base()+0x296e260usize)as*mut u8,();
374(GridMenuContent)__receiver,(f32)::core::convert::Into::into(w),(f32)::core::convert::Into::into(h))
375        }
376    }
377    #[doc = "`SetCellW(f32)` overload"]
378    fn set_cell_w(self, w: impl ::core::convert::Into<f32>) -> () {
379        unsafe {
380            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
381            ::unity::il2cpp_call!((::unity::module_base()+0x296e350usize)as*mut u8,();
382(GridMenuContent)__receiver,(f32)::core::convert::Into::into(w))
383        }
384    }
385    #[doc = "`SetCellH(f32)` overload"]
386    fn set_cell_h(self, h: impl ::core::convert::Into<f32>) -> () {
387        unsafe {
388            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
389            ::unity::il2cpp_call!((::unity::module_base()+0x296e440usize)as*mut u8,();
390(GridMenuContent)__receiver,(f32)::core::convert::Into::into(h))
391        }
392    }
393    #[doc = "`GetCellSize()` overload"]
394    fn get_cell_size(self) -> crate::unity_engine::vector2::Vector2 {
395        unsafe {
396            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
397            ::unity::il2cpp_call!((::unity::module_base()+0x296e510usize)as*mut u8,crate::unity_engine::vector2::Vector2;
398(GridMenuContent)__receiver)
399        }
400    }
401    #[doc = "`GetCellW()` overload"]
402    fn get_cell_w(self) -> f32 {
403        unsafe {
404            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
405            ::unity::il2cpp_call!((::unity::module_base()+0x296e5b0usize)as*mut u8,f32;
406(GridMenuContent)__receiver)
407        }
408    }
409    #[doc = "`GetCellH()` overload"]
410    fn get_cell_h(self) -> f32 {
411        unsafe {
412            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
413            ::unity::il2cpp_call!((::unity::module_base()+0x296e650usize)as*mut u8,f32;
414(GridMenuContent)__receiver)
415        }
416    }
417    #[doc = "`SetColumnCount(i32)` overload"]
418    fn set_column_count(self, count: impl ::core::convert::Into<i32>) -> () {
419        unsafe {
420            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
421            ::unity::il2cpp_call!((::unity::module_base()+0x296e700usize)as*mut u8,();
422(GridMenuContent)__receiver,(i32)::core::convert::Into::into(count))
423        }
424    }
425    #[doc = "`GetColumnCount()` overload"]
426    fn get_column_count(self) -> i32 {
427        unsafe {
428            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
429            ::unity::il2cpp_call!((::unity::module_base()+0x296e710usize)as*mut u8,i32;
430(GridMenuContent)__receiver)
431        }
432    }
433    #[doc = "`UpdateCursorSize()` overload"]
434    fn update_cursor_size(self) -> () {
435        unsafe {
436            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
437            {
438                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
439                let __vi = *__vt.get(37usize).unwrap_or_else(|| {
440                    panic!(
441                        "unity: virtual slot {}
442 out of range (vtable len {}
443) on the runtime class behind {}
444 (method `{}
445`)",
446                        37usize,
447                        __vt.len(),
448                        <GridMenuContent as ::unity::ClassIdentity>::NAME,
449                        "UpdateCursorSize",
450                    )
451                });
452                let __inner: extern "C" fn(GridMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
453                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
454                __inner(__receiver, __mi)
455            }
456        }
457    }
458    #[doc = "`.ctor()` overload"]
459    fn ctor(self) -> () {
460        unsafe {
461            let __receiver = <GridMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
462            ::unity::il2cpp_call!((::unity::module_base()+0x296f1a0usize)as*mut u8,();
463(GridMenuContent)__receiver)
464        }
465    }
466}
467
468#[cfg(feature = "app-gridmenucontent")]
469impl<__T: IGridMenuContent> IGridMenuContentMethods for __T {}
470
471#[cfg(feature = "app-gridmenucontent")]
472impl GridMenuContent {
473    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
474        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
475    }
476
477    pub fn calc_cursor_moved_pos_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
478        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
479    }
480
481    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
482        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
483    }
484
485    pub fn init_obj_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
486        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
487    }
488
489    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
490        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
491    }
492
493    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
494        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
495    }
496
497    pub fn cycle_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
498        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
499    }
500
501    pub fn get_line_height_for_scroll_method_info() -> &'static ::unity::il2cpp::MethodInfo {
502        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
503    }
504
505    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
506        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
507    }
508
509    pub fn calc_column_method_info() -> &'static ::unity::il2cpp::MethodInfo {
510        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
511    }
512
513    pub fn calc_row_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
515    }
516
517    pub fn calc_menu_item_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
519    }
520
521    pub fn set_cell_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
523    }
524
525    pub fn set_cell_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
527    }
528
529    pub fn set_cell_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
531    }
532
533    pub fn get_cell_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
535    }
536
537    pub fn get_cell_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
538        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
539    }
540
541    pub fn get_cell_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
542        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
543    }
544
545    pub fn set_column_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
546        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
547    }
548
549    pub fn get_column_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
551    }
552
553    pub fn update_cursor_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
555    }
556
557    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
559    }
560
561    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
563    }
564
565    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
566        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
567    }
568
569    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
570        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
571    }
572}
573
574#[cfg(feature = "app-gridmenucontent")]
575impl GridMenuContent {
576    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
577    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
578        let __mi = Self::get_menu_item_content_max_method_info();
579        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
580        __inner(this.into(), ::core::option::Option::None)
581    }
582
583    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `CalcCursorMovedPosX`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
584    pub unsafe fn calc_cursor_moved_pos_x(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
585        let __mi = Self::calc_cursor_moved_pos_x_method_info();
586        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
587        __inner(this.into(), menu_item_index, ::core::option::Option::None)
588    }
589
590    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
591    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
592        let __mi = Self::calc_cursor_moved_pos_y_method_info();
593        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
594        __inner(this.into(), menu_item_index, ::core::option::Option::None)
595    }
596
597    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `InitObjReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
598    pub unsafe fn init_obj_reference(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
599        let __mi = Self::init_obj_reference_method_info();
600        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
601        __inner(this.into(), ::core::option::Option::None)
602    }
603
604    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
605    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
606        let __mi = Self::calc_w_method_info();
607        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
608        __inner(this.into(), ::core::option::Option::None)
609    }
610
611    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
612    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
613        let __mi = Self::calc_h_method_info();
614        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
615        __inner(this.into(), ::core::option::Option::None)
616    }
617
618    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `CycleMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
619    pub unsafe fn cycle_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>, is_forward: bool, cycle_count: i32) -> () {
620        let __mi = Self::cycle_menu_item_content_method_info();
621        let __inner: extern "C" fn(::unity::IlInstance, bool, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
622        __inner(this.into(), is_forward, cycle_count, ::core::option::Option::None)
623    }
624
625    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `GetLineHeightForScroll`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
626    pub unsafe fn get_line_height_for_scroll(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
627        let __mi = Self::get_line_height_for_scroll_method_info();
628        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
629        __inner(this.into(), ::core::option::Option::None)
630    }
631
632    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
633    pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
634        let __mi = Self::awake_method_info();
635        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
636        __inner(this.into(), ::core::option::Option::None)
637    }
638
639    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `CalcColumn`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
640    pub unsafe fn calc_column(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> i32 {
641        let __mi = Self::calc_column_method_info();
642        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
643        __inner(this.into(), menu_item_index, ::core::option::Option::None)
644    }
645
646    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `CalcRow`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
647    pub unsafe fn calc_row(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> i32 {
648        let __mi = Self::calc_row_method_info();
649        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
650        __inner(this.into(), menu_item_index, ::core::option::Option::None)
651    }
652
653    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `CalcMenuItemIndex`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
654    pub unsafe fn calc_menu_item_index(this: impl ::core::convert::Into<::unity::IlInstance>, row: i32, column: i32) -> i32 {
655        let __mi = Self::calc_menu_item_index_method_info();
656        let __inner: extern "C" fn(::unity::IlInstance, i32, i32, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
657        __inner(this.into(), row, column, ::core::option::Option::None)
658    }
659
660    #[doc = "Direct (non-virtual) call to `GridMenuContent`'s own `UpdateCursorSize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
661    pub unsafe fn update_cursor_size(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
662        let __mi = Self::update_cursor_size_method_info();
663        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
664        __inner(this.into(), ::core::option::Option::None)
665    }
666}
667
668#[cfg(feature = "app-gridmenucontent")]
669impl GridMenuContent {
670    #[doc = "`.ctor()` — no args"]
671    pub fn new() -> Self {
672        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
673            panic!(
674                "{}
675::{}
676 failed to instantiate",
677                ::core::stringify!(GridMenuContent),
678                ::core::stringify!(new),
679            )
680        });
681        <Self as IGridMenuContentMethods>::ctor(this);
682        this
683    }
684}
685
686#[cfg(feature = "app-gridmenucontent")]
687#[doc(hidden)]
688pub mod prelude {
689    pub use super::{GridMenuContent, IGridMenuContent, IGridMenuContentMethods};
690    #[cfg(feature = "app-basicmenucontent")]
691    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
692    #[cfg(feature = "system-object")]
693    pub use crate::system::object::IObjectMethods;
694    #[cfg(feature = "unity_engine-behaviour")]
695    pub use crate::unity_engine::behaviour::IBehaviourMethods;
696    #[cfg(feature = "unity_engine-component")]
697    pub use crate::unity_engine::component::IComponentMethods;
698    #[cfg(feature = "unity_engine-monobehaviour")]
699    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
700    #[cfg(feature = "unity_engine-object_2")]
701    pub use crate::unity_engine::object_2::IObject_2Methods;
702    pub use crate::{
703        app::basicmenucontent::IBasicMenuContent,
704        system::object::IObject,
705        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
706    };
707}