Skip to main content

engage/generated/unity_engine/
guilayoutentry.rs

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