1#[cfg(feature = "app-gridmenu-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicmenu::{BasicMenu, IBasicMenu},
11 procinst::{IProcInst, ProcInst},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gridmenu/GridMenu.md"))]
17 #[::unity::class(namespace = "App", name = "GridMenu")]
18 #[parent(crate::app::basicmenu::BasicMenu)]
19 pub struct GridMenu {
20 #[offset(200)]
21 #[rename(name = "m_gridMenuContent")]
22 pub m_grid_menu_content: crate::app::gridmenucontent::GridMenuContent,
23 #[offset(208)]
24 #[rename(name = "m_column")]
25 pub m_column: i32,
26 }
27}
28
29#[cfg(feature = "app-gridmenu-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-gridmenu")]
33pub trait IGridMenuMethods: IGridMenu {
34 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::gridmenucontent::GridMenuContent)` overload"]
35 fn ctor(
36 self,
37 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
38 menu_content: impl ::core::convert::Into<crate::app::gridmenucontent::GridMenuContent>,
39 ) -> () {
40 unsafe {
41 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 ::unity::il2cpp_call!((::unity::module_base()+0x296d4a0usize)as*mut u8,();
43(GridMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::gridmenucontent::GridMenuContent)::core::convert::Into::into(menu_content))
44 }
45 }
46 #[doc = "`GetName()` overload"]
47 fn get_name(self) -> ::unity::Il2CppString {
48 unsafe {
49 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 {
51 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
52 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
53 panic!(
54 "unity: virtual slot {}
55 out of range (vtable len {}
56) on the runtime class behind {}
57 (method `{}
58`)",
59 30usize,
60 __vt.len(),
61 <GridMenu as ::unity::ClassIdentity>::NAME,
62 "GetName",
63 )
64 });
65 let __inner: extern "C" fn(GridMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
66 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
67 __inner(__receiver, __mi)
68 }
69 }
70 }
71 #[doc = "`GetShowRowMax()` overload"]
72 fn get_show_row_max(self) -> i32 {
73 unsafe {
74 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 {
76 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
77 let __vi = *__vt.get(32usize).unwrap_or_else(|| {
78 panic!(
79 "unity: virtual slot {}
80 out of range (vtable len {}
81) on the runtime class behind {}
82 (method `{}
83`)",
84 32usize,
85 __vt.len(),
86 <GridMenu as ::unity::ClassIdentity>::NAME,
87 "GetShowRowMax",
88 )
89 });
90 let __inner: extern "C" fn(GridMenu, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
91 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
92 __inner(__receiver, __mi)
93 }
94 }
95 }
96 #[doc = "`GetBuildRowNum()` overload"]
97 fn get_build_row_num(self) -> i32 {
98 unsafe {
99 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 {
101 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102 let __vi = *__vt.get(33usize).unwrap_or_else(|| {
103 panic!(
104 "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109 33usize,
110 __vt.len(),
111 <GridMenu as ::unity::ClassIdentity>::NAME,
112 "GetBuildRowNum",
113 )
114 });
115 let __inner: extern "C" fn(GridMenu, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
116 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
117 __inner(__receiver, __mi)
118 }
119 }
120 }
121 #[doc = "`SetSelectIndex(i32)` overload"]
122 fn set_select_index(self, index: impl ::core::convert::Into<i32>) -> () {
123 unsafe {
124 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 {
126 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
127 let __vi = *__vt.get(34usize).unwrap_or_else(|| {
128 panic!(
129 "unity: virtual slot {}
130 out of range (vtable len {}
131) on the runtime class behind {}
132 (method `{}
133`)",
134 34usize,
135 __vt.len(),
136 <GridMenu as ::unity::ClassIdentity>::NAME,
137 "SetSelectIndex",
138 )
139 });
140 let __inner: extern "C" fn(GridMenu, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
141 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
142 __inner(__receiver, ::core::convert::Into::into(index), __mi)
143 }
144 }
145 }
146 #[doc = "`RebuildInstant(crate::app::basicmenuselect::BasicMenuSelect, i32)` overload"]
147 fn rebuild_instant(
148 self,
149 menu_select: impl ::core::convert::Into<crate::app::basicmenuselect::BasicMenuSelect>,
150 display_index: impl ::core::convert::Into<i32>,
151 ) -> () {
152 unsafe {
153 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 {
155 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
156 let __vi = *__vt.get(37usize).unwrap_or_else(|| {
157 panic!(
158 "unity: virtual slot {}
159 out of range (vtable len {}
160) on the runtime class behind {}
161 (method `{}
162`)",
163 37usize,
164 __vt.len(),
165 <GridMenu as ::unity::ClassIdentity>::NAME,
166 "RebuildInstant",
167 )
168 });
169 let __inner: extern "C" fn(GridMenu, crate::app::basicmenuselect::BasicMenuSelect, i32, ::unity::OptionalMethod) -> () =
170 ::core::mem::transmute(__vi.method_ptr);
171 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
172 __inner(
173 __receiver,
174 ::core::convert::Into::into(menu_select),
175 ::core::convert::Into::into(display_index),
176 __mi,
177 )
178 }
179 }
180 }
181 #[doc = "`KeyUp(bool)` overload"]
182 fn key_up(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
183 unsafe {
184 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 {
186 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
187 let __vi = *__vt.get(40usize).unwrap_or_else(|| {
188 panic!(
189 "unity: virtual slot {}
190 out of range (vtable len {}
191) on the runtime class behind {}
192 (method `{}
193`)",
194 40usize,
195 __vt.len(),
196 <GridMenu as ::unity::ClassIdentity>::NAME,
197 "KeyUp",
198 )
199 });
200 let __inner: extern "C" fn(GridMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
201 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
202 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
203 }
204 }
205 }
206 #[doc = "`KeyDown(bool)` overload"]
207 fn key_down(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
208 unsafe {
209 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210 {
211 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
212 let __vi = *__vt.get(41usize).unwrap_or_else(|| {
213 panic!(
214 "unity: virtual slot {}
215 out of range (vtable len {}
216) on the runtime class behind {}
217 (method `{}
218`)",
219 41usize,
220 __vt.len(),
221 <GridMenu as ::unity::ClassIdentity>::NAME,
222 "KeyDown",
223 )
224 });
225 let __inner: extern "C" fn(GridMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
226 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
227 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
228 }
229 }
230 }
231 #[doc = "`KeyLeft(bool)` overload"]
232 fn key_left(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
233 unsafe {
234 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 {
236 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
237 let __vi = *__vt.get(42usize).unwrap_or_else(|| {
238 panic!(
239 "unity: virtual slot {}
240 out of range (vtable len {}
241) on the runtime class behind {}
242 (method `{}
243`)",
244 42usize,
245 __vt.len(),
246 <GridMenu as ::unity::ClassIdentity>::NAME,
247 "KeyLeft",
248 )
249 });
250 let __inner: extern "C" fn(GridMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
251 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
252 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
253 }
254 }
255 }
256 #[doc = "`KeyRight(bool)` overload"]
257 fn key_right(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
258 unsafe {
259 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260 {
261 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
262 let __vi = *__vt.get(43usize).unwrap_or_else(|| {
263 panic!(
264 "unity: virtual slot {}
265 out of range (vtable len {}
266) on the runtime class behind {}
267 (method `{}
268`)",
269 43usize,
270 __vt.len(),
271 <GridMenu as ::unity::ClassIdentity>::NAME,
272 "KeyRight",
273 )
274 });
275 let __inner: extern "C" fn(GridMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
276 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
277 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
278 }
279 }
280 }
281 #[doc = "`AdjustScrollIndex()` overload"]
282 fn adjust_scroll_index(self) -> () {
283 unsafe {
284 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285 {
286 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
287 let __vi = *__vt.get(35usize).unwrap_or_else(|| {
288 panic!(
289 "unity: virtual slot {}
290 out of range (vtable len {}
291) on the runtime class behind {}
292 (method `{}
293`)",
294 35usize,
295 __vt.len(),
296 <GridMenu as ::unity::ClassIdentity>::NAME,
297 "AdjustScrollIndex",
298 )
299 });
300 let __inner: extern "C" fn(GridMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
301 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
302 __inner(__receiver, __mi)
303 }
304 }
305 }
306 #[doc = "`SetCellSize(f32, f32)` overload"]
307 fn set_cell_size(self, w: impl ::core::convert::Into<f32>, h: impl ::core::convert::Into<f32>) -> () {
308 unsafe {
309 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
310 ::unity::il2cpp_call!((::unity::module_base()+0x296e120usize)as*mut u8,();
311(GridMenu)__receiver,(f32)::core::convert::Into::into(w),(f32)::core::convert::Into::into(h))
312 }
313 }
314 #[doc = "`SetCellW(f32)` overload"]
315 fn set_cell_w(self, w: impl ::core::convert::Into<f32>) -> () {
316 unsafe {
317 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
318 ::unity::il2cpp_call!((::unity::module_base()+0x296e2a0usize)as*mut u8,();
319(GridMenu)__receiver,(f32)::core::convert::Into::into(w))
320 }
321 }
322 #[doc = "`SetCellH(f32)` overload"]
323 fn set_cell_h(self, h: impl ::core::convert::Into<f32>) -> () {
324 unsafe {
325 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
326 ::unity::il2cpp_call!((::unity::module_base()+0x296e390usize)as*mut u8,();
327(GridMenu)__receiver,(f32)::core::convert::Into::into(h))
328 }
329 }
330 #[doc = "`GetCellSize()` overload"]
331 fn get_cell_size(self) -> crate::unity_engine::vector2::Vector2 {
332 unsafe {
333 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
334 ::unity::il2cpp_call!((::unity::module_base()+0x296e480usize)as*mut u8,crate::unity_engine::vector2::Vector2;
335(GridMenu)__receiver)
336 }
337 }
338 #[doc = "`GetCellW()` overload"]
339 fn get_cell_w(self) -> f32 {
340 unsafe {
341 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
342 ::unity::il2cpp_call!((::unity::module_base()+0x296e520usize)as*mut u8,f32;
343(GridMenu)__receiver)
344 }
345 }
346 #[doc = "`GetCellH()` overload"]
347 fn get_cell_h(self) -> f32 {
348 unsafe {
349 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
350 ::unity::il2cpp_call!((::unity::module_base()+0x296e5c0usize)as*mut u8,f32;
351(GridMenu)__receiver)
352 }
353 }
354 #[doc = "`SetColumnCount(i32)` overload"]
355 fn set_column_count(self, count: impl ::core::convert::Into<i32>) -> () {
356 unsafe {
357 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
358 ::unity::il2cpp_call!((::unity::module_base()+0x296e660usize)as*mut u8,();
359(GridMenu)__receiver,(i32)::core::convert::Into::into(count))
360 }
361 }
362 #[doc = "`GetColumnCount()` overload"]
363 fn get_column_count(self) -> i32 {
364 unsafe {
365 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
366 ::unity::il2cpp_call!((::unity::module_base()+0x296d5d0usize)as*mut u8,i32;
367(GridMenu)__receiver)
368 }
369 }
370 #[doc = "`GetGridMenuContent()` overload"]
371 fn get_grid_menu_content(self) -> crate::app::gridmenucontent::GridMenuContent {
372 unsafe {
373 let __receiver = <GridMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
374 ::unity::il2cpp_call!((::unity::module_base()+0x296e1e0usize)as*mut u8,crate::app::gridmenucontent::GridMenuContent;
375(GridMenu)__receiver)
376 }
377 }
378}
379
380#[cfg(feature = "app-gridmenu")]
381impl<__T: IGridMenu> IGridMenuMethods for __T {}
382
383#[cfg(feature = "app-gridmenu")]
384impl GridMenu {
385 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
386 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
387 }
388
389 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
390 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
391 }
392
393 pub fn get_show_row_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
394 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
395 }
396
397 pub fn get_build_row_num_method_info() -> &'static ::unity::il2cpp::MethodInfo {
398 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
399 }
400
401 pub fn set_select_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
402 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
403 }
404
405 pub fn rebuild_instant_method_info() -> &'static ::unity::il2cpp::MethodInfo {
406 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
407 }
408
409 pub fn key_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
410 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
411 }
412
413 pub fn key_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
414 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
415 }
416
417 pub fn key_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
418 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
419 }
420
421 pub fn key_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
422 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
423 }
424
425 pub fn adjust_scroll_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
426 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
427 }
428
429 pub fn set_cell_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
430 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
431 }
432
433 pub fn set_cell_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
434 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
435 }
436
437 pub fn set_cell_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
438 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
439 }
440
441 pub fn get_cell_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
442 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
443 }
444
445 pub fn get_cell_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
447 }
448
449 pub fn get_cell_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
450 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
451 }
452
453 pub fn set_column_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
454 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
455 }
456
457 pub fn get_column_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
458 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
459 }
460
461 pub fn get_grid_menu_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
462 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
463 }
464}
465
466#[cfg(feature = "app-gridmenu")]
467impl GridMenu {
468 #[doc = "Direct (non-virtual) call to `GridMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
469 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
470 let __mi = Self::get_name_method_info();
471 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
472 __inner(this.into(), ::core::option::Option::None)
473 }
474
475 #[doc = "Direct (non-virtual) call to `GridMenu`'s own `GetShowRowMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
476 pub unsafe fn get_show_row_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
477 let __mi = Self::get_show_row_max_method_info();
478 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
479 __inner(this.into(), ::core::option::Option::None)
480 }
481
482 #[doc = "Direct (non-virtual) call to `GridMenu`'s own `GetBuildRowNum`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
483 pub unsafe fn get_build_row_num(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
484 let __mi = Self::get_build_row_num_method_info();
485 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
486 __inner(this.into(), ::core::option::Option::None)
487 }
488
489 #[doc = "Direct (non-virtual) call to `GridMenu`'s own `SetSelectIndex`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
490 pub unsafe fn set_select_index(this: impl ::core::convert::Into<::unity::IlInstance>, index: i32) -> () {
491 let __mi = Self::set_select_index_method_info();
492 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
493 __inner(this.into(), index, ::core::option::Option::None)
494 }
495
496 #[doc = "Direct (non-virtual) call to `GridMenu`'s own `RebuildInstant`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
497 pub unsafe fn rebuild_instant(
498 this: impl ::core::convert::Into<::unity::IlInstance>,
499 menu_select: crate::app::basicmenuselect::BasicMenuSelect,
500 display_index: i32,
501 ) -> () {
502 let __mi = Self::rebuild_instant_method_info();
503 let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuselect::BasicMenuSelect, i32, ::unity::OptionalMethod) -> () =
504 ::core::mem::transmute(__mi.method_ptr);
505 __inner(this.into(), menu_select, display_index, ::core::option::Option::None)
506 }
507
508 #[doc = "Direct (non-virtual) call to `GridMenu`'s own `KeyUp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
509 pub unsafe fn key_up(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
510 let __mi = Self::key_up_method_info();
511 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
512 __inner(this.into(), is_trigger, ::core::option::Option::None)
513 }
514
515 #[doc = "Direct (non-virtual) call to `GridMenu`'s own `KeyDown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
516 pub unsafe fn key_down(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
517 let __mi = Self::key_down_method_info();
518 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
519 __inner(this.into(), is_trigger, ::core::option::Option::None)
520 }
521
522 #[doc = "Direct (non-virtual) call to `GridMenu`'s own `KeyLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
523 pub unsafe fn key_left(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
524 let __mi = Self::key_left_method_info();
525 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
526 __inner(this.into(), is_trigger, ::core::option::Option::None)
527 }
528
529 #[doc = "Direct (non-virtual) call to `GridMenu`'s own `KeyRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
530 pub unsafe fn key_right(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
531 let __mi = Self::key_right_method_info();
532 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
533 __inner(this.into(), is_trigger, ::core::option::Option::None)
534 }
535
536 #[doc = "Direct (non-virtual) call to `GridMenu`'s own `AdjustScrollIndex`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
537 pub unsafe fn adjust_scroll_index(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
538 let __mi = Self::adjust_scroll_index_method_info();
539 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
540 __inner(this.into(), ::core::option::Option::None)
541 }
542}
543
544#[cfg(feature = "app-gridmenu")]
545impl GridMenu {
546 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::gridmenucontent::GridMenuContent)` — overload selector"]
547 pub fn new(
548 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
549 menu_content: crate::app::gridmenucontent::GridMenuContent,
550 ) -> Self {
551 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
552 panic!(
553 "{}
554::{}
555 failed to instantiate",
556 ::core::stringify!(GridMenu),
557 ::core::stringify!(new),
558 )
559 });
560 <Self as IGridMenuMethods>::ctor(this, menu_item_list, menu_content);
561 this
562 }
563}
564
565#[cfg(feature = "app-gridmenu")]
566#[doc(hidden)]
567pub mod prelude {
568 pub use super::{GridMenu, IGridMenu, IGridMenuMethods};
569 #[cfg(feature = "app-basicmenu")]
570 pub use crate::app::basicmenu::IBasicMenuMethods;
571 #[cfg(feature = "app-procinst")]
572 pub use crate::app::procinst::IProcInstMethods;
573 #[cfg(feature = "system-object")]
574 pub use crate::system::object::IObjectMethods;
575 pub use crate::{
576 app::{basicmenu::IBasicMenu, procinst::IProcInst},
577 system::object::IObject,
578 };
579}