Skip to main content

engage/generated/unity_engine/ui/
icanvaselement.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-ui-icanvaselement-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/icanvaselement/ICanvasElement.md"))]
10    #[::unity::class(namespace = "UnityEngine.UI", name = "ICanvasElement")]
11    pub struct ICanvasElement {}
12}
13
14#[cfg(feature = "unity_engine-ui-icanvaselement-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-ui-icanvaselement")]
18pub trait IICanvasElementMethods: IICanvasElement {
19    #[doc = "`Rebuild(crate::unity_engine::ui::canvasupdate::CanvasUpdate)` overload"]
20    fn rebuild(self, executing: impl ::core::convert::Into<crate::unity_engine::ui::canvasupdate::CanvasUpdate>) -> () {
21        unsafe {
22            let __receiver = <ICanvasElement 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                        <ICanvasElement as ::unity::ClassIdentity>::NAME,
35                        "Rebuild",
36                    )
37                });
38                let __inner: extern "C" fn(ICanvasElement, crate::unity_engine::ui::canvasupdate::CanvasUpdate, ::unity::OptionalMethod) -> () =
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, ::core::convert::Into::into(executing), __mi)
42            }
43        }
44    }
45    #[doc = "`get_transform()` overload"]
46    fn get_transform(self) -> crate::unity_engine::transform::Transform {
47        unsafe {
48            let __receiver = <ICanvasElement 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                        <ICanvasElement as ::unity::ClassIdentity>::NAME,
61                        "get_transform",
62                    )
63                });
64                let __inner: extern "C" fn(ICanvasElement, ::unity::OptionalMethod) -> crate::unity_engine::transform::Transform =
65                    ::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 = "`LayoutComplete()` overload"]
72    fn layout_complete(self) -> () {
73        unsafe {
74            let __receiver = <ICanvasElement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            {
76                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
77                let __vi = *__vt.get(2usize).unwrap_or_else(|| {
78                    panic!(
79                        "unity: virtual slot {}
80 out of range (vtable len {}
81) on the runtime class behind {}
82 (method `{}
83`)",
84                        2usize,
85                        __vt.len(),
86                        <ICanvasElement as ::unity::ClassIdentity>::NAME,
87                        "LayoutComplete",
88                    )
89                });
90                let __inner: extern "C" fn(ICanvasElement, ::unity::OptionalMethod) -> () = ::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 = "`GraphicUpdateComplete()` overload"]
97    fn graphic_update_complete(self) -> () {
98        unsafe {
99            let __receiver = <ICanvasElement 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                        <ICanvasElement as ::unity::ClassIdentity>::NAME,
112                        "GraphicUpdateComplete",
113                    )
114                });
115                let __inner: extern "C" fn(ICanvasElement, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
116                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
117                __inner(__receiver, __mi)
118            }
119        }
120    }
121    #[doc = "`IsDestroyed()` overload"]
122    fn is_destroyed(self) -> bool {
123        unsafe {
124            let __receiver = <ICanvasElement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            {
126                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
127                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
128                    panic!(
129                        "unity: virtual slot {}
130 out of range (vtable len {}
131) on the runtime class behind {}
132 (method `{}
133`)",
134                        4usize,
135                        __vt.len(),
136                        <ICanvasElement as ::unity::ClassIdentity>::NAME,
137                        "IsDestroyed",
138                    )
139                });
140                let __inner: extern "C" fn(ICanvasElement, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
141                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
142                __inner(__receiver, __mi)
143            }
144        }
145    }
146}
147
148#[cfg(feature = "unity_engine-ui-icanvaselement")]
149impl<__T: IICanvasElement> IICanvasElementMethods for __T {}
150
151#[cfg(feature = "unity_engine-ui-icanvaselement")]
152impl ICanvasElement {
153    pub fn rebuild_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
155    }
156
157    pub fn get_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
159    }
160
161    pub fn layout_complete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
163    }
164
165    pub fn graphic_update_complete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
167    }
168
169    pub fn is_destroyed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
171    }
172}
173
174#[cfg(feature = "unity_engine-ui-icanvaselement")]
175impl ICanvasElement {
176    #[doc = "Direct (non-virtual) call to `ICanvasElement`'s own `Rebuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
177    pub unsafe fn rebuild(
178        this: impl ::core::convert::Into<::unity::IlInstance>,
179        executing: crate::unity_engine::ui::canvasupdate::CanvasUpdate,
180    ) -> () {
181        let __mi = Self::rebuild_method_info();
182        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::ui::canvasupdate::CanvasUpdate, ::unity::OptionalMethod) -> () =
183            ::core::mem::transmute(__mi.method_ptr);
184        __inner(this.into(), executing, ::core::option::Option::None)
185    }
186
187    #[doc = "Direct (non-virtual) call to `ICanvasElement`'s own `get_transform`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
188    pub unsafe fn get_transform(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::transform::Transform {
189        let __mi = Self::get_transform_method_info();
190        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::transform::Transform =
191            ::core::mem::transmute(__mi.method_ptr);
192        __inner(this.into(), ::core::option::Option::None)
193    }
194
195    #[doc = "Direct (non-virtual) call to `ICanvasElement`'s own `LayoutComplete`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
196    pub unsafe fn layout_complete(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
197        let __mi = Self::layout_complete_method_info();
198        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
199        __inner(this.into(), ::core::option::Option::None)
200    }
201
202    #[doc = "Direct (non-virtual) call to `ICanvasElement`'s own `GraphicUpdateComplete`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
203    pub unsafe fn graphic_update_complete(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
204        let __mi = Self::graphic_update_complete_method_info();
205        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
206        __inner(this.into(), ::core::option::Option::None)
207    }
208
209    #[doc = "Direct (non-virtual) call to `ICanvasElement`'s own `IsDestroyed`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
210    pub unsafe fn is_destroyed(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
211        let __mi = Self::is_destroyed_method_info();
212        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
213        __inner(this.into(), ::core::option::Option::None)
214    }
215}
216
217#[cfg(feature = "unity_engine-ui-icanvaselement")]
218#[doc(hidden)]
219pub mod prelude {
220    pub use super::{ICanvasElement, IICanvasElement, IICanvasElementMethods};
221}