Skip to main content

engage/generated/unity_engine/
guilayoutgroup.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-guilayoutgroup-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::guilayoutentry::{GUILayoutEntry, IGUILayoutEntry},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/guilayoutgroup/GUILayoutGroup.md"))]
14    #[::unity::class(namespace = "UnityEngine", name = "GUILayoutGroup")]
15    #[parent(crate::unity_engine::guilayoutentry::GUILayoutEntry)]
16    pub struct GUILayoutGroup {
17        #[offset(72)]
18        #[rename(name = "entries")]
19        pub entries: crate::system::collections::generic::list_1::List_1<crate::unity_engine::guilayoutentry::GUILayoutEntry>,
20        #[offset(80)]
21        #[rename(name = "isVertical")]
22        pub is_vertical: bool,
23        #[offset(81)]
24        #[rename(name = "resetCoords")]
25        pub reset_coords: bool,
26        #[offset(84)]
27        #[rename(name = "spacing")]
28        pub spacing: f32,
29        #[offset(88)]
30        #[rename(name = "sameSize")]
31        pub same_size: bool,
32        #[offset(89)]
33        #[rename(name = "isWindow")]
34        pub is_window: bool,
35        #[offset(92)]
36        #[rename(name = "windowID")]
37        pub window_id: i32,
38        #[offset(96)]
39        #[rename(name = "m_Cursor")]
40        pub m_cursor: i32,
41        #[offset(100)]
42        #[rename(name = "m_StretchableCountX")]
43        pub m_stretchable_count_x: i32,
44        #[offset(104)]
45        #[rename(name = "m_StretchableCountY")]
46        pub m_stretchable_count_y: i32,
47        #[offset(108)]
48        #[rename(name = "m_UserSpecifiedWidth")]
49        pub m_user_specified_width: bool,
50        #[offset(109)]
51        #[rename(name = "m_UserSpecifiedHeight")]
52        pub m_user_specified_height: bool,
53        #[offset(112)]
54        #[rename(name = "m_ChildMinWidth")]
55        pub m_child_min_width: f32,
56        #[offset(116)]
57        #[rename(name = "m_ChildMaxWidth")]
58        pub m_child_max_width: f32,
59        #[offset(120)]
60        #[rename(name = "m_ChildMinHeight")]
61        pub m_child_min_height: f32,
62        #[offset(124)]
63        #[rename(name = "m_ChildMaxHeight")]
64        pub m_child_max_height: f32,
65        #[offset(128)]
66        #[rename(name = "m_MarginLeft")]
67        pub m_margin_left: i32,
68        #[offset(132)]
69        #[rename(name = "m_MarginRight")]
70        pub m_margin_right: i32,
71        #[offset(136)]
72        #[rename(name = "m_MarginTop")]
73        pub m_margin_top: i32,
74        #[offset(140)]
75        #[rename(name = "m_MarginBottom")]
76        pub m_margin_bottom: i32,
77        #[static_field]
78        #[rename(name = "none")]
79        pub none: crate::unity_engine::guilayoutentry::GUILayoutEntry,
80    }
81}
82
83#[cfg(feature = "unity_engine-guilayoutgroup-types")]
84pub use __types::*;
85
86#[cfg(feature = "unity_engine-guilayoutgroup")]
87impl GUILayoutGroup {
88    #[doc = "`.cctor()` overload"]
89    pub fn cctor() -> () {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x3c498b0usize)as*mut u8,();
92            )
93        }
94    }
95}
96
97#[cfg(feature = "unity_engine-guilayoutgroup")]
98pub trait IGUILayoutGroupMethods: IGUILayoutGroup {
99    #[doc = "`get_marginLeft()` overload"]
100    fn get_margin_left(self) -> i32 {
101        unsafe {
102            let __receiver = <GUILayoutGroup 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(4usize).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                        4usize,
113                        __vt.len(),
114                        <GUILayoutGroup as ::unity::ClassIdentity>::NAME,
115                        "get_marginLeft",
116                    )
117                });
118                let __inner: extern "C" fn(GUILayoutGroup, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
119                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120                __inner(__receiver, __mi)
121            }
122        }
123    }
124    #[doc = "`get_marginRight()` overload"]
125    fn get_margin_right(self) -> i32 {
126        unsafe {
127            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            {
129                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
130                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
131                    panic!(
132                        "unity: virtual slot {}
133 out of range (vtable len {}
134) on the runtime class behind {}
135 (method `{}
136`)",
137                        5usize,
138                        __vt.len(),
139                        <GUILayoutGroup as ::unity::ClassIdentity>::NAME,
140                        "get_marginRight",
141                    )
142                });
143                let __inner: extern "C" fn(GUILayoutGroup, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
144                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
145                __inner(__receiver, __mi)
146            }
147        }
148    }
149    #[doc = "`get_marginTop()` overload"]
150    fn get_margin_top(self) -> i32 {
151        unsafe {
152            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            {
154                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
155                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
156                    panic!(
157                        "unity: virtual slot {}
158 out of range (vtable len {}
159) on the runtime class behind {}
160 (method `{}
161`)",
162                        6usize,
163                        __vt.len(),
164                        <GUILayoutGroup as ::unity::ClassIdentity>::NAME,
165                        "get_marginTop",
166                    )
167                });
168                let __inner: extern "C" fn(GUILayoutGroup, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
169                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
170                __inner(__receiver, __mi)
171            }
172        }
173    }
174    #[doc = "`get_marginBottom()` overload"]
175    fn get_margin_bottom(self) -> i32 {
176        unsafe {
177            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            {
179                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
180                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
181                    panic!(
182                        "unity: virtual slot {}
183 out of range (vtable len {}
184) on the runtime class behind {}
185 (method `{}
186`)",
187                        7usize,
188                        __vt.len(),
189                        <GUILayoutGroup as ::unity::ClassIdentity>::NAME,
190                        "get_marginBottom",
191                    )
192                });
193                let __inner: extern "C" fn(GUILayoutGroup, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
194                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
195                __inner(__receiver, __mi)
196            }
197        }
198    }
199    #[doc = "`.ctor()` overload"]
200    fn ctor(self) -> () {
201        unsafe {
202            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203            ::unity::il2cpp_call!((::unity::module_base()+0x3c46c10usize)as*mut u8,();
204(GUILayoutGroup)__receiver)
205        }
206    }
207    #[doc = "`ApplyOptions(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
208    fn apply_options(self, options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>) -> () {
209        unsafe {
210            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            {
212                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
213                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
214                    panic!(
215                        "unity: virtual slot {}
216 out of range (vtable len {}
217) on the runtime class behind {}
218 (method `{}
219`)",
220                        13usize,
221                        __vt.len(),
222                        <GUILayoutGroup as ::unity::ClassIdentity>::NAME,
223                        "ApplyOptions",
224                    )
225                });
226                let __inner: extern "C" fn(
227                    GUILayoutGroup,
228                    ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>,
229                    ::unity::OptionalMethod,
230                ) -> () = ::core::mem::transmute(__vi.method_ptr);
231                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
232                __inner(__receiver, ::core::convert::Into::into(options), __mi)
233            }
234        }
235    }
236    #[doc = "`ApplyStyleSettings(crate::unity_engine::guistyle::GUIStyle)` overload"]
237    fn apply_style_settings(self, style: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>) -> () {
238        unsafe {
239            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240            {
241                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
242                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
243                    panic!(
244                        "unity: virtual slot {}
245 out of range (vtable len {}
246) on the runtime class behind {}
247 (method `{}
248`)",
249                        12usize,
250                        __vt.len(),
251                        <GUILayoutGroup as ::unity::ClassIdentity>::NAME,
252                        "ApplyStyleSettings",
253                    )
254                });
255                let __inner: extern "C" fn(GUILayoutGroup, crate::unity_engine::guistyle::GUIStyle, ::unity::OptionalMethod) -> () =
256                    ::core::mem::transmute(__vi.method_ptr);
257                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
258                __inner(__receiver, ::core::convert::Into::into(style), __mi)
259            }
260        }
261    }
262    #[doc = "`ResetCursor()` overload"]
263    fn reset_cursor(self) -> () {
264        unsafe {
265            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
266            ::unity::il2cpp_call!((::unity::module_base()+0x3c46f90usize)as*mut u8,();
267(GUILayoutGroup)__receiver)
268        }
269    }
270    #[doc = "`GetNext()` overload"]
271    fn get_next(self) -> crate::unity_engine::guilayoutentry::GUILayoutEntry {
272        unsafe {
273            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274            ::unity::il2cpp_call!((::unity::module_base()+0x3c46fa0usize)as*mut u8,crate::unity_engine::guilayoutentry::GUILayoutEntry;
275(GUILayoutGroup)__receiver)
276        }
277    }
278    #[doc = "`Add(crate::unity_engine::guilayoutentry::GUILayoutEntry)` overload"]
279    fn add(self, e: impl ::core::convert::Into<crate::unity_engine::guilayoutentry::GUILayoutEntry>) -> () {
280        unsafe {
281            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282            ::unity::il2cpp_call!((::unity::module_base()+0x3c472f0usize)as*mut u8,();
283(GUILayoutGroup)__receiver,(crate::unity_engine::guilayoutentry::GUILayoutEntry)::core::convert::Into::into(e))
284        }
285    }
286    #[doc = "`CalcWidth()` overload"]
287    fn calc_width(self) -> () {
288        unsafe {
289            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290            {
291                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
292                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
293                    panic!(
294                        "unity: virtual slot {}
295 out of range (vtable len {}
296) on the runtime class behind {}
297 (method `{}
298`)",
299                        8usize,
300                        __vt.len(),
301                        <GUILayoutGroup as ::unity::ClassIdentity>::NAME,
302                        "CalcWidth",
303                    )
304                });
305                let __inner: extern "C" fn(GUILayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
306                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
307                __inner(__receiver, __mi)
308            }
309        }
310    }
311    #[doc = "`SetHorizontal(f32, f32)` overload"]
312    fn set_horizontal(self, x: impl ::core::convert::Into<f32>, width: impl ::core::convert::Into<f32>) -> () {
313        unsafe {
314            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315            {
316                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
317                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
318                    panic!(
319                        "unity: virtual slot {}
320 out of range (vtable len {}
321) on the runtime class behind {}
322 (method `{}
323`)",
324                        10usize,
325                        __vt.len(),
326                        <GUILayoutGroup as ::unity::ClassIdentity>::NAME,
327                        "SetHorizontal",
328                    )
329                });
330                let __inner: extern "C" fn(GUILayoutGroup, f32, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
331                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
332                __inner(__receiver, ::core::convert::Into::into(x), ::core::convert::Into::into(width), __mi)
333            }
334        }
335    }
336    #[doc = "`CalcHeight()` overload"]
337    fn calc_height(self) -> () {
338        unsafe {
339            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
340            {
341                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
342                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
343                    panic!(
344                        "unity: virtual slot {}
345 out of range (vtable len {}
346) on the runtime class behind {}
347 (method `{}
348`)",
349                        9usize,
350                        __vt.len(),
351                        <GUILayoutGroup as ::unity::ClassIdentity>::NAME,
352                        "CalcHeight",
353                    )
354                });
355                let __inner: extern "C" fn(GUILayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
356                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
357                __inner(__receiver, __mi)
358            }
359        }
360    }
361    #[doc = "`SetVertical(f32, f32)` overload"]
362    fn set_vertical(self, y: impl ::core::convert::Into<f32>, height: impl ::core::convert::Into<f32>) -> () {
363        unsafe {
364            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
365            {
366                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
367                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
368                    panic!(
369                        "unity: virtual slot {}
370 out of range (vtable len {}
371) on the runtime class behind {}
372 (method `{}
373`)",
374                        11usize,
375                        __vt.len(),
376                        <GUILayoutGroup as ::unity::ClassIdentity>::NAME,
377                        "SetVertical",
378                    )
379                });
380                let __inner: extern "C" fn(GUILayoutGroup, f32, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
381                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
382                __inner(__receiver, ::core::convert::Into::into(y), ::core::convert::Into::into(height), __mi)
383            }
384        }
385    }
386    #[doc = "`ToString()` overload"]
387    fn to_string(self) -> ::unity::Il2CppString {
388        unsafe {
389            let __receiver = <GUILayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
390            {
391                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
392                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
393                    panic!(
394                        "unity: virtual slot {}
395 out of range (vtable len {}
396) on the runtime class behind {}
397 (method `{}
398`)",
399                        3usize,
400                        __vt.len(),
401                        <GUILayoutGroup as ::unity::ClassIdentity>::NAME,
402                        "ToString",
403                    )
404                });
405                let __inner: extern "C" fn(GUILayoutGroup, ::unity::OptionalMethod) -> ::unity::Il2CppString =
406                    ::core::mem::transmute(__vi.method_ptr);
407                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
408                __inner(__receiver, __mi)
409            }
410        }
411    }
412}
413
414#[cfg(feature = "unity_engine-guilayoutgroup")]
415impl<__T: IGUILayoutGroup> IGUILayoutGroupMethods for __T {}
416
417#[cfg(feature = "unity_engine-guilayoutgroup")]
418impl GUILayoutGroup {
419    pub fn get_margin_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
421    }
422
423    pub fn get_margin_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
425    }
426
427    pub fn get_margin_top_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
429    }
430
431    pub fn get_margin_bottom_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
433    }
434
435    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
437    }
438
439    pub fn apply_options_method_info() -> &'static ::unity::il2cpp::MethodInfo {
440        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
441    }
442
443    pub fn apply_style_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
444        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
445    }
446
447    pub fn reset_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
449    }
450
451    pub fn get_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
453    }
454
455    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
457    }
458
459    pub fn calc_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
461    }
462
463    pub fn set_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
465    }
466
467    pub fn calc_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
469    }
470
471    pub fn set_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
473    }
474
475    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
477    }
478
479    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
481    }
482}
483
484#[cfg(feature = "unity_engine-guilayoutgroup")]
485impl GUILayoutGroup {
486    #[doc = "Direct (non-virtual) call to `GUILayoutGroup`'s own `get_marginLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
487    pub unsafe fn get_margin_left(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
488        let __mi = Self::get_margin_left_method_info();
489        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
490        __inner(this.into(), ::core::option::Option::None)
491    }
492
493    #[doc = "Direct (non-virtual) call to `GUILayoutGroup`'s own `get_marginRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
494    pub unsafe fn get_margin_right(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
495        let __mi = Self::get_margin_right_method_info();
496        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
497        __inner(this.into(), ::core::option::Option::None)
498    }
499
500    #[doc = "Direct (non-virtual) call to `GUILayoutGroup`'s own `get_marginTop`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
501    pub unsafe fn get_margin_top(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
502        let __mi = Self::get_margin_top_method_info();
503        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
504        __inner(this.into(), ::core::option::Option::None)
505    }
506
507    #[doc = "Direct (non-virtual) call to `GUILayoutGroup`'s own `get_marginBottom`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
508    pub unsafe fn get_margin_bottom(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
509        let __mi = Self::get_margin_bottom_method_info();
510        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
511        __inner(this.into(), ::core::option::Option::None)
512    }
513
514    #[doc = "Direct (non-virtual) call to `GUILayoutGroup`'s own `ApplyOptions`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
515    pub unsafe fn apply_options(
516        this: impl ::core::convert::Into<::unity::IlInstance>,
517        options: ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>,
518    ) -> () {
519        let __mi = Self::apply_options_method_info();
520        let __inner: extern "C" fn(
521            ::unity::IlInstance,
522            ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>,
523            ::unity::OptionalMethod,
524        ) -> () = ::core::mem::transmute(__mi.method_ptr);
525        __inner(this.into(), options, ::core::option::Option::None)
526    }
527
528    #[doc = "Direct (non-virtual) call to `GUILayoutGroup`'s own `ApplyStyleSettings`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
529    pub unsafe fn apply_style_settings(this: impl ::core::convert::Into<::unity::IlInstance>, style: crate::unity_engine::guistyle::GUIStyle) -> () {
530        let __mi = Self::apply_style_settings_method_info();
531        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::guistyle::GUIStyle, ::unity::OptionalMethod) -> () =
532            ::core::mem::transmute(__mi.method_ptr);
533        __inner(this.into(), style, ::core::option::Option::None)
534    }
535
536    #[doc = "Direct (non-virtual) call to `GUILayoutGroup`'s own `CalcWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
537    pub unsafe fn calc_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
538        let __mi = Self::calc_width_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    #[doc = "Direct (non-virtual) call to `GUILayoutGroup`'s own `SetHorizontal`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
544    pub unsafe fn set_horizontal(this: impl ::core::convert::Into<::unity::IlInstance>, x: f32, width: f32) -> () {
545        let __mi = Self::set_horizontal_method_info();
546        let __inner: extern "C" fn(::unity::IlInstance, f32, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
547        __inner(this.into(), x, width, ::core::option::Option::None)
548    }
549
550    #[doc = "Direct (non-virtual) call to `GUILayoutGroup`'s own `CalcHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
551    pub unsafe fn calc_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
552        let __mi = Self::calc_height_method_info();
553        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
554        __inner(this.into(), ::core::option::Option::None)
555    }
556
557    #[doc = "Direct (non-virtual) call to `GUILayoutGroup`'s own `SetVertical`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
558    pub unsafe fn set_vertical(this: impl ::core::convert::Into<::unity::IlInstance>, y: f32, height: f32) -> () {
559        let __mi = Self::set_vertical_method_info();
560        let __inner: extern "C" fn(::unity::IlInstance, f32, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
561        __inner(this.into(), y, height, ::core::option::Option::None)
562    }
563
564    #[doc = "Direct (non-virtual) call to `GUILayoutGroup`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
565    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
566        let __mi = Self::to_string_method_info();
567        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
568        __inner(this.into(), ::core::option::Option::None)
569    }
570}
571
572#[cfg(feature = "unity_engine-guilayoutgroup")]
573impl GUILayoutGroup {
574    #[doc = "`.ctor()` — no args"]
575    pub fn new() -> Self {
576        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
577            panic!(
578                "{}
579::{}
580 failed to instantiate",
581                ::core::stringify!(GUILayoutGroup),
582                ::core::stringify!(new),
583            )
584        });
585        <Self as IGUILayoutGroupMethods>::ctor(this);
586        this
587    }
588}
589
590#[cfg(feature = "unity_engine-guilayoutgroup")]
591#[doc(hidden)]
592pub mod prelude {
593    pub use super::{GUILayoutGroup, IGUILayoutGroup, IGUILayoutGroupMethods};
594    #[cfg(feature = "system-object")]
595    pub use crate::system::object::IObjectMethods;
596    #[cfg(feature = "unity_engine-guilayoutentry")]
597    pub use crate::unity_engine::guilayoutentry::IGUILayoutEntryMethods;
598    pub use crate::{system::object::IObject, unity_engine::guilayoutentry::IGUILayoutEntry};
599}