engage/generated/unity_engine/ui/
horizontallayoutgroup.rs1#[cfg(feature = "unity_engine-ui-horizontallayoutgroup-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 ui::{
17 horizontalorverticallayoutgroup::{HorizontalOrVerticalLayoutGroup, IHorizontalOrVerticalLayoutGroup},
18 layoutgroup::{ILayoutGroup, LayoutGroup},
19 },
20 },
21 };
22
23 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/horizontallayoutgroup/HorizontalLayoutGroup.md"))]
24 #[::unity::class(namespace = "UnityEngine.UI", name = "HorizontalLayoutGroup")]
25 #[parent(crate::unity_engine::ui::horizontalorverticallayoutgroup::HorizontalOrVerticalLayoutGroup)]
26 pub struct HorizontalLayoutGroup {}
27}
28
29#[cfg(feature = "unity_engine-ui-horizontallayoutgroup-types")]
30pub use __types::*;
31
32#[cfg(feature = "unity_engine-ui-horizontallayoutgroup")]
33pub trait IHorizontalLayoutGroupMethods: IHorizontalLayoutGroup {
34 #[doc = "`.ctor()` overload"]
35 fn ctor(self) -> () {
36 unsafe {
37 let __receiver = <HorizontalLayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 ::unity::il2cpp_call!((::unity::module_base()+0x3192b40usize)as*mut u8,();
39(HorizontalLayoutGroup)__receiver)
40 }
41 }
42 #[doc = "`CalculateLayoutInputHorizontal()` overload"]
43 fn calculate_layout_input_horizontal(self) -> () {
44 unsafe {
45 let __receiver = <HorizontalLayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 {
47 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
48 let __vi = *__vt.get(28usize).unwrap_or_else(|| {
49 panic!(
50 "unity: virtual slot {}
51 out of range (vtable len {}
52) on the runtime class behind {}
53 (method `{}
54`)",
55 28usize,
56 __vt.len(),
57 <HorizontalLayoutGroup as ::unity::ClassIdentity>::NAME,
58 "CalculateLayoutInputHorizontal",
59 )
60 });
61 let __inner: extern "C" fn(HorizontalLayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
62 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
63 __inner(__receiver, __mi)
64 }
65 }
66 }
67 #[doc = "`CalculateLayoutInputVertical()` overload"]
68 fn calculate_layout_input_vertical(self) -> () {
69 unsafe {
70 let __receiver = <HorizontalLayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 {
72 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
73 let __vi = *__vt.get(29usize).unwrap_or_else(|| {
74 panic!(
75 "unity: virtual slot {}
76 out of range (vtable len {}
77) on the runtime class behind {}
78 (method `{}
79`)",
80 29usize,
81 __vt.len(),
82 <HorizontalLayoutGroup as ::unity::ClassIdentity>::NAME,
83 "CalculateLayoutInputVertical",
84 )
85 });
86 let __inner: extern "C" fn(HorizontalLayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
87 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
88 __inner(__receiver, __mi)
89 }
90 }
91 }
92 #[doc = "`SetLayoutHorizontal()` overload"]
93 fn set_layout_horizontal(self) -> () {
94 unsafe {
95 let __receiver = <HorizontalLayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 {
97 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
98 let __vi = *__vt.get(37usize).unwrap_or_else(|| {
99 panic!(
100 "unity: virtual slot {}
101 out of range (vtable len {}
102) on the runtime class behind {}
103 (method `{}
104`)",
105 37usize,
106 __vt.len(),
107 <HorizontalLayoutGroup as ::unity::ClassIdentity>::NAME,
108 "SetLayoutHorizontal",
109 )
110 });
111 let __inner: extern "C" fn(HorizontalLayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
112 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
113 __inner(__receiver, __mi)
114 }
115 }
116 }
117 #[doc = "`SetLayoutVertical()` overload"]
118 fn set_layout_vertical(self) -> () {
119 unsafe {
120 let __receiver = <HorizontalLayoutGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 {
122 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
123 let __vi = *__vt.get(38usize).unwrap_or_else(|| {
124 panic!(
125 "unity: virtual slot {}
126 out of range (vtable len {}
127) on the runtime class behind {}
128 (method `{}
129`)",
130 38usize,
131 __vt.len(),
132 <HorizontalLayoutGroup as ::unity::ClassIdentity>::NAME,
133 "SetLayoutVertical",
134 )
135 });
136 let __inner: extern "C" fn(HorizontalLayoutGroup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
137 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
138 __inner(__receiver, __mi)
139 }
140 }
141 }
142}
143
144#[cfg(feature = "unity_engine-ui-horizontallayoutgroup")]
145impl<__T: IHorizontalLayoutGroup> IHorizontalLayoutGroupMethods for __T {}
146
147#[cfg(feature = "unity_engine-ui-horizontallayoutgroup")]
148impl HorizontalLayoutGroup {
149 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
151 }
152
153 pub fn calculate_layout_input_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
155 }
156
157 pub fn calculate_layout_input_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
159 }
160
161 pub fn set_layout_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
163 }
164
165 pub fn set_layout_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
167 }
168}
169
170#[cfg(feature = "unity_engine-ui-horizontallayoutgroup")]
171impl HorizontalLayoutGroup {
172 #[doc = "Direct (non-virtual) call to `HorizontalLayoutGroup`'s own `CalculateLayoutInputHorizontal`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
173 pub unsafe fn calculate_layout_input_horizontal(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
174 let __mi = Self::calculate_layout_input_horizontal_method_info();
175 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
176 __inner(this.into(), ::core::option::Option::None)
177 }
178
179 #[doc = "Direct (non-virtual) call to `HorizontalLayoutGroup`'s own `CalculateLayoutInputVertical`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
180 pub unsafe fn calculate_layout_input_vertical(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
181 let __mi = Self::calculate_layout_input_vertical_method_info();
182 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
183 __inner(this.into(), ::core::option::Option::None)
184 }
185
186 #[doc = "Direct (non-virtual) call to `HorizontalLayoutGroup`'s own `SetLayoutHorizontal`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
187 pub unsafe fn set_layout_horizontal(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
188 let __mi = Self::set_layout_horizontal_method_info();
189 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
190 __inner(this.into(), ::core::option::Option::None)
191 }
192
193 #[doc = "Direct (non-virtual) call to `HorizontalLayoutGroup`'s own `SetLayoutVertical`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
194 pub unsafe fn set_layout_vertical(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
195 let __mi = Self::set_layout_vertical_method_info();
196 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
197 __inner(this.into(), ::core::option::Option::None)
198 }
199}
200
201#[cfg(feature = "unity_engine-ui-horizontallayoutgroup")]
202impl HorizontalLayoutGroup {
203 #[doc = "`.ctor()` — no args"]
204 pub fn new() -> Self {
205 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
206 panic!(
207 "{}
208::{}
209 failed to instantiate",
210 ::core::stringify!(HorizontalLayoutGroup),
211 ::core::stringify!(new),
212 )
213 });
214 <Self as IHorizontalLayoutGroupMethods>::ctor(this);
215 this
216 }
217}
218
219#[cfg(feature = "unity_engine-ui-horizontallayoutgroup")]
220#[doc(hidden)]
221pub mod prelude {
222 pub use super::{HorizontalLayoutGroup, IHorizontalLayoutGroup, IHorizontalLayoutGroupMethods};
223 #[cfg(feature = "system-object")]
224 pub use crate::system::object::IObjectMethods;
225 #[cfg(feature = "unity_engine-behaviour")]
226 pub use crate::unity_engine::behaviour::IBehaviourMethods;
227 #[cfg(feature = "unity_engine-component")]
228 pub use crate::unity_engine::component::IComponentMethods;
229 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
230 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
231 #[cfg(feature = "unity_engine-monobehaviour")]
232 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
233 #[cfg(feature = "unity_engine-object_2")]
234 pub use crate::unity_engine::object_2::IObject_2Methods;
235 #[cfg(feature = "unity_engine-ui-horizontalorverticallayoutgroup")]
236 pub use crate::unity_engine::ui::horizontalorverticallayoutgroup::IHorizontalOrVerticalLayoutGroupMethods;
237 #[cfg(feature = "unity_engine-ui-layoutgroup")]
238 pub use crate::unity_engine::ui::layoutgroup::ILayoutGroupMethods;
239 pub use crate::{
240 system::object::IObject,
241 unity_engine::{
242 behaviour::IBehaviour,
243 component::IComponent,
244 event_systems::uibehaviour::IUIBehaviour,
245 monobehaviour::IMonoBehaviour,
246 object_2::IObject_2,
247 ui::{horizontalorverticallayoutgroup::IHorizontalOrVerticalLayoutGroup, layoutgroup::ILayoutGroup},
248 },
249 };
250}