1#[cfg(feature = "unity_engine-ui-layoutgroup-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::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/layoutgroup/LayoutGroup.md"))]
20 #[::unity::class(namespace = "UnityEngine.UI", name = "LayoutGroup")]
21 #[parent(crate::unity_engine::event_systems::uibehaviour::UIBehaviour)]
22 pub struct LayoutGroup {
23 #[offset(24)]
24 #[rename(name = "m_Padding")]
25 pub m_padding: crate::unity_engine::rectoffset::RectOffset,
26 #[offset(32)]
27 #[rename(name = "m_ChildAlignment")]
28 pub m_child_alignment: crate::unity_engine::textanchor::TextAnchor,
29 #[offset(40)]
30 #[rename(name = "m_Rect")]
31 pub m_rect: crate::unity_engine::recttransform::RectTransform,
32 #[offset(48)]
33 #[rename(name = "m_Tracker")]
34 pub m_tracker: crate::unity_engine::drivenrecttransformtracker::DrivenRectTransformTracker,
35 #[offset(52)]
36 #[rename(name = "m_TotalMinSize")]
37 pub m_total_min_size: crate::unity_engine::vector2::Vector2,
38 #[offset(60)]
39 #[rename(name = "m_TotalPreferredSize")]
40 pub m_total_preferred_size: crate::unity_engine::vector2::Vector2,
41 #[offset(68)]
42 #[rename(name = "m_TotalFlexibleSize")]
43 pub m_total_flexible_size: crate::unity_engine::vector2::Vector2,
44 #[offset(80)]
45 #[rename(name = "m_RectChildren")]
46 pub m_rect_children: crate::system::collections::generic::list_1::List_1<crate::unity_engine::recttransform::RectTransform>,
47 }
48}
49
50#[cfg(feature = "unity_engine-ui-layoutgroup-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-ui-layoutgroup")]
54pub trait ILayoutGroupMethods: ILayoutGroup {
55 #[doc = "`get_padding()` overload"]
56 fn get_padding(self) -> crate::unity_engine::rectoffset::RectOffset {
57 unsafe {
58 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x3c00010usize)as*mut u8,crate::unity_engine::rectoffset::RectOffset;
60(LayoutGroup)__receiver)
61 }
62 }
63 #[doc = "`set_padding(crate::unity_engine::rectoffset::RectOffset)` overload"]
64 fn set_padding(self, value: impl ::core::convert::Into<crate::unity_engine::rectoffset::RectOffset>) -> () {
65 unsafe {
66 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x3c00020usize)as*mut u8,();
68(LayoutGroup)__receiver,(crate::unity_engine::rectoffset::RectOffset)::core::convert::Into::into(value))
69 }
70 }
71 #[doc = "`get_childAlignment()` overload"]
72 fn get_child_alignment(self) -> crate::unity_engine::textanchor::TextAnchor {
73 unsafe {
74 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x3c00080usize)as*mut u8,crate::unity_engine::textanchor::TextAnchor;
76(LayoutGroup)__receiver)
77 }
78 }
79 #[doc = "`set_childAlignment(crate::unity_engine::textanchor::TextAnchor)` overload"]
80 fn set_child_alignment(self, value: impl ::core::convert::Into<crate::unity_engine::textanchor::TextAnchor>) -> () {
81 unsafe {
82 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x3c00090usize)as*mut u8,();
84(LayoutGroup)__receiver,(crate::unity_engine::textanchor::TextAnchor)::core::convert::Into::into(value))
85 }
86 }
87 #[doc = "`get_rectTransform()` overload"]
88 fn get_rect_transform(self) -> crate::unity_engine::recttransform::RectTransform {
89 unsafe {
90 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x3c000f0usize)as*mut u8,crate::unity_engine::recttransform::RectTransform;
92(LayoutGroup)__receiver)
93 }
94 }
95 #[doc = "`get_rectChildren()` overload"]
96 fn get_rect_children(self) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::recttransform::RectTransform> {
97 unsafe {
98 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x3c001b0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::recttransform::RectTransform> ;
100(LayoutGroup)__receiver)
101 }
102 }
103 #[doc = "`CalculateLayoutInputHorizontal()` overload"]
104 fn calculate_layout_input_horizontal(self) -> () {
105 unsafe {
106 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 {
108 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109 let __vi = *__vt.get(28usize).unwrap_or_else(|| {
110 panic!(
111 "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116 28usize,
117 __vt.len(),
118 <LayoutGroup as ::unity::ClassIdentity>::NAME,
119 "CalculateLayoutInputHorizontal",
120 )
121 });
122 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
123 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
124 __inner(__receiver, __mi)
125 }
126 }
127 }
128 #[doc = "`CalculateLayoutInputVertical()` overload"]
129 fn calculate_layout_input_vertical(self) -> () {
130 unsafe {
131 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 {
133 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
134 let __vi = *__vt.get(29usize).unwrap_or_else(|| {
135 panic!(
136 "unity: virtual slot {}
137 out of range (vtable len {}
138) on the runtime class behind {}
139 (method `{}
140`)",
141 29usize,
142 __vt.len(),
143 <LayoutGroup as ::unity::ClassIdentity>::NAME,
144 "CalculateLayoutInputVertical",
145 )
146 });
147 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
148 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
149 __inner(__receiver, __mi)
150 }
151 }
152 }
153 #[doc = "`get_minWidth()` overload"]
154 fn get_min_width(self) -> f32 {
155 unsafe {
156 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 {
158 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
159 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
160 panic!(
161 "unity: virtual slot {}
162 out of range (vtable len {}
163) on the runtime class behind {}
164 (method `{}
165`)",
166 30usize,
167 __vt.len(),
168 <LayoutGroup as ::unity::ClassIdentity>::NAME,
169 "get_minWidth",
170 )
171 });
172 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
173 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
174 __inner(__receiver, __mi)
175 }
176 }
177 }
178 #[doc = "`get_preferredWidth()` overload"]
179 fn get_preferred_width(self) -> f32 {
180 unsafe {
181 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 {
183 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
184 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
185 panic!(
186 "unity: virtual slot {}
187 out of range (vtable len {}
188) on the runtime class behind {}
189 (method `{}
190`)",
191 31usize,
192 __vt.len(),
193 <LayoutGroup as ::unity::ClassIdentity>::NAME,
194 "get_preferredWidth",
195 )
196 });
197 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
198 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
199 __inner(__receiver, __mi)
200 }
201 }
202 }
203 #[doc = "`get_flexibleWidth()` overload"]
204 fn get_flexible_width(self) -> f32 {
205 unsafe {
206 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 {
208 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
209 let __vi = *__vt.get(32usize).unwrap_or_else(|| {
210 panic!(
211 "unity: virtual slot {}
212 out of range (vtable len {}
213) on the runtime class behind {}
214 (method `{}
215`)",
216 32usize,
217 __vt.len(),
218 <LayoutGroup as ::unity::ClassIdentity>::NAME,
219 "get_flexibleWidth",
220 )
221 });
222 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
223 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
224 __inner(__receiver, __mi)
225 }
226 }
227 }
228 #[doc = "`get_minHeight()` overload"]
229 fn get_min_height(self) -> f32 {
230 unsafe {
231 let __receiver = <LayoutGroup 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(33usize).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 33usize,
242 __vt.len(),
243 <LayoutGroup as ::unity::ClassIdentity>::NAME,
244 "get_minHeight",
245 )
246 });
247 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> f32 = ::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 #[doc = "`get_preferredHeight()` overload"]
254 fn get_preferred_height(self) -> f32 {
255 unsafe {
256 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257 {
258 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
259 let __vi = *__vt.get(34usize).unwrap_or_else(|| {
260 panic!(
261 "unity: virtual slot {}
262 out of range (vtable len {}
263) on the runtime class behind {}
264 (method `{}
265`)",
266 34usize,
267 __vt.len(),
268 <LayoutGroup as ::unity::ClassIdentity>::NAME,
269 "get_preferredHeight",
270 )
271 });
272 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
273 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
274 __inner(__receiver, __mi)
275 }
276 }
277 }
278 #[doc = "`get_flexibleHeight()` overload"]
279 fn get_flexible_height(self) -> f32 {
280 unsafe {
281 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282 {
283 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
284 let __vi = *__vt.get(35usize).unwrap_or_else(|| {
285 panic!(
286 "unity: virtual slot {}
287 out of range (vtable len {}
288) on the runtime class behind {}
289 (method `{}
290`)",
291 35usize,
292 __vt.len(),
293 <LayoutGroup as ::unity::ClassIdentity>::NAME,
294 "get_flexibleHeight",
295 )
296 });
297 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
298 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
299 __inner(__receiver, __mi)
300 }
301 }
302 }
303 #[doc = "`get_layoutPriority()` overload"]
304 fn get_layout_priority(self) -> i32 {
305 unsafe {
306 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307 {
308 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
309 let __vi = *__vt.get(36usize).unwrap_or_else(|| {
310 panic!(
311 "unity: virtual slot {}
312 out of range (vtable len {}
313) on the runtime class behind {}
314 (method `{}
315`)",
316 36usize,
317 __vt.len(),
318 <LayoutGroup as ::unity::ClassIdentity>::NAME,
319 "get_layoutPriority",
320 )
321 });
322 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
323 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
324 __inner(__receiver, __mi)
325 }
326 }
327 }
328 #[doc = "`SetLayoutHorizontal()` overload"]
329 fn set_layout_horizontal(self) -> () {
330 unsafe {
331 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
332 {
333 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
334 let __vi = *__vt.get(37usize).unwrap_or_else(|| {
335 panic!(
336 "unity: virtual slot {}
337 out of range (vtable len {}
338) on the runtime class behind {}
339 (method `{}
340`)",
341 37usize,
342 __vt.len(),
343 <LayoutGroup as ::unity::ClassIdentity>::NAME,
344 "SetLayoutHorizontal",
345 )
346 });
347 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
348 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
349 __inner(__receiver, __mi)
350 }
351 }
352 }
353 #[doc = "`SetLayoutVertical()` overload"]
354 fn set_layout_vertical(self) -> () {
355 unsafe {
356 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
357 {
358 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
359 let __vi = *__vt.get(38usize).unwrap_or_else(|| {
360 panic!(
361 "unity: virtual slot {}
362 out of range (vtable len {}
363) on the runtime class behind {}
364 (method `{}
365`)",
366 38usize,
367 __vt.len(),
368 <LayoutGroup as ::unity::ClassIdentity>::NAME,
369 "SetLayoutVertical",
370 )
371 });
372 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
373 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
374 __inner(__receiver, __mi)
375 }
376 }
377 }
378 #[doc = "`.ctor()` overload"]
379 fn ctor(self) -> () {
380 unsafe {
381 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
382 ::unity::il2cpp_call!((::unity::module_base()+0x3c005d0usize)as*mut u8,();
383(LayoutGroup)__receiver)
384 }
385 }
386 #[doc = "`OnEnable()` overload"]
387 fn on_enable(self) -> () {
388 unsafe {
389 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
390 {
391 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
392 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
393 panic!(
394 "unity: virtual slot {}
395 out of range (vtable len {}
396) on the runtime class behind {}
397 (method `{}
398`)",
399 5usize,
400 __vt.len(),
401 <LayoutGroup as ::unity::ClassIdentity>::NAME,
402 "OnEnable",
403 )
404 });
405 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
406 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
407 __inner(__receiver, __mi)
408 }
409 }
410 }
411 #[doc = "`OnDisable()` overload"]
412 fn on_disable(self) -> () {
413 unsafe {
414 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
415 {
416 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
417 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
418 panic!(
419 "unity: virtual slot {}
420 out of range (vtable len {}
421) on the runtime class behind {}
422 (method `{}
423`)",
424 7usize,
425 __vt.len(),
426 <LayoutGroup as ::unity::ClassIdentity>::NAME,
427 "OnDisable",
428 )
429 });
430 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
431 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
432 __inner(__receiver, __mi)
433 }
434 }
435 }
436 #[doc = "`OnDidApplyAnimationProperties()` overload"]
437 fn on_did_apply_animation_properties(self) -> () {
438 unsafe {
439 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
440 {
441 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
442 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
443 panic!(
444 "unity: virtual slot {}
445 out of range (vtable len {}
446) on the runtime class behind {}
447 (method `{}
448`)",
449 13usize,
450 __vt.len(),
451 <LayoutGroup as ::unity::ClassIdentity>::NAME,
452 "OnDidApplyAnimationProperties",
453 )
454 });
455 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
456 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
457 __inner(__receiver, __mi)
458 }
459 }
460 }
461 #[doc = "`GetTotalMinSize(i32)` overload"]
462 fn get_total_min_size(self, axis: impl ::core::convert::Into<i32>) -> f32 {
463 unsafe {
464 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
465 ::unity::il2cpp_call!((::unity::module_base()+0x3c00540usize)as*mut u8,f32;
466(LayoutGroup)__receiver,(i32)::core::convert::Into::into(axis))
467 }
468 }
469 #[doc = "`GetTotalPreferredSize(i32)` overload"]
470 fn get_total_preferred_size(self, axis: impl ::core::convert::Into<i32>) -> f32 {
471 unsafe {
472 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
473 ::unity::il2cpp_call!((::unity::module_base()+0x3c00560usize)as*mut u8,f32;
474(LayoutGroup)__receiver,(i32)::core::convert::Into::into(axis))
475 }
476 }
477 #[doc = "`GetTotalFlexibleSize(i32)` overload"]
478 fn get_total_flexible_size(self, axis: impl ::core::convert::Into<i32>) -> f32 {
479 unsafe {
480 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
481 ::unity::il2cpp_call!((::unity::module_base()+0x3c00580usize)as*mut u8,f32;
482(LayoutGroup)__receiver,(i32)::core::convert::Into::into(axis))
483 }
484 }
485 #[doc = "`GetStartOffset(i32, f32)` overload"]
486 fn get_start_offset(self, axis: impl ::core::convert::Into<i32>, required_space_without_padding: impl ::core::convert::Into<f32>) -> f32 {
487 unsafe {
488 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
489 ::unity::il2cpp_call!((::unity::module_base()+0x3c00920usize)as*mut u8,f32;
490(LayoutGroup)__receiver,(i32)::core::convert::Into::into(axis),(f32)::core::convert::Into::into(required_space_without_padding))
491 }
492 }
493 #[doc = "`GetAlignmentOnAxis(i32)` overload"]
494 fn get_alignment_on_axis(self, axis: impl ::core::convert::Into<i32>) -> f32 {
495 unsafe {
496 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
497 ::unity::il2cpp_call!((::unity::module_base()+0x3c00a20usize)as*mut u8,f32;
498(LayoutGroup)__receiver,(i32)::core::convert::Into::into(axis))
499 }
500 }
501 #[doc = "`SetLayoutInputForAxis(f32, f32, f32, i32)` overload"]
502 fn set_layout_input_for_axis(
503 self,
504 total_min: impl ::core::convert::Into<f32>,
505 total_preferred: impl ::core::convert::Into<f32>,
506 total_flexible: impl ::core::convert::Into<f32>,
507 axis: impl ::core::convert::Into<i32>,
508 ) -> () {
509 unsafe {
510 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
511 ::unity::il2cpp_call!((::unity::module_base()+0x3c00a60usize)as*mut u8,();
512(LayoutGroup)__receiver,(f32)::core::convert::Into::into(total_min),(f32)::core::convert::Into::into(total_preferred),(f32)::core::convert::Into::into(total_flexible),(i32)::core::convert::Into::into(axis))
513 }
514 }
515 #[doc = "`SetChildAlongAxis(crate::unity_engine::recttransform::RectTransform, i32, f32)` overload"]
516 fn set_child_along_axis(
517 self,
518 rect: impl ::core::convert::Into<crate::unity_engine::recttransform::RectTransform>,
519 axis: impl ::core::convert::Into<i32>,
520 pos: impl ::core::convert::Into<f32>,
521 ) -> () {
522 unsafe {
523 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
524 ::unity::il2cpp_call!((::unity::module_base()+0x3c00ac0usize)as*mut u8,();
525(LayoutGroup)__receiver,(crate::unity_engine::recttransform::RectTransform)::core::convert::Into::into(rect),(i32)::core::convert::Into::into(axis),(f32)::core::convert::Into::into(pos))
526 }
527 }
528 #[doc = "`SetChildAlongAxisWithScale(crate::unity_engine::recttransform::RectTransform, i32, f32, f32)` overload"]
529 fn set_child_along_axis_with_scale(
530 self,
531 rect: impl ::core::convert::Into<crate::unity_engine::recttransform::RectTransform>,
532 axis: impl ::core::convert::Into<i32>,
533 pos: impl ::core::convert::Into<f32>,
534 scale_factor: impl ::core::convert::Into<f32>,
535 ) -> () {
536 unsafe {
537 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
538 ::unity::il2cpp_call!((::unity::module_base()+0x3c00b80usize)as*mut u8,();
539(LayoutGroup)__receiver,(crate::unity_engine::recttransform::RectTransform)::core::convert::Into::into(rect),(i32)::core::convert::Into::into(axis),(f32)::core::convert::Into::into(pos),(f32)::core::convert::Into::into(scale_factor))
540 }
541 }
542 #[doc = "`SetChildAlongAxis(crate::unity_engine::recttransform::RectTransform, i32, f32, f32)` overload"]
543 fn set_child_along_axis_2(
544 self,
545 rect: impl ::core::convert::Into<crate::unity_engine::recttransform::RectTransform>,
546 axis: impl ::core::convert::Into<i32>,
547 pos: impl ::core::convert::Into<f32>,
548 size: impl ::core::convert::Into<f32>,
549 ) -> () {
550 unsafe {
551 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
552 ::unity::il2cpp_call!((::unity::module_base()+0x3c00d20usize)as*mut u8,();
553(LayoutGroup)__receiver,(crate::unity_engine::recttransform::RectTransform)::core::convert::Into::into(rect),(i32)::core::convert::Into::into(axis),(f32)::core::convert::Into::into(pos),(f32)::core::convert::Into::into(size))
554 }
555 }
556 #[doc = "`SetChildAlongAxisWithScale(crate::unity_engine::recttransform::RectTransform, i32, f32, f32, f32)` overload"]
557 fn set_child_along_axis_with_scale_2(
558 self,
559 rect: impl ::core::convert::Into<crate::unity_engine::recttransform::RectTransform>,
560 axis: impl ::core::convert::Into<i32>,
561 pos: impl ::core::convert::Into<f32>,
562 size: impl ::core::convert::Into<f32>,
563 scale_factor: impl ::core::convert::Into<f32>,
564 ) -> () {
565 unsafe {
566 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
567 ::unity::il2cpp_call!((::unity::module_base()+0x3c00df0usize)as*mut u8,();
568(LayoutGroup)__receiver,(crate::unity_engine::recttransform::RectTransform)::core::convert::Into::into(rect),(i32)::core::convert::Into::into(axis),(f32)::core::convert::Into::into(pos),(f32)::core::convert::Into::into(size),(f32)::core::convert::Into::into(scale_factor))
569 }
570 }
571 #[doc = "`get_isRootLayoutGroup()` overload"]
572 fn get_is_root_layout_group(self) -> bool {
573 unsafe {
574 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
575 ::unity::il2cpp_call!((::unity::module_base()+0x3c00fa0usize)as*mut u8,bool;
576(LayoutGroup)__receiver)
577 }
578 }
579 #[doc = "`OnRectTransformDimensionsChange()` overload"]
580 fn on_rect_transform_dimensions_change(self) -> () {
581 unsafe {
582 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
583 {
584 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
585 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
586 panic!(
587 "unity: virtual slot {}
588 out of range (vtable len {}
589) on the runtime class behind {}
590 (method `{}
591`)",
592 10usize,
593 __vt.len(),
594 <LayoutGroup as ::unity::ClassIdentity>::NAME,
595 "OnRectTransformDimensionsChange",
596 )
597 });
598 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
599 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
600 __inner(__receiver, __mi)
601 }
602 }
603 }
604 #[doc = "`OnTransformChildrenChanged()` overload"]
605 fn on_transform_children_changed(self) -> () {
606 unsafe {
607 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
608 {
609 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
610 let __vi = *__vt.get(39usize).unwrap_or_else(|| {
611 panic!(
612 "unity: virtual slot {}
613 out of range (vtable len {}
614) on the runtime class behind {}
615 (method `{}
616`)",
617 39usize,
618 __vt.len(),
619 <LayoutGroup as ::unity::ClassIdentity>::NAME,
620 "OnTransformChildrenChanged",
621 )
622 });
623 let __inner: extern "C" fn(LayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
624 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
625 __inner(__receiver, __mi)
626 }
627 }
628 }
629 fn set_property<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
630 self,
631 current_value: impl ::core::convert::Into<*mut M0>,
632 new_value: impl ::core::convert::Into<M0>,
633 ) -> () {
634 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
635 ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<LayoutGroup as ::unity::ClassIdentity>::class(), "SetProperty", 2));
636 #[allow(clippy::type_complexity)]
637 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
638 ::std::sync::OnceLock::new();
639 let _ = false;
640 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
641 ::core::result::Result::Ok(mi) => *mi,
642 ::core::result::Result::Err(e) => {
643 panic!(
644 "method lookup failed: {}
645::{}
646: {}
647",
648 <LayoutGroup as ::unity::ClassIdentity>::NAME,
649 "SetProperty",
650 e
651 )
652 },
653 };
654 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
655 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
656 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
657 let mut __guard = __cache.lock().unwrap();
658 *__guard
659 .entry(__key)
660 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
661 };
662 unsafe {
663 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
664 let __f: extern "C" fn(LayoutGroup, *mut M0, M0, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__inflated.method_ptr);
665 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
666 __f(
667 __receiver,
668 ::core::convert::Into::into(current_value),
669 ::core::convert::Into::into(new_value),
670 ::core::option::Option::Some(__mi_opaque),
671 )
672 }
673 }
674 #[doc = "`SetDirty()` overload"]
675 fn set_dirty(self) -> () {
676 unsafe {
677 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
678 ::unity::il2cpp_call!((::unity::module_base()+0x3c00740usize)as*mut u8,();
679(LayoutGroup)__receiver)
680 }
681 }
682 #[doc = "`DelayedSetDirty(crate::unity_engine::recttransform::RectTransform)` overload"]
683 fn delayed_set_dirty(
684 self,
685 rect_transform: impl ::core::convert::Into<crate::unity_engine::recttransform::RectTransform>,
686 ) -> crate::system::collections::ienumerator::IEnumerator {
687 unsafe {
688 let __receiver = <LayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
689 ::unity::il2cpp_call!((::unity::module_base()+0x3c01140usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
690(LayoutGroup)__receiver,(crate::unity_engine::recttransform::RectTransform)::core::convert::Into::into(rect_transform))
691 }
692 }
693}
694
695#[cfg(feature = "unity_engine-ui-layoutgroup")]
696impl<__T: ILayoutGroup> ILayoutGroupMethods for __T {}
697
698#[cfg(feature = "unity_engine-ui-layoutgroup")]
699impl LayoutGroup {
700 pub fn get_padding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
701 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
702 }
703
704 pub fn set_padding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
705 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
706 }
707
708 pub fn get_child_alignment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
709 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
710 }
711
712 pub fn set_child_alignment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
713 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
714 }
715
716 pub fn get_rect_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
717 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
718 }
719
720 pub fn get_rect_children_method_info() -> &'static ::unity::il2cpp::MethodInfo {
721 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
722 }
723
724 pub fn calculate_layout_input_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
725 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
726 }
727
728 pub fn calculate_layout_input_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
729 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
730 }
731
732 pub fn get_min_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
733 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
734 }
735
736 pub fn get_preferred_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
737 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
738 }
739
740 pub fn get_flexible_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
741 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
742 }
743
744 pub fn get_min_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
745 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
746 }
747
748 pub fn get_preferred_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
749 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
750 }
751
752 pub fn get_flexible_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
753 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
754 }
755
756 pub fn get_layout_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
757 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
758 }
759
760 pub fn set_layout_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
761 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
762 }
763
764 pub fn set_layout_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
765 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
766 }
767
768 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
769 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
770 }
771
772 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
773 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
774 }
775
776 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
777 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
778 }
779
780 pub fn on_did_apply_animation_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
781 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
782 }
783
784 pub fn get_total_min_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
785 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
786 }
787
788 pub fn get_total_preferred_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
789 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
790 }
791
792 pub fn get_total_flexible_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
793 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
794 }
795
796 pub fn get_start_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
797 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
798 }
799
800 pub fn get_alignment_on_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
801 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
802 }
803
804 pub fn set_layout_input_for_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
805 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
806 }
807
808 pub fn set_child_along_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
809 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
810 }
811
812 pub fn set_child_along_axis_with_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
813 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
814 }
815
816 pub fn set_child_along_axis_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
817 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
818 }
819
820 pub fn set_child_along_axis_with_scale_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
821 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
822 }
823
824 pub fn get_is_root_layout_group_method_info() -> &'static ::unity::il2cpp::MethodInfo {
825 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
826 }
827
828 pub fn on_rect_transform_dimensions_change_method_info() -> &'static ::unity::il2cpp::MethodInfo {
829 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
830 }
831
832 pub fn on_transform_children_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
833 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
834 }
835
836 pub fn set_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
837 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
838 }
839
840 pub fn delayed_set_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
841 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
842 }
843}
844
845#[cfg(feature = "unity_engine-ui-layoutgroup")]
846impl LayoutGroup {
847 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `CalculateLayoutInputHorizontal`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
848 pub unsafe fn calculate_layout_input_horizontal(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
849 let __mi = Self::calculate_layout_input_horizontal_method_info();
850 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
851 __inner(this.into(), ::core::option::Option::None)
852 }
853
854 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `CalculateLayoutInputVertical`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
855 pub unsafe fn calculate_layout_input_vertical(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
856 let __mi = Self::calculate_layout_input_vertical_method_info();
857 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
858 __inner(this.into(), ::core::option::Option::None)
859 }
860
861 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `get_minWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
862 pub unsafe fn get_min_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
863 let __mi = Self::get_min_width_method_info();
864 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
865 __inner(this.into(), ::core::option::Option::None)
866 }
867
868 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `get_preferredWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
869 pub unsafe fn get_preferred_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
870 let __mi = Self::get_preferred_width_method_info();
871 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
872 __inner(this.into(), ::core::option::Option::None)
873 }
874
875 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `get_flexibleWidth`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
876 pub unsafe fn get_flexible_width(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
877 let __mi = Self::get_flexible_width_method_info();
878 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
879 __inner(this.into(), ::core::option::Option::None)
880 }
881
882 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `get_minHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
883 pub unsafe fn get_min_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
884 let __mi = Self::get_min_height_method_info();
885 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
886 __inner(this.into(), ::core::option::Option::None)
887 }
888
889 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `get_preferredHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
890 pub unsafe fn get_preferred_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
891 let __mi = Self::get_preferred_height_method_info();
892 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
893 __inner(this.into(), ::core::option::Option::None)
894 }
895
896 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `get_flexibleHeight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
897 pub unsafe fn get_flexible_height(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
898 let __mi = Self::get_flexible_height_method_info();
899 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
900 __inner(this.into(), ::core::option::Option::None)
901 }
902
903 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `get_layoutPriority`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
904 pub unsafe fn get_layout_priority(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
905 let __mi = Self::get_layout_priority_method_info();
906 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
907 __inner(this.into(), ::core::option::Option::None)
908 }
909
910 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `SetLayoutHorizontal`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
911 pub unsafe fn set_layout_horizontal(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
912 let __mi = Self::set_layout_horizontal_method_info();
913 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
914 __inner(this.into(), ::core::option::Option::None)
915 }
916
917 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `SetLayoutVertical`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
918 pub unsafe fn set_layout_vertical(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
919 let __mi = Self::set_layout_vertical_method_info();
920 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
921 __inner(this.into(), ::core::option::Option::None)
922 }
923
924 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
925 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
926 let __mi = Self::on_enable_method_info();
927 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
928 __inner(this.into(), ::core::option::Option::None)
929 }
930
931 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
932 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
933 let __mi = Self::on_disable_method_info();
934 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
935 __inner(this.into(), ::core::option::Option::None)
936 }
937
938 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `OnDidApplyAnimationProperties`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
939 pub unsafe fn on_did_apply_animation_properties(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
940 let __mi = Self::on_did_apply_animation_properties_method_info();
941 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
942 __inner(this.into(), ::core::option::Option::None)
943 }
944
945 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `OnRectTransformDimensionsChange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
946 pub unsafe fn on_rect_transform_dimensions_change(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
947 let __mi = Self::on_rect_transform_dimensions_change_method_info();
948 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
949 __inner(this.into(), ::core::option::Option::None)
950 }
951
952 #[doc = "Direct (non-virtual) call to `LayoutGroup`'s own `OnTransformChildrenChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
953 pub unsafe fn on_transform_children_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
954 let __mi = Self::on_transform_children_changed_method_info();
955 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
956 __inner(this.into(), ::core::option::Option::None)
957 }
958}
959
960#[cfg(feature = "unity_engine-ui-layoutgroup")]
961impl LayoutGroup {
962 #[doc = "`.ctor()` — no args"]
963 pub fn new() -> Self {
964 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
965 panic!(
966 "{}
967::{}
968 failed to instantiate",
969 ::core::stringify!(LayoutGroup),
970 ::core::stringify!(new),
971 )
972 });
973 <Self as ILayoutGroupMethods>::ctor(this);
974 this
975 }
976}
977
978#[cfg(feature = "unity_engine-ui-layoutgroup")]
979#[doc(hidden)]
980pub mod prelude {
981 pub use super::{ILayoutGroup, ILayoutGroupMethods, LayoutGroup};
982 #[cfg(feature = "system-object")]
983 pub use crate::system::object::IObjectMethods;
984 #[cfg(feature = "unity_engine-behaviour")]
985 pub use crate::unity_engine::behaviour::IBehaviourMethods;
986 #[cfg(feature = "unity_engine-component")]
987 pub use crate::unity_engine::component::IComponentMethods;
988 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
989 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
990 #[cfg(feature = "unity_engine-monobehaviour")]
991 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
992 #[cfg(feature = "unity_engine-object_2")]
993 pub use crate::unity_engine::object_2::IObject_2Methods;
994 pub use crate::{
995 system::object::IObject,
996 unity_engine::{
997 behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
998 object_2::IObject_2,
999 },
1000 };
1001}