Skip to main content

engage/generated/unity_engine/ui/
ilayoutelement_interface.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-ui-ilayoutelement_interface-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/ilayoutelement_interface/ILayoutElement_Interface.md"))]
10    #[::unity::class(namespace = "UnityEngine.UI", name = "ILayoutElement")]
11    pub struct ILayoutElement_Interface {}
12}
13
14#[cfg(feature = "unity_engine-ui-ilayoutelement_interface-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-ui-ilayoutelement_interface")]
18pub trait IILayoutElement_InterfaceMethods: IILayoutElement_Interface {
19    #[doc = "`CalculateLayoutInputHorizontal()` overload"]
20    fn calculate_layout_input_horizontal(self) -> () {
21        unsafe {
22            let __receiver =
23                <ILayoutElement_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
24            {
25                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
26                let __vi = *__vt.get(0usize).unwrap_or_else(|| {
27                    panic!(
28                        "unity: virtual slot {}
29 out of range (vtable len {}
30) on the runtime class behind {}
31 (method `{}
32`)",
33                        0usize,
34                        __vt.len(),
35                        <ILayoutElement_Interface as ::unity::ClassIdentity>::NAME,
36                        "CalculateLayoutInputHorizontal",
37                    )
38                });
39                let __inner: extern "C" fn(ILayoutElement_Interface, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
40                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
41                __inner(__receiver, __mi)
42            }
43        }
44    }
45    #[doc = "`CalculateLayoutInputVertical()` overload"]
46    fn calculate_layout_input_vertical(self) -> () {
47        unsafe {
48            let __receiver =
49                <ILayoutElement_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50            {
51                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
52                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
53                    panic!(
54                        "unity: virtual slot {}
55 out of range (vtable len {}
56) on the runtime class behind {}
57 (method `{}
58`)",
59                        1usize,
60                        __vt.len(),
61                        <ILayoutElement_Interface as ::unity::ClassIdentity>::NAME,
62                        "CalculateLayoutInputVertical",
63                    )
64                });
65                let __inner: extern "C" fn(ILayoutElement_Interface, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
66                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
67                __inner(__receiver, __mi)
68            }
69        }
70    }
71    #[doc = "`get_minWidth()` overload"]
72    fn get_min_width(self) -> f32 {
73        unsafe {
74            let __receiver =
75                <ILayoutElement_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            {
77                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78                let __vi = *__vt.get(2usize).unwrap_or_else(|| {
79                    panic!(
80                        "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85                        2usize,
86                        __vt.len(),
87                        <ILayoutElement_Interface as ::unity::ClassIdentity>::NAME,
88                        "get_minWidth",
89                    )
90                });
91                let __inner: extern "C" fn(ILayoutElement_Interface, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
92                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
93                __inner(__receiver, __mi)
94            }
95        }
96    }
97    #[doc = "`get_preferredWidth()` overload"]
98    fn get_preferred_width(self) -> f32 {
99        unsafe {
100            let __receiver =
101                <ILayoutElement_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            {
103                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
105                    panic!(
106                        "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111                        3usize,
112                        __vt.len(),
113                        <ILayoutElement_Interface as ::unity::ClassIdentity>::NAME,
114                        "get_preferredWidth",
115                    )
116                });
117                let __inner: extern "C" fn(ILayoutElement_Interface, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
118                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
119                __inner(__receiver, __mi)
120            }
121        }
122    }
123    #[doc = "`get_flexibleWidth()` overload"]
124    fn get_flexible_width(self) -> f32 {
125        unsafe {
126            let __receiver =
127                <ILayoutElement_Interface 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(4usize).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                        4usize,
138                        __vt.len(),
139                        <ILayoutElement_Interface as ::unity::ClassIdentity>::NAME,
140                        "get_flexibleWidth",
141                    )
142                });
143                let __inner: extern "C" fn(ILayoutElement_Interface, ::unity::OptionalMethod) -> f32 = ::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_minHeight()` overload"]
150    fn get_min_height(self) -> f32 {
151        unsafe {
152            let __receiver =
153                <ILayoutElement_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            {
155                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
156                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
157                    panic!(
158                        "unity: virtual slot {}
159 out of range (vtable len {}
160) on the runtime class behind {}
161 (method `{}
162`)",
163                        5usize,
164                        __vt.len(),
165                        <ILayoutElement_Interface as ::unity::ClassIdentity>::NAME,
166                        "get_minHeight",
167                    )
168                });
169                let __inner: extern "C" fn(ILayoutElement_Interface, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
170                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
171                __inner(__receiver, __mi)
172            }
173        }
174    }
175    #[doc = "`get_preferredHeight()` overload"]
176    fn get_preferred_height(self) -> f32 {
177        unsafe {
178            let __receiver =
179                <ILayoutElement_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180            {
181                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
182                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
183                    panic!(
184                        "unity: virtual slot {}
185 out of range (vtable len {}
186) on the runtime class behind {}
187 (method `{}
188`)",
189                        6usize,
190                        __vt.len(),
191                        <ILayoutElement_Interface as ::unity::ClassIdentity>::NAME,
192                        "get_preferredHeight",
193                    )
194                });
195                let __inner: extern "C" fn(ILayoutElement_Interface, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
196                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
197                __inner(__receiver, __mi)
198            }
199        }
200    }
201    #[doc = "`get_flexibleHeight()` overload"]
202    fn get_flexible_height(self) -> f32 {
203        unsafe {
204            let __receiver =
205                <ILayoutElement_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            {
207                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
208                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
209                    panic!(
210                        "unity: virtual slot {}
211 out of range (vtable len {}
212) on the runtime class behind {}
213 (method `{}
214`)",
215                        7usize,
216                        __vt.len(),
217                        <ILayoutElement_Interface as ::unity::ClassIdentity>::NAME,
218                        "get_flexibleHeight",
219                    )
220                });
221                let __inner: extern "C" fn(ILayoutElement_Interface, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
222                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
223                __inner(__receiver, __mi)
224            }
225        }
226    }
227    #[doc = "`get_layoutPriority()` overload"]
228    fn get_layout_priority(self) -> i32 {
229        unsafe {
230            let __receiver =
231                <ILayoutElement_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232            {
233                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
234                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
235                    panic!(
236                        "unity: virtual slot {}
237 out of range (vtable len {}
238) on the runtime class behind {}
239 (method `{}
240`)",
241                        8usize,
242                        __vt.len(),
243                        <ILayoutElement_Interface as ::unity::ClassIdentity>::NAME,
244                        "get_layoutPriority",
245                    )
246                });
247                let __inner: extern "C" fn(ILayoutElement_Interface, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
248                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
249                __inner(__receiver, __mi)
250            }
251        }
252    }
253}
254
255#[cfg(feature = "unity_engine-ui-ilayoutelement_interface")]
256impl<__T: IILayoutElement_Interface> IILayoutElement_InterfaceMethods for __T {}
257
258#[cfg(feature = "unity_engine-ui-ilayoutelement_interface")]
259impl ILayoutElement_Interface {
260    pub fn calculate_layout_input_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
262    }
263
264    pub fn calculate_layout_input_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
266    }
267
268    pub fn get_min_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
270    }
271
272    pub fn get_preferred_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
274    }
275
276    pub fn get_flexible_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
278    }
279
280    pub fn get_min_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
282    }
283
284    pub fn get_preferred_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
286    }
287
288    pub fn get_flexible_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
290    }
291
292    pub fn get_layout_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
294    }
295}
296
297#[cfg(feature = "unity_engine-ui-ilayoutelement_interface")]
298impl ILayoutElement_Interface {
299    #[doc = "Direct (non-virtual) call to `ILayoutElement_Interface`'s own `CalculateLayoutInputHorizontal`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
300    pub unsafe fn calculate_layout_input_horizontal(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
301        let __mi = Self::calculate_layout_input_horizontal_method_info();
302        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
303        __inner(this.into(), ::core::option::Option::None)
304    }
305
306    #[doc = "Direct (non-virtual) call to `ILayoutElement_Interface`'s own `CalculateLayoutInputVertical`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
307    pub unsafe fn calculate_layout_input_vertical(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
308        let __mi = Self::calculate_layout_input_vertical_method_info();
309        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
310        __inner(this.into(), ::core::option::Option::None)
311    }
312
313    #[doc = "Direct (non-virtual) call to `ILayoutElement_Interface`'s own `get_minWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
314    pub unsafe fn get_min_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
315        let __mi = Self::get_min_width_method_info();
316        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
317        __inner(this.into(), ::core::option::Option::None)
318    }
319
320    #[doc = "Direct (non-virtual) call to `ILayoutElement_Interface`'s own `get_preferredWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
321    pub unsafe fn get_preferred_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
322        let __mi = Self::get_preferred_width_method_info();
323        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
324        __inner(this.into(), ::core::option::Option::None)
325    }
326
327    #[doc = "Direct (non-virtual) call to `ILayoutElement_Interface`'s own `get_flexibleWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
328    pub unsafe fn get_flexible_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
329        let __mi = Self::get_flexible_width_method_info();
330        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
331        __inner(this.into(), ::core::option::Option::None)
332    }
333
334    #[doc = "Direct (non-virtual) call to `ILayoutElement_Interface`'s own `get_minHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
335    pub unsafe fn get_min_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
336        let __mi = Self::get_min_height_method_info();
337        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
338        __inner(this.into(), ::core::option::Option::None)
339    }
340
341    #[doc = "Direct (non-virtual) call to `ILayoutElement_Interface`'s own `get_preferredHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
342    pub unsafe fn get_preferred_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
343        let __mi = Self::get_preferred_height_method_info();
344        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
345        __inner(this.into(), ::core::option::Option::None)
346    }
347
348    #[doc = "Direct (non-virtual) call to `ILayoutElement_Interface`'s own `get_flexibleHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
349    pub unsafe fn get_flexible_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
350        let __mi = Self::get_flexible_height_method_info();
351        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
352        __inner(this.into(), ::core::option::Option::None)
353    }
354
355    #[doc = "Direct (non-virtual) call to `ILayoutElement_Interface`'s own `get_layoutPriority`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
356    pub unsafe fn get_layout_priority(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
357        let __mi = Self::get_layout_priority_method_info();
358        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
359        __inner(this.into(), ::core::option::Option::None)
360    }
361}
362
363#[cfg(feature = "unity_engine-ui-ilayoutelement_interface")]
364#[doc(hidden)]
365pub mod prelude {
366    pub use super::{IILayoutElement_Interface, IILayoutElement_InterfaceMethods, ILayoutElement_Interface};
367}