Skip to main content

engage/generated/unity_engine/
guilayout.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-guilayout-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::gui::{GUI_Scope, IGUI_Scope},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/guilayout/GUILayout_AreaScope.md"))]
14    #[::unity::class(namespace = "UnityEngine", name = "GUILayout.AreaScope")]
15    #[parent(crate::unity_engine::gui::GUI_Scope)]
16    pub struct GUILayout_AreaScope {}
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/guilayout/GUILayout_HorizontalScope.md"))]
19    #[::unity::class(namespace = "UnityEngine", name = "GUILayout.HorizontalScope")]
20    #[parent(crate::unity_engine::gui::GUI_Scope)]
21    pub struct GUILayout_HorizontalScope {}
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/guilayout/GUILayout_LayoutedWindow.md"))]
24    #[::unity::class(namespace = "UnityEngine", name = "GUILayout.LayoutedWindow")]
25    #[parent(crate::system::object::Object)]
26    pub struct GUILayout_LayoutedWindow {
27        #[offset(16)]
28        #[rename(name = "m_Func")]
29        pub m_func: crate::unity_engine::gui::GUI_WindowFunction,
30        #[offset(24)]
31        #[rename(name = "m_ScreenRect")]
32        pub m_screen_rect: crate::unity_engine::rect::Rect,
33        #[offset(40)]
34        #[rename(name = "m_Options")]
35        pub m_options: ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>,
36        #[offset(48)]
37        #[rename(name = "m_Style")]
38        pub m_style: crate::unity_engine::guistyle::GUIStyle,
39    }
40
41    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/guilayout/GUILayout_ScrollViewScope.md"))]
42    #[::unity::class(namespace = "UnityEngine", name = "GUILayout.ScrollViewScope")]
43    #[parent(crate::unity_engine::gui::GUI_Scope)]
44    pub struct GUILayout_ScrollViewScope {}
45
46    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/guilayout/GUILayout.md"))]
47    #[::unity::class(namespace = "UnityEngine", name = "GUILayout")]
48    #[parent(crate::system::object::Object)]
49    pub struct GUILayout {}
50}
51
52#[cfg(feature = "unity_engine-guilayout-types")]
53pub use __types::*;
54
55#[cfg(feature = "unity_engine-guilayout")]
56pub trait IGUILayout_AreaScopeMethods: IGUILayout_AreaScope {
57    #[doc = "`.ctor(crate::unity_engine::rect::Rect)` overload"]
58    fn ctor(self, screen_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>) -> () {
59        unsafe {
60            let __receiver = <GUILayout_AreaScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!((::unity::module_base()+0x3f3c740usize)as*mut u8,();
62(GUILayout_AreaScope)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(screen_rect))
63        }
64    }
65    #[doc = "`CloseScope()` overload"]
66    fn close_scope(self) -> () {
67        unsafe {
68            let __receiver = <GUILayout_AreaScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            {
70                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
71                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
72                    panic!(
73                        "unity: virtual slot {}
74 out of range (vtable len {}
75) on the runtime class behind {}
76 (method `{}
77`)",
78                        6usize,
79                        __vt.len(),
80                        <GUILayout_AreaScope as ::unity::ClassIdentity>::NAME,
81                        "CloseScope",
82                    )
83                });
84                let __inner: extern "C" fn(GUILayout_AreaScope, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
85                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
86                __inner(__receiver, __mi)
87            }
88        }
89    }
90}
91
92#[cfg(feature = "unity_engine-guilayout")]
93impl<__T: IGUILayout_AreaScope> IGUILayout_AreaScopeMethods for __T {}
94
95#[cfg(feature = "unity_engine-guilayout")]
96impl GUILayout_AreaScope {
97    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99    }
100
101    pub fn close_scope_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103    }
104}
105
106#[cfg(feature = "unity_engine-guilayout")]
107impl GUILayout_AreaScope {
108    #[doc = "Direct (non-virtual) call to `GUILayout_AreaScope`'s own `CloseScope`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
109    pub unsafe fn close_scope(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
110        let __mi = Self::close_scope_method_info();
111        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
112        __inner(this.into(), ::core::option::Option::None)
113    }
114}
115
116#[cfg(feature = "unity_engine-guilayout")]
117impl GUILayout_AreaScope {
118    #[doc = "`.ctor(crate::unity_engine::rect::Rect)` — overload selector"]
119    pub fn new(screen_rect: crate::unity_engine::rect::Rect) -> Self {
120        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
121            panic!(
122                "{}
123::{}
124 failed to instantiate",
125                ::core::stringify!(GUILayout_AreaScope),
126                ::core::stringify!(new),
127            )
128        });
129        <Self as IGUILayout_AreaScopeMethods>::ctor(this, screen_rect);
130        this
131    }
132}
133
134#[cfg(feature = "unity_engine-guilayout")]
135pub trait IGUILayout_HorizontalScopeMethods: IGUILayout_HorizontalScope {
136    #[doc = "`.ctor(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
137    fn ctor(self, options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>) -> () {
138        unsafe {
139            let __receiver =
140                <GUILayout_HorizontalScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x3f3c7a0usize)as*mut u8,();
142(GUILayout_HorizontalScope)__receiver,(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
143        }
144    }
145    #[doc = "`CloseScope()` overload"]
146    fn close_scope(self) -> () {
147        unsafe {
148            let __receiver =
149                <GUILayout_HorizontalScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            {
151                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
152                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
153                    panic!(
154                        "unity: virtual slot {}
155 out of range (vtable len {}
156) on the runtime class behind {}
157 (method `{}
158`)",
159                        6usize,
160                        __vt.len(),
161                        <GUILayout_HorizontalScope as ::unity::ClassIdentity>::NAME,
162                        "CloseScope",
163                    )
164                });
165                let __inner: extern "C" fn(GUILayout_HorizontalScope, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
166                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
167                __inner(__receiver, __mi)
168            }
169        }
170    }
171}
172
173#[cfg(feature = "unity_engine-guilayout")]
174impl<__T: IGUILayout_HorizontalScope> IGUILayout_HorizontalScopeMethods for __T {}
175
176#[cfg(feature = "unity_engine-guilayout")]
177impl GUILayout_HorizontalScope {
178    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
180    }
181
182    pub fn close_scope_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
184    }
185}
186
187#[cfg(feature = "unity_engine-guilayout")]
188impl GUILayout_HorizontalScope {
189    #[doc = "Direct (non-virtual) call to `GUILayout_HorizontalScope`'s own `CloseScope`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
190    pub unsafe fn close_scope(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
191        let __mi = Self::close_scope_method_info();
192        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
193        __inner(this.into(), ::core::option::Option::None)
194    }
195}
196
197#[cfg(feature = "unity_engine-guilayout")]
198impl GUILayout_HorizontalScope {
199    #[doc = "`.ctor(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` — overload selector"]
200    pub fn new(options: ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>) -> Self {
201        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
202            panic!(
203                "{}
204::{}
205 failed to instantiate",
206                ::core::stringify!(GUILayout_HorizontalScope),
207                ::core::stringify!(new),
208            )
209        });
210        <Self as IGUILayout_HorizontalScopeMethods>::ctor(this, options);
211        this
212    }
213}
214
215#[cfg(feature = "unity_engine-guilayout")]
216pub trait IGUILayout_LayoutedWindowMethods: IGUILayout_LayoutedWindow {
217    #[doc = "`.ctor(crate::unity_engine::gui::GUI_WindowFunction, crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>, crate::unity_engine::guistyle::GUIStyle)` overload"]
218    fn ctor(
219        self,
220        f: impl ::core::convert::Into<crate::unity_engine::gui::GUI_WindowFunction>,
221        screen_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
222        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
223        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
224        style: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
225    ) -> () {
226        unsafe {
227            let __receiver =
228                <GUILayout_LayoutedWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229            ::unity::il2cpp_call!((::unity::module_base()+0x3f3c7e0usize)as*mut u8,();
230(GUILayout_LayoutedWindow)__receiver,(crate::unity_engine::gui::GUI_WindowFunction)::core::convert::Into::into(f),(crate::unity_engine::rect::Rect)::core::convert::Into::into(screen_rect),(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(style))
231        }
232    }
233    #[doc = "`DoWindow(i32)` overload"]
234    fn do_window(self, window_id: impl ::core::convert::Into<i32>) -> () {
235        unsafe {
236            let __receiver =
237                <GUILayout_LayoutedWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238            ::unity::il2cpp_call!((::unity::module_base()+0x3f3c880usize)as*mut u8,();
239(GUILayout_LayoutedWindow)__receiver,(i32)::core::convert::Into::into(window_id))
240        }
241    }
242}
243
244#[cfg(feature = "unity_engine-guilayout")]
245impl<__T: IGUILayout_LayoutedWindow> IGUILayout_LayoutedWindowMethods for __T {}
246
247#[cfg(feature = "unity_engine-guilayout")]
248impl GUILayout_LayoutedWindow {
249    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
251    }
252
253    pub fn do_window_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
255    }
256}
257
258#[cfg(feature = "unity_engine-guilayout")]
259impl GUILayout_LayoutedWindow {
260    #[doc = "`.ctor(crate::unity_engine::gui::GUI_WindowFunction, crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>, crate::unity_engine::guistyle::GUIStyle)` — overload selector"]
261    pub fn new(
262        f: crate::unity_engine::gui::GUI_WindowFunction,
263        screen_rect: crate::unity_engine::rect::Rect,
264        content: crate::unity_engine::guicontent::GUIContent,
265        options: ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>,
266        style: crate::unity_engine::guistyle::GUIStyle,
267    ) -> Self {
268        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
269            panic!(
270                "{}
271::{}
272 failed to instantiate",
273                ::core::stringify!(GUILayout_LayoutedWindow),
274                ::core::stringify!(new),
275            )
276        });
277        <Self as IGUILayout_LayoutedWindowMethods>::ctor(this, f, screen_rect, content, options, style);
278        this
279    }
280}
281
282#[cfg(feature = "unity_engine-guilayout")]
283pub trait IGUILayout_ScrollViewScopeMethods: IGUILayout_ScrollViewScope {
284    #[doc = "`get_scrollPosition()` overload"]
285    fn get_scroll_position(self) -> crate::unity_engine::vector2::Vector2 {
286        unsafe {
287            let __receiver =
288                <GUILayout_ScrollViewScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
289            ::unity::il2cpp_call!((::unity::module_base()+0x3f3c980usize)as*mut u8,crate::unity_engine::vector2::Vector2;
290(GUILayout_ScrollViewScope)__receiver)
291        }
292    }
293    #[doc = "`set_scrollPosition(crate::unity_engine::vector2::Vector2)` overload"]
294    fn set_scroll_position(self, value: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
295        unsafe {
296            let __receiver =
297                <GUILayout_ScrollViewScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298            ::unity::il2cpp_call!((::unity::module_base()+0x3f3c990usize)as*mut u8,();
299(GUILayout_ScrollViewScope)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(value))
300        }
301    }
302    #[doc = "`get_handleScrollWheel()` overload"]
303    fn get_handle_scroll_wheel(self) -> bool {
304        unsafe {
305            let __receiver =
306                <GUILayout_ScrollViewScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307            ::unity::il2cpp_call!((::unity::module_base()+0x3f3c9a0usize)as*mut u8,bool;
308(GUILayout_ScrollViewScope)__receiver)
309        }
310    }
311    #[doc = "`set_handleScrollWheel(bool)` overload"]
312    fn set_handle_scroll_wheel(self, value: impl ::core::convert::Into<bool>) -> () {
313        unsafe {
314            let __receiver =
315                <GUILayout_ScrollViewScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316            ::unity::il2cpp_call!((::unity::module_base()+0x3f3c9b0usize)as*mut u8,();
317(GUILayout_ScrollViewScope)__receiver,(bool)::core::convert::Into::into(value))
318        }
319    }
320    #[doc = "`.ctor(crate::unity_engine::vector2::Vector2, bool, bool, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
321    fn ctor(
322        self,
323        scroll_position: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
324        always_show_horizontal: impl ::core::convert::Into<bool>,
325        always_show_vertical: impl ::core::convert::Into<bool>,
326        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
327    ) -> () {
328        unsafe {
329            let __receiver =
330                <GUILayout_ScrollViewScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
331            ::unity::il2cpp_call!((::unity::module_base()+0x3f3c9c0usize)as*mut u8,();
332(GUILayout_ScrollViewScope)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(scroll_position),(bool)::core::convert::Into::into(always_show_horizontal),(bool)::core::convert::Into::into(always_show_vertical),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
333        }
334    }
335    #[doc = "`CloseScope()` overload"]
336    fn close_scope(self) -> () {
337        unsafe {
338            let __receiver =
339                <GUILayout_ScrollViewScope 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(6usize).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                        6usize,
350                        __vt.len(),
351                        <GUILayout_ScrollViewScope as ::unity::ClassIdentity>::NAME,
352                        "CloseScope",
353                    )
354                });
355                let __inner: extern "C" fn(GUILayout_ScrollViewScope, ::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}
362
363#[cfg(feature = "unity_engine-guilayout")]
364impl<__T: IGUILayout_ScrollViewScope> IGUILayout_ScrollViewScopeMethods for __T {}
365
366#[cfg(feature = "unity_engine-guilayout")]
367impl GUILayout_ScrollViewScope {
368    pub fn get_scroll_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
370    }
371
372    pub fn set_scroll_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
374    }
375
376    pub fn get_handle_scroll_wheel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
378    }
379
380    pub fn set_handle_scroll_wheel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
382    }
383
384    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
386    }
387
388    pub fn close_scope_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
390    }
391}
392
393#[cfg(feature = "unity_engine-guilayout")]
394impl GUILayout_ScrollViewScope {
395    #[doc = "Direct (non-virtual) call to `GUILayout_ScrollViewScope`'s own `CloseScope`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
396    pub unsafe fn close_scope(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
397        let __mi = Self::close_scope_method_info();
398        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
399        __inner(this.into(), ::core::option::Option::None)
400    }
401}
402
403#[cfg(feature = "unity_engine-guilayout")]
404impl GUILayout_ScrollViewScope {
405    #[doc = "`.ctor(crate::unity_engine::vector2::Vector2, bool, bool, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` — overload selector"]
406    pub fn new(
407        scroll_position: crate::unity_engine::vector2::Vector2,
408        always_show_horizontal: bool,
409        always_show_vertical: bool,
410        options: ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>,
411    ) -> Self {
412        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
413            panic!(
414                "{}
415::{}
416 failed to instantiate",
417                ::core::stringify!(GUILayout_ScrollViewScope),
418                ::core::stringify!(new),
419            )
420        });
421        <Self as IGUILayout_ScrollViewScopeMethods>::ctor(this, scroll_position, always_show_horizontal, always_show_vertical, options);
422        this
423    }
424}
425
426#[cfg(feature = "unity_engine-guilayout")]
427impl GUILayout {
428    #[doc = "`Label(::unity::Il2CppString, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
429    pub fn label(
430        text: impl ::core::convert::Into<::unity::Il2CppString>,
431        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
432    ) -> () {
433        unsafe {
434            ::unity::il2cpp_call!((::unity::module_base()+0x3c43870usize)as*mut u8,();
435(::unity::Il2CppString)::core::convert::Into::into(text),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
436        }
437    }
438
439    #[doc = "`Label(::unity::Il2CppString, crate::unity_engine::guistyle::GUIStyle, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
440    pub fn label_2(
441        text: impl ::core::convert::Into<::unity::Il2CppString>,
442        style: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
443        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
444    ) -> () {
445        unsafe {
446            ::unity::il2cpp_call!((::unity::module_base()+0x3c43b10usize)as*mut u8,();
447(::unity::Il2CppString)::core::convert::Into::into(text),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(style),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
448        }
449    }
450
451    #[doc = "`DoLabel(crate::unity_engine::guicontent::GUIContent, crate::unity_engine::guistyle::GUIStyle, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
452    pub fn do_label(
453        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
454        style: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
455        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
456    ) -> () {
457        unsafe {
458            ::unity::il2cpp_call!((::unity::module_base()+0x3c43990usize)as*mut u8,();
459(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(style),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
460        }
461    }
462
463    #[doc = "`HorizontalSlider(f32, f32, f32, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
464    pub fn horizontal_slider(
465        value: impl ::core::convert::Into<f32>,
466        left_value: impl ::core::convert::Into<f32>,
467        right_value: impl ::core::convert::Into<f32>,
468        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
469    ) -> f32 {
470        unsafe {
471            ::unity::il2cpp_call!((::unity::module_base()+0x3c43c20usize)as*mut u8,f32;
472(f32)::core::convert::Into::into(value),(f32)::core::convert::Into::into(left_value),(f32)::core::convert::Into::into(right_value),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
473        }
474    }
475
476    #[doc = "`DoHorizontalSlider(f32, f32, f32, crate::unity_engine::guistyle::GUIStyle, crate::unity_engine::guistyle::GUIStyle, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
477    pub fn do_horizontal_slider(
478        value: impl ::core::convert::Into<f32>,
479        left_value: impl ::core::convert::Into<f32>,
480        right_value: impl ::core::convert::Into<f32>,
481        slider: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
482        thumb: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
483        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
484    ) -> f32 {
485        unsafe {
486            ::unity::il2cpp_call!((::unity::module_base()+0x3c43d80usize)as*mut u8,f32;
487(f32)::core::convert::Into::into(value),(f32)::core::convert::Into::into(left_value),(f32)::core::convert::Into::into(right_value),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(slider),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(thumb),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
488        }
489    }
490
491    #[doc = "`BeginHorizontal(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
492    pub fn begin_horizontal(options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>) -> () {
493        unsafe {
494            ::unity::il2cpp_call!((::unity::module_base()+0x3c43f80usize)as*mut u8,();
495(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
496        }
497    }
498
499    #[doc = "`BeginHorizontal(crate::unity_engine::guicontent::GUIContent, crate::unity_engine::guistyle::GUIStyle, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
500    pub fn begin_horizontal_2(
501        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
502        style: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
503        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
504    ) -> () {
505        unsafe {
506            ::unity::il2cpp_call!((::unity::module_base()+0x3c44030usize)as*mut u8,();
507(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(style),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
508        }
509    }
510
511    #[doc = "`EndHorizontal()` overload"]
512    pub fn end_horizontal() -> () {
513        unsafe {
514            ::unity::il2cpp_call!((::unity::module_base()+0x3c44520usize)as*mut u8,();
515            )
516        }
517    }
518
519    #[doc = "`BeginArea(crate::unity_engine::rect::Rect)` overload"]
520    pub fn begin_area(screen_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>) -> () {
521        unsafe {
522            ::unity::il2cpp_call!((::unity::module_base()+0x3c447a0usize)as*mut u8,();
523(crate::unity_engine::rect::Rect)::core::convert::Into::into(screen_rect))
524        }
525    }
526
527    #[doc = "`BeginArea(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, crate::unity_engine::guistyle::GUIStyle)` overload"]
528    pub fn begin_area_2(
529        screen_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
530        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
531        style: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
532    ) -> () {
533        unsafe {
534            ::unity::il2cpp_call!((::unity::module_base()+0x3c44870usize)as*mut u8,();
535(crate::unity_engine::rect::Rect)::core::convert::Into::into(screen_rect),(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(style))
536        }
537    }
538
539    #[doc = "`EndArea()` overload"]
540    pub fn end_area() -> () {
541        unsafe {
542            ::unity::il2cpp_call!((::unity::module_base()+0x3c44e10usize)as*mut u8,();
543            )
544        }
545    }
546
547    #[doc = "`BeginScrollView(crate::unity_engine::vector2::Vector2, bool, bool, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
548    pub fn begin_scroll_view(
549        scroll_position: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
550        always_show_horizontal: impl ::core::convert::Into<bool>,
551        always_show_vertical: impl ::core::convert::Into<bool>,
552        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
553    ) -> crate::unity_engine::vector2::Vector2 {
554        unsafe {
555            ::unity::il2cpp_call!((::unity::module_base()+0x3c45000usize)as*mut u8,crate::unity_engine::vector2::Vector2;
556(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(scroll_position),(bool)::core::convert::Into::into(always_show_horizontal),(bool)::core::convert::Into::into(always_show_vertical),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
557        }
558    }
559
560    #[doc = "`BeginScrollView(crate::unity_engine::vector2::Vector2, bool, bool, crate::unity_engine::guistyle::GUIStyle, crate::unity_engine::guistyle::GUIStyle, crate::unity_engine::guistyle::GUIStyle, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
561    pub fn begin_scroll_view_2(
562        scroll_position: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
563        always_show_horizontal: impl ::core::convert::Into<bool>,
564        always_show_vertical: impl ::core::convert::Into<bool>,
565        horizontal_scrollbar: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
566        vertical_scrollbar: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
567        background: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
568        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
569    ) -> crate::unity_engine::vector2::Vector2 {
570        unsafe {
571            ::unity::il2cpp_call!((::unity::module_base()+0x3c451d0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
572(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(scroll_position),(bool)::core::convert::Into::into(always_show_horizontal),(bool)::core::convert::Into::into(always_show_vertical),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(horizontal_scrollbar),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(vertical_scrollbar),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(background),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
573        }
574    }
575
576    #[doc = "`EndScrollView(bool)` overload"]
577    pub fn end_scroll_view(handle_scroll_wheel: impl ::core::convert::Into<bool>) -> () {
578        unsafe {
579            ::unity::il2cpp_call!((::unity::module_base()+0x3c45480usize)as*mut u8,();
580(bool)::core::convert::Into::into(handle_scroll_wheel))
581        }
582    }
583
584    #[doc = "`Window(i32, crate::unity_engine::rect::Rect, crate::unity_engine::gui::GUI_WindowFunction, ::unity::Il2CppString, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
585    pub fn window(
586        id: impl ::core::convert::Into<i32>,
587        screen_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
588        func: impl ::core::convert::Into<crate::unity_engine::gui::GUI_WindowFunction>,
589        text: impl ::core::convert::Into<::unity::Il2CppString>,
590        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
591    ) -> crate::unity_engine::rect::Rect {
592        unsafe {
593            ::unity::il2cpp_call!((::unity::module_base()+0x3c45530usize)as*mut u8,crate::unity_engine::rect::Rect;
594(i32)::core::convert::Into::into(id),(crate::unity_engine::rect::Rect)::core::convert::Into::into(screen_rect),(crate::unity_engine::gui::GUI_WindowFunction)::core::convert::Into::into(func),(::unity::Il2CppString)::core::convert::Into::into(text),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
595        }
596    }
597
598    #[doc = "`DoWindow(i32, crate::unity_engine::rect::Rect, crate::unity_engine::gui::GUI_WindowFunction, crate::unity_engine::guicontent::GUIContent, crate::unity_engine::guistyle::GUIStyle, ::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)` overload"]
599    pub fn do_window(
600        id: impl ::core::convert::Into<i32>,
601        screen_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
602        func: impl ::core::convert::Into<crate::unity_engine::gui::GUI_WindowFunction>,
603        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
604        style: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
605        options: impl ::core::convert::Into<::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>>,
606    ) -> crate::unity_engine::rect::Rect {
607        unsafe {
608            ::unity::il2cpp_call!((::unity::module_base()+0x3c45690usize)as*mut u8,crate::unity_engine::rect::Rect;
609(i32)::core::convert::Into::into(id),(crate::unity_engine::rect::Rect)::core::convert::Into::into(screen_rect),(crate::unity_engine::gui::GUI_WindowFunction)::core::convert::Into::into(func),(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(style),(::unity::Array<crate::unity_engine::guilayoutoption::GUILayoutOption>)::core::convert::Into::into(options))
610        }
611    }
612
613    #[doc = "`Width(f32)` overload"]
614    pub fn width(width: impl ::core::convert::Into<f32>) -> crate::unity_engine::guilayoutoption::GUILayoutOption {
615        unsafe {
616            ::unity::il2cpp_call!((::unity::module_base()+0x3c42a70usize)as*mut u8,crate::unity_engine::guilayoutoption::GUILayoutOption;
617(f32)::core::convert::Into::into(width))
618        }
619    }
620
621    #[doc = "`Height(f32)` overload"]
622    pub fn height(height: impl ::core::convert::Into<f32>) -> crate::unity_engine::guilayoutoption::GUILayoutOption {
623        unsafe {
624            ::unity::il2cpp_call!((::unity::module_base()+0x3c42b20usize)as*mut u8,crate::unity_engine::guilayoutoption::GUILayoutOption;
625(f32)::core::convert::Into::into(height))
626        }
627    }
628}
629
630#[cfg(feature = "unity_engine-guilayout")]
631impl GUILayout {
632    pub fn label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
633        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
634    }
635
636    pub fn label_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
637        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
638    }
639
640    pub fn do_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
641        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
642    }
643
644    pub fn horizontal_slider_method_info() -> &'static ::unity::il2cpp::MethodInfo {
645        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
646    }
647
648    pub fn do_horizontal_slider_method_info() -> &'static ::unity::il2cpp::MethodInfo {
649        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
650    }
651
652    pub fn begin_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
653        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
654    }
655
656    pub fn begin_horizontal_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
657        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
658    }
659
660    pub fn end_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
661        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
662    }
663
664    pub fn begin_area_method_info() -> &'static ::unity::il2cpp::MethodInfo {
665        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
666    }
667
668    pub fn begin_area_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
669        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
670    }
671
672    pub fn end_area_method_info() -> &'static ::unity::il2cpp::MethodInfo {
673        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
674    }
675
676    pub fn begin_scroll_view_method_info() -> &'static ::unity::il2cpp::MethodInfo {
677        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
678    }
679
680    pub fn begin_scroll_view_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
681        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
682    }
683
684    pub fn end_scroll_view_method_info() -> &'static ::unity::il2cpp::MethodInfo {
685        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
686    }
687
688    pub fn window_method_info() -> &'static ::unity::il2cpp::MethodInfo {
689        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
690    }
691
692    pub fn do_window_method_info() -> &'static ::unity::il2cpp::MethodInfo {
693        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
694    }
695
696    pub fn width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
697        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
698    }
699
700    pub fn height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
701        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
702    }
703}
704
705#[cfg(feature = "unity_engine-guilayout")]
706#[doc(hidden)]
707pub mod prelude {
708    pub use super::{
709        GUILayout, GUILayout_AreaScope, GUILayout_HorizontalScope, GUILayout_LayoutedWindow, GUILayout_ScrollViewScope, IGUILayout,
710        IGUILayout_AreaScope, IGUILayout_AreaScopeMethods, IGUILayout_HorizontalScope, IGUILayout_HorizontalScopeMethods, IGUILayout_LayoutedWindow,
711        IGUILayout_LayoutedWindowMethods, IGUILayout_ScrollViewScope, IGUILayout_ScrollViewScopeMethods,
712    };
713    #[cfg(feature = "system-object")]
714    pub use crate::system::object::IObjectMethods;
715    #[cfg(feature = "unity_engine-gui")]
716    pub use crate::unity_engine::gui::IGUI_ScopeMethods;
717    pub use crate::{system::object::IObject, unity_engine::gui::IGUI_Scope};
718}