engage/generated/unity_engine/ui/
iclippable.rs1#[cfg(feature = "unity_engine-ui-iclippable-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/iclippable/IClippable.md"))]
10 #[::unity::class(namespace = "UnityEngine.UI", name = "IClippable")]
11 pub struct IClippable {}
12}
13
14#[cfg(feature = "unity_engine-ui-iclippable-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-ui-iclippable")]
18pub trait IIClippableMethods: IIClippable {
19 #[doc = "`get_gameObject()` overload"]
20 fn get_game_object(self) -> crate::unity_engine::gameobject::GameObject {
21 unsafe {
22 let __receiver = <IClippable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 {
24 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
26 panic!(
27 "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32 0usize,
33 __vt.len(),
34 <IClippable as ::unity::ClassIdentity>::NAME,
35 "get_gameObject",
36 )
37 });
38 let __inner: extern "C" fn(IClippable, ::unity::OptionalMethod) -> crate::unity_engine::gameobject::GameObject =
39 ::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 = "`RecalculateClipping()` overload"]
46 fn recalculate_clipping(self) -> () {
47 unsafe {
48 let __receiver = <IClippable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 {
50 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
51 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
52 panic!(
53 "unity: virtual slot {}
54 out of range (vtable len {}
55) on the runtime class behind {}
56 (method `{}
57`)",
58 1usize,
59 __vt.len(),
60 <IClippable as ::unity::ClassIdentity>::NAME,
61 "RecalculateClipping",
62 )
63 });
64 let __inner: extern "C" fn(IClippable, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
65 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
66 __inner(__receiver, __mi)
67 }
68 }
69 }
70 #[doc = "`get_rectTransform()` overload"]
71 fn get_rect_transform(self) -> crate::unity_engine::recttransform::RectTransform {
72 unsafe {
73 let __receiver = <IClippable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 {
75 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
77 panic!(
78 "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83 2usize,
84 __vt.len(),
85 <IClippable as ::unity::ClassIdentity>::NAME,
86 "get_rectTransform",
87 )
88 });
89 let __inner: extern "C" fn(IClippable, ::unity::OptionalMethod) -> crate::unity_engine::recttransform::RectTransform =
90 ::core::mem::transmute(__vi.method_ptr);
91 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
92 __inner(__receiver, __mi)
93 }
94 }
95 }
96 #[doc = "`Cull(crate::unity_engine::rect::Rect, bool)` overload"]
97 fn cull(self, clip_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>, valid_rect: impl ::core::convert::Into<bool>) -> () {
98 unsafe {
99 let __receiver = <IClippable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 {
101 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
103 panic!(
104 "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109 3usize,
110 __vt.len(),
111 <IClippable as ::unity::ClassIdentity>::NAME,
112 "Cull",
113 )
114 });
115 let __inner: extern "C" fn(IClippable, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
116 ::core::mem::transmute(__vi.method_ptr);
117 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118 __inner(
119 __receiver,
120 ::core::convert::Into::into(clip_rect),
121 ::core::convert::Into::into(valid_rect),
122 __mi,
123 )
124 }
125 }
126 }
127 #[doc = "`SetClipRect(crate::unity_engine::rect::Rect, bool)` overload"]
128 fn set_clip_rect(self, value: impl ::core::convert::Into<crate::unity_engine::rect::Rect>, valid_rect: impl ::core::convert::Into<bool>) -> () {
129 unsafe {
130 let __receiver = <IClippable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 {
132 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
133 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
134 panic!(
135 "unity: virtual slot {}
136 out of range (vtable len {}
137) on the runtime class behind {}
138 (method `{}
139`)",
140 4usize,
141 __vt.len(),
142 <IClippable as ::unity::ClassIdentity>::NAME,
143 "SetClipRect",
144 )
145 });
146 let __inner: extern "C" fn(IClippable, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
147 ::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(
150 __receiver,
151 ::core::convert::Into::into(value),
152 ::core::convert::Into::into(valid_rect),
153 __mi,
154 )
155 }
156 }
157 }
158 #[doc = "`SetClipSoftness(crate::unity_engine::vector2::Vector2)` overload"]
159 fn set_clip_softness(self, clip_softness: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
160 unsafe {
161 let __receiver = <IClippable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 {
163 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
164 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
165 panic!(
166 "unity: virtual slot {}
167 out of range (vtable len {}
168) on the runtime class behind {}
169 (method `{}
170`)",
171 5usize,
172 __vt.len(),
173 <IClippable as ::unity::ClassIdentity>::NAME,
174 "SetClipSoftness",
175 )
176 });
177 let __inner: extern "C" fn(IClippable, crate::unity_engine::vector2::Vector2, ::unity::OptionalMethod) -> () =
178 ::core::mem::transmute(__vi.method_ptr);
179 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
180 __inner(__receiver, ::core::convert::Into::into(clip_softness), __mi)
181 }
182 }
183 }
184}
185
186#[cfg(feature = "unity_engine-ui-iclippable")]
187impl<__T: IIClippable> IIClippableMethods for __T {}
188
189#[cfg(feature = "unity_engine-ui-iclippable")]
190impl IClippable {
191 pub fn get_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
193 }
194
195 pub fn recalculate_clipping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
197 }
198
199 pub fn get_rect_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
201 }
202
203 pub fn cull_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
205 }
206
207 pub fn set_clip_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
209 }
210
211 pub fn set_clip_softness_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
213 }
214}
215
216#[cfg(feature = "unity_engine-ui-iclippable")]
217impl IClippable {
218 #[doc = "Direct (non-virtual) call to `IClippable`'s own `get_gameObject`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
219 pub unsafe fn get_game_object(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::gameobject::GameObject {
220 let __mi = Self::get_game_object_method_info();
221 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::gameobject::GameObject =
222 ::core::mem::transmute(__mi.method_ptr);
223 __inner(this.into(), ::core::option::Option::None)
224 }
225
226 #[doc = "Direct (non-virtual) call to `IClippable`'s own `RecalculateClipping`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
227 pub unsafe fn recalculate_clipping(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
228 let __mi = Self::recalculate_clipping_method_info();
229 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
230 __inner(this.into(), ::core::option::Option::None)
231 }
232
233 #[doc = "Direct (non-virtual) call to `IClippable`'s own `get_rectTransform`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
234 pub unsafe fn get_rect_transform(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::recttransform::RectTransform {
235 let __mi = Self::get_rect_transform_method_info();
236 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::recttransform::RectTransform =
237 ::core::mem::transmute(__mi.method_ptr);
238 __inner(this.into(), ::core::option::Option::None)
239 }
240
241 #[doc = "Direct (non-virtual) call to `IClippable`'s own `Cull`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
242 pub unsafe fn cull(this: impl ::core::convert::Into<::unity::IlInstance>, clip_rect: crate::unity_engine::rect::Rect, valid_rect: bool) -> () {
243 let __mi = Self::cull_method_info();
244 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
245 ::core::mem::transmute(__mi.method_ptr);
246 __inner(this.into(), clip_rect, valid_rect, ::core::option::Option::None)
247 }
248
249 #[doc = "Direct (non-virtual) call to `IClippable`'s own `SetClipRect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250 pub unsafe fn set_clip_rect(
251 this: impl ::core::convert::Into<::unity::IlInstance>,
252 value: crate::unity_engine::rect::Rect,
253 valid_rect: bool,
254 ) -> () {
255 let __mi = Self::set_clip_rect_method_info();
256 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
257 ::core::mem::transmute(__mi.method_ptr);
258 __inner(this.into(), value, valid_rect, ::core::option::Option::None)
259 }
260
261 #[doc = "Direct (non-virtual) call to `IClippable`'s own `SetClipSoftness`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
262 pub unsafe fn set_clip_softness(
263 this: impl ::core::convert::Into<::unity::IlInstance>,
264 clip_softness: crate::unity_engine::vector2::Vector2,
265 ) -> () {
266 let __mi = Self::set_clip_softness_method_info();
267 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::vector2::Vector2, ::unity::OptionalMethod) -> () =
268 ::core::mem::transmute(__mi.method_ptr);
269 __inner(this.into(), clip_softness, ::core::option::Option::None)
270 }
271}
272
273#[cfg(feature = "unity_engine-ui-iclippable")]
274#[doc(hidden)]
275pub mod prelude {
276 pub use super::{IClippable, IIClippable, IIClippableMethods};
277}