Skip to main content

engage/generated/unity_engine/
rectoffset.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rectoffset-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rectoffset/RectOffset.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "RectOffset")]
12    #[parent(crate::system::object::Object)]
13    pub struct RectOffset {
14        #[offset(16)]
15        #[rename(name = "m_Ptr")]
16        pub m_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "m_SourceStyle")]
19        pub m_source_style: ::unity::IlInstance,
20    }
21}
22
23#[cfg(feature = "unity_engine-rectoffset-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-rectoffset")]
27impl RectOffset {
28    #[doc = "`InternalCreate()` overload"]
29    pub fn internal_create() -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2f7ba50usize)as*mut u8, ::unity::IntPtr;
32            )
33        }
34    }
35
36    #[doc = "`InternalDestroy(::unity::IntPtr)` overload"]
37    pub fn internal_destroy(ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x2f7c0b0usize)as*mut u8,();
40(::unity::IntPtr)::core::convert::Into::into(ptr))
41        }
42    }
43}
44
45#[cfg(feature = "unity_engine-rectoffset")]
46pub trait IRectOffsetMethods: IRectOffset {
47    #[doc = "`.ctor()` overload"]
48    fn ctor(self) -> () {
49        unsafe {
50            let __receiver = <RectOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x2f7ba00usize)as*mut u8,();
52(RectOffset)__receiver)
53        }
54    }
55    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
56    fn ctor_2(
57        self,
58        source_style: impl ::core::convert::Into<crate::system::object::Object>,
59        source: impl ::core::convert::Into<::unity::IntPtr>,
60    ) -> () {
61        unsafe {
62            let __receiver = <RectOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x2f7ba90usize)as*mut u8,();
64(RectOffset)__receiver,(crate::system::object::Object)::core::convert::Into::into(source_style),(::unity::IntPtr)::core::convert::Into::into(source))
65        }
66    }
67    #[doc = "`Finalize()` overload"]
68    fn finalize(self) -> () {
69        unsafe {
70            let __receiver = <RectOffset 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(1usize).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                        1usize,
81                        __vt.len(),
82                        <RectOffset as ::unity::ClassIdentity>::NAME,
83                        "Finalize",
84                    )
85                });
86                let __inner: extern "C" fn(RectOffset, ::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 = "`ToString()` overload"]
93    fn to_string(self) -> ::unity::Il2CppString {
94        unsafe {
95            let __receiver = <RectOffset 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(3usize).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                        3usize,
106                        __vt.len(),
107                        <RectOffset as ::unity::ClassIdentity>::NAME,
108                        "ToString",
109                    )
110                });
111                let __inner: extern "C" fn(RectOffset, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::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 = "`Destroy()` overload"]
118    fn destroy(self) -> () {
119        unsafe {
120            let __receiver = <RectOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121            ::unity::il2cpp_call!((::unity::module_base()+0x2f7bbc0usize)as*mut u8,();
122(RectOffset)__receiver)
123        }
124    }
125    #[doc = "`get_left()` overload"]
126    fn get_left(self) -> i32 {
127        unsafe {
128            let __receiver = <RectOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            ::unity::il2cpp_call!((::unity::module_base()+0x2f7bf70usize)as*mut u8,i32;
130(RectOffset)__receiver)
131        }
132    }
133    #[doc = "`get_right()` overload"]
134    fn get_right(self) -> i32 {
135        unsafe {
136            let __receiver = <RectOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            ::unity::il2cpp_call!((::unity::module_base()+0x2f7bfc0usize)as*mut u8,i32;
138(RectOffset)__receiver)
139        }
140    }
141    #[doc = "`get_top()` overload"]
142    fn get_top(self) -> i32 {
143        unsafe {
144            let __receiver = <RectOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            ::unity::il2cpp_call!((::unity::module_base()+0x2f7c010usize)as*mut u8,i32;
146(RectOffset)__receiver)
147        }
148    }
149    #[doc = "`get_bottom()` overload"]
150    fn get_bottom(self) -> i32 {
151        unsafe {
152            let __receiver = <RectOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            ::unity::il2cpp_call!((::unity::module_base()+0x2f7c060usize)as*mut u8,i32;
154(RectOffset)__receiver)
155        }
156    }
157    #[doc = "`get_horizontal()` overload"]
158    fn get_horizontal(self) -> i32 {
159        unsafe {
160            let __receiver = <RectOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x2f7c100usize)as*mut u8,i32;
162(RectOffset)__receiver)
163        }
164    }
165    #[doc = "`get_vertical()` overload"]
166    fn get_vertical(self) -> i32 {
167        unsafe {
168            let __receiver = <RectOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169            ::unity::il2cpp_call!((::unity::module_base()+0x2f7c150usize)as*mut u8,i32;
170(RectOffset)__receiver)
171        }
172    }
173    #[doc = "`Remove(crate::unity_engine::rect::Rect)` overload"]
174    fn remove(self, rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>) -> crate::unity_engine::rect::Rect {
175        unsafe {
176            let __receiver = <RectOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            ::unity::il2cpp_call!((::unity::module_base()+0x2f7c1a0usize)as*mut u8,crate::unity_engine::rect::Rect;
178(RectOffset)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(rect))
179        }
180    }
181    #[doc = "`Remove_Injected(*mutcrate::unity_engine::rect::Rect, *mutcrate::unity_engine::rect::Rect)` overload"]
182    fn remove_injected(self) -> (crate::unity_engine::rect::Rect, crate::unity_engine::rect::Rect) {
183        unsafe {
184            let __receiver = <RectOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rect::Rect>::uninit();
186            let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::rect::Rect>::uninit();
187            ::unity::il2cpp_call!((::unity::module_base()+0x2f7c210usize)as*mut u8,();
188(RectOffset)__receiver,(*mut crate::unity_engine::rect::Rect)__out_0.as_mut_ptr(),(*mut crate::unity_engine::rect::Rect)__out_1.as_mut_ptr());
189            (__out_0.assume_init(), __out_1.assume_init())
190        }
191    }
192}
193
194#[cfg(feature = "unity_engine-rectoffset")]
195impl<__T: IRectOffset> IRectOffsetMethods for __T {}
196
197#[cfg(feature = "unity_engine-rectoffset")]
198impl RectOffset {
199    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
201    }
202
203    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
205    }
206
207    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
209    }
210
211    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
213    }
214
215    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
217    }
218
219    pub fn internal_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
221    }
222
223    pub fn internal_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
225    }
226
227    pub fn get_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
229    }
230
231    pub fn get_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
233    }
234
235    pub fn get_top_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
237    }
238
239    pub fn get_bottom_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
241    }
242
243    pub fn get_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
245    }
246
247    pub fn get_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
249    }
250
251    pub fn remove_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
253    }
254
255    pub fn remove_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
257    }
258}
259
260#[cfg(feature = "unity_engine-rectoffset")]
261impl RectOffset {
262    #[doc = "Direct (non-virtual) call to `RectOffset`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
263    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
264        let __mi = Self::finalize_method_info();
265        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
266        __inner(this.into(), ::core::option::Option::None)
267    }
268
269    #[doc = "Direct (non-virtual) call to `RectOffset`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
270    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
271        let __mi = Self::to_string_method_info();
272        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
273        __inner(this.into(), ::core::option::Option::None)
274    }
275}
276
277#[cfg(feature = "unity_engine-rectoffset")]
278impl RectOffset {
279    #[doc = "`.ctor()` — no args"]
280    pub fn new() -> Self {
281        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
282            panic!(
283                "{}
284::{}
285 failed to instantiate",
286                ::core::stringify!(RectOffset),
287                ::core::stringify!(new),
288            )
289        });
290        <Self as IRectOffsetMethods>::ctor(this);
291        this
292    }
293
294    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
295    pub fn new_2(source_style: crate::system::object::Object, source: ::unity::IntPtr) -> Self {
296        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
297            panic!(
298                "{}
299::{}
300 failed to instantiate",
301                ::core::stringify!(RectOffset),
302                ::core::stringify!(new_2),
303            )
304        });
305        <Self as IRectOffsetMethods>::ctor_2(this, source_style, source);
306        this
307    }
308}
309
310#[cfg(feature = "unity_engine-rectoffset")]
311#[doc(hidden)]
312pub mod prelude {
313    pub use super::{IRectOffset, IRectOffsetMethods, RectOffset};
314    pub use crate::system::object::IObject;
315    #[cfg(feature = "system-object")]
316    pub use crate::system::object::IObjectMethods;
317}