engage/generated/unity_engine/
canvas.rs1#[cfg(feature = "unity_engine-canvas-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 delegate::{Delegate, IDelegate},
11 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
12 object::{IObject, Object},
13 },
14 unity_engine::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 object_2::{IObject_2, Object_2},
18 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/canvas/Canvas.md"))]
22 #[::unity::class(namespace = "UnityEngine", name = "Canvas")]
23 #[parent(crate::unity_engine::behaviour::Behaviour)]
24 pub struct Canvas {
25 #[static_field]
26 #[rename(name = "preWillRenderCanvases")]
27 pub pre_will_render_canvases: crate::unity_engine::canvas::Canvas_WillRenderCanvases,
28 #[static_field]
29 #[rename(name = "willRenderCanvases")]
30 pub will_render_canvases: crate::unity_engine::canvas::Canvas_WillRenderCanvases,
31 }
32
33 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/canvas/Canvas_WillRenderCanvases.md"))]
34 #[::unity::class(namespace = "UnityEngine", name = "Canvas.WillRenderCanvases")]
35 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
36 pub struct Canvas_WillRenderCanvases {}
37}
38
39#[cfg(feature = "unity_engine-canvas-types")]
40pub use __types::*;
41
42#[cfg(feature = "unity_engine-canvas")]
43impl Canvas {
44 #[doc = "`add_preWillRenderCanvases(crate::unity_engine::canvas::Canvas_WillRenderCanvases)` overload"]
45 pub fn add_pre_will_render_canvases(value: impl ::core::convert::Into<crate::unity_engine::canvas::Canvas_WillRenderCanvases>) -> () {
46 unsafe {
47 ::unity::il2cpp_call!((::unity::module_base()+0x3f20050usize)as*mut u8,();
48(crate::unity_engine::canvas::Canvas_WillRenderCanvases)::core::convert::Into::into(value))
49 }
50 }
51
52 #[doc = "`remove_preWillRenderCanvases(crate::unity_engine::canvas::Canvas_WillRenderCanvases)` overload"]
53 pub fn remove_pre_will_render_canvases(value: impl ::core::convert::Into<crate::unity_engine::canvas::Canvas_WillRenderCanvases>) -> () {
54 unsafe {
55 ::unity::il2cpp_call!((::unity::module_base()+0x3f20110usize)as*mut u8,();
56(crate::unity_engine::canvas::Canvas_WillRenderCanvases)::core::convert::Into::into(value))
57 }
58 }
59
60 #[doc = "`add_willRenderCanvases(crate::unity_engine::canvas::Canvas_WillRenderCanvases)` overload"]
61 pub fn add_will_render_canvases(value: impl ::core::convert::Into<crate::unity_engine::canvas::Canvas_WillRenderCanvases>) -> () {
62 unsafe {
63 ::unity::il2cpp_call!((::unity::module_base()+0x3f201d0usize)as*mut u8,();
64(crate::unity_engine::canvas::Canvas_WillRenderCanvases)::core::convert::Into::into(value))
65 }
66 }
67
68 #[doc = "`remove_willRenderCanvases(crate::unity_engine::canvas::Canvas_WillRenderCanvases)` overload"]
69 pub fn remove_will_render_canvases(value: impl ::core::convert::Into<crate::unity_engine::canvas::Canvas_WillRenderCanvases>) -> () {
70 unsafe {
71 ::unity::il2cpp_call!((::unity::module_base()+0x3f202a0usize)as*mut u8,();
72(crate::unity_engine::canvas::Canvas_WillRenderCanvases)::core::convert::Into::into(value))
73 }
74 }
75
76 #[doc = "`GetDefaultCanvasTextMaterial()` overload"]
77 pub fn get_default_canvas_text_material() -> crate::unity_engine::material::Material {
78 unsafe {
79 ::unity::il2cpp_call!((::unity::module_base()+0x3f20f70usize)as*mut u8,crate::unity_engine::material::Material;
80 )
81 }
82 }
83
84 #[doc = "`GetDefaultCanvasMaterial()` overload"]
85 pub fn get_default_canvas_material() -> crate::unity_engine::material::Material {
86 unsafe {
87 ::unity::il2cpp_call!((::unity::module_base()+0x3f20fb0usize)as*mut u8,crate::unity_engine::material::Material;
88 )
89 }
90 }
91
92 #[doc = "`GetETC1SupportedCanvasMaterial()` overload"]
93 pub fn get_etc1_supported_canvas_material() -> crate::unity_engine::material::Material {
94 unsafe {
95 ::unity::il2cpp_call!((::unity::module_base()+0x3f20ff0usize)as*mut u8,crate::unity_engine::material::Material;
96 )
97 }
98 }
99
100 #[doc = "`ForceUpdateCanvases()` overload"]
101 pub fn force_update_canvases() -> () {
102 unsafe {
103 ::unity::il2cpp_call!((::unity::module_base()+0x3f21080usize)as*mut u8,();
104 )
105 }
106 }
107
108 #[doc = "`SendPreWillRenderCanvases()` overload"]
109 pub fn send_pre_will_render_canvases() -> () {
110 unsafe {
111 ::unity::il2cpp_call!((::unity::module_base()+0x3f21110usize)as*mut u8,();
112 )
113 }
114 }
115
116 #[doc = "`SendWillRenderCanvases()` overload"]
117 pub fn send_will_render_canvases() -> () {
118 unsafe {
119 ::unity::il2cpp_call!((::unity::module_base()+0x3f21170usize)as*mut u8,();
120 )
121 }
122 }
123}
124
125#[cfg(feature = "unity_engine-canvas")]
126pub trait ICanvasMethods: ICanvas {
127 #[doc = "`get_renderMode()` overload"]
128 fn get_render_mode(self) -> crate::unity_engine::rendermode::RenderMode {
129 unsafe {
130 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 ::unity::il2cpp_call!((::unity::module_base()+0x3f20370usize)as*mut u8,crate::unity_engine::rendermode::RenderMode;
132(Canvas)__receiver)
133 }
134 }
135 #[doc = "`set_renderMode(crate::unity_engine::rendermode::RenderMode)` overload"]
136 fn set_render_mode(self, value: impl ::core::convert::Into<crate::unity_engine::rendermode::RenderMode>) -> () {
137 unsafe {
138 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 ::unity::il2cpp_call!((::unity::module_base()+0x3f203c0usize)as*mut u8,();
140(Canvas)__receiver,(crate::unity_engine::rendermode::RenderMode)::core::convert::Into::into(value))
141 }
142 }
143 #[doc = "`get_isRootCanvas()` overload"]
144 fn get_is_root_canvas(self) -> bool {
145 unsafe {
146 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 ::unity::il2cpp_call!((::unity::module_base()+0x3f20410usize)as*mut u8,bool;
148(Canvas)__receiver)
149 }
150 }
151 #[doc = "`get_pixelRect()` overload"]
152 fn get_pixel_rect(self) -> crate::unity_engine::rect::Rect {
153 unsafe {
154 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 ::unity::il2cpp_call!((::unity::module_base()+0x3f20460usize)as*mut u8,crate::unity_engine::rect::Rect;
156(Canvas)__receiver)
157 }
158 }
159 #[doc = "`get_scaleFactor()` overload"]
160 fn get_scale_factor(self) -> f32 {
161 unsafe {
162 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 ::unity::il2cpp_call!((::unity::module_base()+0x3f20510usize)as*mut u8,f32;
164(Canvas)__receiver)
165 }
166 }
167 #[doc = "`set_scaleFactor(f32)` overload"]
168 fn set_scale_factor(self, value: impl ::core::convert::Into<f32>) -> () {
169 unsafe {
170 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171 ::unity::il2cpp_call!((::unity::module_base()+0x3f20560usize)as*mut u8,();
172(Canvas)__receiver,(f32)::core::convert::Into::into(value))
173 }
174 }
175 #[doc = "`get_referencePixelsPerUnit()` overload"]
176 fn get_reference_pixels_per_unit(self) -> f32 {
177 unsafe {
178 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 ::unity::il2cpp_call!((::unity::module_base()+0x3f205b0usize)as*mut u8,f32;
180(Canvas)__receiver)
181 }
182 }
183 #[doc = "`set_referencePixelsPerUnit(f32)` overload"]
184 fn set_reference_pixels_per_unit(self, value: impl ::core::convert::Into<f32>) -> () {
185 unsafe {
186 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187 ::unity::il2cpp_call!((::unity::module_base()+0x3f20600usize)as*mut u8,();
188(Canvas)__receiver,(f32)::core::convert::Into::into(value))
189 }
190 }
191 #[doc = "`get_overridePixelPerfect()` overload"]
192 fn get_override_pixel_perfect(self) -> bool {
193 unsafe {
194 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x3f20650usize)as*mut u8,bool;
196(Canvas)__receiver)
197 }
198 }
199 #[doc = "`set_overridePixelPerfect(bool)` overload"]
200 fn set_override_pixel_perfect(self, value: impl ::core::convert::Into<bool>) -> () {
201 unsafe {
202 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 ::unity::il2cpp_call!((::unity::module_base()+0x3f206a0usize)as*mut u8,();
204(Canvas)__receiver,(bool)::core::convert::Into::into(value))
205 }
206 }
207 #[doc = "`get_pixelPerfect()` overload"]
208 fn get_pixel_perfect(self) -> bool {
209 unsafe {
210 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 ::unity::il2cpp_call!((::unity::module_base()+0x3f206f0usize)as*mut u8,bool;
212(Canvas)__receiver)
213 }
214 }
215 #[doc = "`set_pixelPerfect(bool)` overload"]
216 fn set_pixel_perfect(self, value: impl ::core::convert::Into<bool>) -> () {
217 unsafe {
218 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219 ::unity::il2cpp_call!((::unity::module_base()+0x3f20740usize)as*mut u8,();
220(Canvas)__receiver,(bool)::core::convert::Into::into(value))
221 }
222 }
223 #[doc = "`get_planeDistance()` overload"]
224 fn get_plane_distance(self) -> f32 {
225 unsafe {
226 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227 ::unity::il2cpp_call!((::unity::module_base()+0x3f20790usize)as*mut u8,f32;
228(Canvas)__receiver)
229 }
230 }
231 #[doc = "`set_planeDistance(f32)` overload"]
232 fn set_plane_distance(self, value: impl ::core::convert::Into<f32>) -> () {
233 unsafe {
234 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!((::unity::module_base()+0x3f207e0usize)as*mut u8,();
236(Canvas)__receiver,(f32)::core::convert::Into::into(value))
237 }
238 }
239 #[doc = "`get_renderOrder()` overload"]
240 fn get_render_order(self) -> i32 {
241 unsafe {
242 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243 ::unity::il2cpp_call!((::unity::module_base()+0x3f20830usize)as*mut u8,i32;
244(Canvas)__receiver)
245 }
246 }
247 #[doc = "`get_overrideSorting()` overload"]
248 fn get_override_sorting(self) -> bool {
249 unsafe {
250 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 ::unity::il2cpp_call!((::unity::module_base()+0x3f20880usize)as*mut u8,bool;
252(Canvas)__receiver)
253 }
254 }
255 #[doc = "`set_overrideSorting(bool)` overload"]
256 fn set_override_sorting(self, value: impl ::core::convert::Into<bool>) -> () {
257 unsafe {
258 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259 ::unity::il2cpp_call!((::unity::module_base()+0x3f208d0usize)as*mut u8,();
260(Canvas)__receiver,(bool)::core::convert::Into::into(value))
261 }
262 }
263 #[doc = "`get_sortingOrder()` overload"]
264 fn get_sorting_order(self) -> i32 {
265 unsafe {
266 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267 ::unity::il2cpp_call!((::unity::module_base()+0x3f20920usize)as*mut u8,i32;
268(Canvas)__receiver)
269 }
270 }
271 #[doc = "`set_sortingOrder(i32)` overload"]
272 fn set_sorting_order(self, value: impl ::core::convert::Into<i32>) -> () {
273 unsafe {
274 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
275 ::unity::il2cpp_call!((::unity::module_base()+0x3f20970usize)as*mut u8,();
276(Canvas)__receiver,(i32)::core::convert::Into::into(value))
277 }
278 }
279 #[doc = "`get_targetDisplay()` overload"]
280 fn get_target_display(self) -> i32 {
281 unsafe {
282 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
283 ::unity::il2cpp_call!((::unity::module_base()+0x3f209c0usize)as*mut u8,i32;
284(Canvas)__receiver)
285 }
286 }
287 #[doc = "`set_targetDisplay(i32)` overload"]
288 fn set_target_display(self, value: impl ::core::convert::Into<i32>) -> () {
289 unsafe {
290 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
291 ::unity::il2cpp_call!((::unity::module_base()+0x3f20a10usize)as*mut u8,();
292(Canvas)__receiver,(i32)::core::convert::Into::into(value))
293 }
294 }
295 #[doc = "`get_sortingLayerID()` overload"]
296 fn get_sorting_layer_id(self) -> i32 {
297 unsafe {
298 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
299 ::unity::il2cpp_call!((::unity::module_base()+0x3f20a60usize)as*mut u8,i32;
300(Canvas)__receiver)
301 }
302 }
303 #[doc = "`set_sortingLayerID(i32)` overload"]
304 fn set_sorting_layer_id(self, value: impl ::core::convert::Into<i32>) -> () {
305 unsafe {
306 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307 ::unity::il2cpp_call!((::unity::module_base()+0x3f20ab0usize)as*mut u8,();
308(Canvas)__receiver,(i32)::core::convert::Into::into(value))
309 }
310 }
311 #[doc = "`get_cachedSortingLayerValue()` overload"]
312 fn get_cached_sorting_layer_value(self) -> i32 {
313 unsafe {
314 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315 ::unity::il2cpp_call!((::unity::module_base()+0x3f20b00usize)as*mut u8,i32;
316(Canvas)__receiver)
317 }
318 }
319 #[doc = "`get_additionalShaderChannels()` overload"]
320 fn get_additional_shader_channels(self) -> crate::unity_engine::additionalcanvasshaderchannels::AdditionalCanvasShaderChannels {
321 unsafe {
322 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323 ::unity::il2cpp_call!((::unity::module_base()+0x3f20b50usize)as*mut u8,crate::unity_engine::additionalcanvasshaderchannels::AdditionalCanvasShaderChannels;
324(Canvas)__receiver)
325 }
326 }
327 #[doc = "`set_additionalShaderChannels(crate::unity_engine::additionalcanvasshaderchannels::AdditionalCanvasShaderChannels)` overload"]
328 fn set_additional_shader_channels(
329 self,
330 value: impl ::core::convert::Into<crate::unity_engine::additionalcanvasshaderchannels::AdditionalCanvasShaderChannels>,
331 ) -> () {
332 unsafe {
333 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
334 ::unity::il2cpp_call!((::unity::module_base()+0x3f20ba0usize)as*mut u8,();
335(Canvas)__receiver,(crate::unity_engine::additionalcanvasshaderchannels::AdditionalCanvasShaderChannels)::core::convert::Into::into(value))
336 }
337 }
338 #[doc = "`get_sortingLayerName()` overload"]
339 fn get_sorting_layer_name(self) -> ::unity::Il2CppString {
340 unsafe {
341 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
342 ::unity::il2cpp_call!((::unity::module_base()+0x3f20bf0usize)as*mut u8, ::unity::Il2CppString;
343(Canvas)__receiver)
344 }
345 }
346 #[doc = "`set_sortingLayerName(::unity::Il2CppString)` overload"]
347 fn set_sorting_layer_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
348 unsafe {
349 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
350 ::unity::il2cpp_call!((::unity::module_base()+0x3f20c40usize)as*mut u8,();
351(Canvas)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
352 }
353 }
354 #[doc = "`get_rootCanvas()` overload"]
355 fn get_root_canvas(self) -> crate::unity_engine::canvas::Canvas {
356 unsafe {
357 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
358 ::unity::il2cpp_call!((::unity::module_base()+0x3f20c90usize)as*mut u8,crate::unity_engine::canvas::Canvas;
359(Canvas)__receiver)
360 }
361 }
362 #[doc = "`get_renderingDisplaySize()` overload"]
363 fn get_rendering_display_size(self) -> crate::unity_engine::vector2::Vector2 {
364 unsafe {
365 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
366 ::unity::il2cpp_call!((::unity::module_base()+0x3f20ce0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
367(Canvas)__receiver)
368 }
369 }
370 #[doc = "`get_worldCamera()` overload"]
371 fn get_world_camera(self) -> crate::unity_engine::camera::Camera {
372 unsafe {
373 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
374 ::unity::il2cpp_call!((::unity::module_base()+0x3f20d90usize)as*mut u8,crate::unity_engine::camera::Camera;
375(Canvas)__receiver)
376 }
377 }
378 #[doc = "`set_worldCamera(crate::unity_engine::camera::Camera)` overload"]
379 fn set_world_camera(self, value: impl ::core::convert::Into<crate::unity_engine::camera::Camera>) -> () {
380 unsafe {
381 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
382 ::unity::il2cpp_call!((::unity::module_base()+0x3f20de0usize)as*mut u8,();
383(Canvas)__receiver,(crate::unity_engine::camera::Camera)::core::convert::Into::into(value))
384 }
385 }
386 #[doc = "`get_normalizedSortingGridSize()` overload"]
387 fn get_normalized_sorting_grid_size(self) -> f32 {
388 unsafe {
389 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
390 ::unity::il2cpp_call!((::unity::module_base()+0x3f20e30usize)as*mut u8,f32;
391(Canvas)__receiver)
392 }
393 }
394 #[doc = "`set_normalizedSortingGridSize(f32)` overload"]
395 fn set_normalized_sorting_grid_size(self, value: impl ::core::convert::Into<f32>) -> () {
396 unsafe {
397 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
398 ::unity::il2cpp_call!((::unity::module_base()+0x3f20e80usize)as*mut u8,();
399(Canvas)__receiver,(f32)::core::convert::Into::into(value))
400 }
401 }
402 #[doc = "`get_sortingGridNormalizedSize()` overload"]
403 fn get_sorting_grid_normalized_size(self) -> i32 {
404 unsafe {
405 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
406 ::unity::il2cpp_call!((::unity::module_base()+0x3f20ed0usize)as*mut u8,i32;
407(Canvas)__receiver)
408 }
409 }
410 #[doc = "`set_sortingGridNormalizedSize(i32)` overload"]
411 fn set_sorting_grid_normalized_size(self, value: impl ::core::convert::Into<i32>) -> () {
412 unsafe {
413 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
414 ::unity::il2cpp_call!((::unity::module_base()+0x3f20f20usize)as*mut u8,();
415(Canvas)__receiver,(i32)::core::convert::Into::into(value))
416 }
417 }
418 #[doc = "`UpdateCanvasRectTransform(bool)` overload"]
419 fn update_canvas_rect_transform(self, align_with_camera: impl ::core::convert::Into<bool>) -> () {
420 unsafe {
421 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
422 ::unity::il2cpp_call!((::unity::module_base()+0x3f21030usize)as*mut u8,();
423(Canvas)__receiver,(bool)::core::convert::Into::into(align_with_camera))
424 }
425 }
426 #[doc = "`.ctor()` overload"]
427 fn ctor(self) -> () {
428 unsafe {
429 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
430 ::unity::il2cpp_call!((::unity::module_base()+0x3f213e0usize)as*mut u8,();
431(Canvas)__receiver)
432 }
433 }
434 #[doc = "`get_pixelRect_Injected(*mutcrate::unity_engine::rect::Rect)` overload"]
435 fn get_pixel_rect_injected(self) -> crate::unity_engine::rect::Rect {
436 unsafe {
437 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
438 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rect::Rect>::uninit();
439 ::unity::il2cpp_call!((::unity::module_base()+0x3f204c0usize)as*mut u8,();
440(Canvas)__receiver,(*mut crate::unity_engine::rect::Rect)__out_0.as_mut_ptr());
441 __out_0.assume_init()
442 }
443 }
444 #[doc = "`get_renderingDisplaySize_Injected(*mutcrate::unity_engine::vector2::Vector2)` overload"]
445 fn get_rendering_display_size_injected(self) -> crate::unity_engine::vector2::Vector2 {
446 unsafe {
447 let __receiver = <Canvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
448 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
449 ::unity::il2cpp_call!((::unity::module_base()+0x3f20d40usize)as*mut u8,();
450(Canvas)__receiver,(*mut crate::unity_engine::vector2::Vector2)__out_0.as_mut_ptr());
451 __out_0.assume_init()
452 }
453 }
454}
455
456#[cfg(feature = "unity_engine-canvas")]
457impl<__T: ICanvas> ICanvasMethods for __T {}
458
459#[cfg(feature = "unity_engine-canvas")]
460impl Canvas {
461 pub fn add_pre_will_render_canvases_method_info() -> &'static ::unity::il2cpp::MethodInfo {
462 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
463 }
464
465 pub fn remove_pre_will_render_canvases_method_info() -> &'static ::unity::il2cpp::MethodInfo {
466 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
467 }
468
469 pub fn add_will_render_canvases_method_info() -> &'static ::unity::il2cpp::MethodInfo {
470 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
471 }
472
473 pub fn remove_will_render_canvases_method_info() -> &'static ::unity::il2cpp::MethodInfo {
474 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
475 }
476
477 pub fn get_render_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
478 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
479 }
480
481 pub fn set_render_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
482 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
483 }
484
485 pub fn get_is_root_canvas_method_info() -> &'static ::unity::il2cpp::MethodInfo {
486 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
487 }
488
489 pub fn get_pixel_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
490 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
491 }
492
493 pub fn get_scale_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
494 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
495 }
496
497 pub fn set_scale_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
498 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
499 }
500
501 pub fn get_reference_pixels_per_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
502 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
503 }
504
505 pub fn set_reference_pixels_per_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
506 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
507 }
508
509 pub fn get_override_pixel_perfect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
510 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
511 }
512
513 pub fn set_override_pixel_perfect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
515 }
516
517 pub fn get_pixel_perfect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
519 }
520
521 pub fn set_pixel_perfect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
523 }
524
525 pub fn get_plane_distance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
527 }
528
529 pub fn set_plane_distance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
531 }
532
533 pub fn get_render_order_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
535 }
536
537 pub fn get_override_sorting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
538 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
539 }
540
541 pub fn set_override_sorting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
542 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
543 }
544
545 pub fn get_sorting_order_method_info() -> &'static ::unity::il2cpp::MethodInfo {
546 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
547 }
548
549 pub fn set_sorting_order_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
551 }
552
553 pub fn get_target_display_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
555 }
556
557 pub fn set_target_display_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
559 }
560
561 pub fn get_sorting_layer_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
563 }
564
565 pub fn set_sorting_layer_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
566 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
567 }
568
569 pub fn get_cached_sorting_layer_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
570 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
571 }
572
573 pub fn get_additional_shader_channels_method_info() -> &'static ::unity::il2cpp::MethodInfo {
574 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
575 }
576
577 pub fn set_additional_shader_channels_method_info() -> &'static ::unity::il2cpp::MethodInfo {
578 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
579 }
580
581 pub fn get_sorting_layer_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
582 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
583 }
584
585 pub fn set_sorting_layer_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
586 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
587 }
588
589 pub fn get_root_canvas_method_info() -> &'static ::unity::il2cpp::MethodInfo {
590 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
591 }
592
593 pub fn get_rendering_display_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
594 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
595 }
596
597 pub fn get_world_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
598 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
599 }
600
601 pub fn set_world_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
602 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
603 }
604
605 pub fn get_normalized_sorting_grid_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
606 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
607 }
608
609 pub fn set_normalized_sorting_grid_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
610 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
611 }
612
613 pub fn get_sorting_grid_normalized_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
614 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
615 }
616
617 pub fn set_sorting_grid_normalized_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
618 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
619 }
620
621 pub fn get_default_canvas_text_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
622 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
623 }
624
625 pub fn get_default_canvas_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
626 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
627 }
628
629 pub fn get_etc1_supported_canvas_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
630 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
631 }
632
633 pub fn update_canvas_rect_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
634 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
635 }
636
637 pub fn force_update_canvases_method_info() -> &'static ::unity::il2cpp::MethodInfo {
638 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
639 }
640
641 pub fn send_pre_will_render_canvases_method_info() -> &'static ::unity::il2cpp::MethodInfo {
642 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
643 }
644
645 pub fn send_will_render_canvases_method_info() -> &'static ::unity::il2cpp::MethodInfo {
646 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
647 }
648
649 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
650 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
651 }
652
653 pub fn get_pixel_rect_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
654 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
655 }
656
657 pub fn get_rendering_display_size_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
658 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
659 }
660}
661
662#[cfg(feature = "unity_engine-canvas")]
663impl Canvas {
664 #[doc = "`.ctor()` — no args"]
665 pub fn new() -> Self {
666 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
667 panic!(
668 "{}
669::{}
670 failed to instantiate",
671 ::core::stringify!(Canvas),
672 ::core::stringify!(new),
673 )
674 });
675 <Self as ICanvasMethods>::ctor(this);
676 this
677 }
678}
679
680#[cfg(feature = "unity_engine-canvas")]
681pub trait ICanvas_WillRenderCanvasesMethods: ICanvas_WillRenderCanvases {
682 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
683 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
684 unsafe {
685 let __receiver =
686 <Canvas_WillRenderCanvases as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
687 ::unity::il2cpp_call!((::unity::module_base()+0x3f24860usize)as*mut u8,();
688(Canvas_WillRenderCanvases)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
689 }
690 }
691 #[doc = "`Invoke()` overload"]
692 fn invoke(self) -> () {
693 unsafe {
694 let __receiver =
695 <Canvas_WillRenderCanvases as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
696 {
697 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
698 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
699 panic!(
700 "unity: virtual slot {}
701 out of range (vtable len {}
702) on the runtime class behind {}
703 (method `{}
704`)",
705 13usize,
706 __vt.len(),
707 <Canvas_WillRenderCanvases as ::unity::ClassIdentity>::NAME,
708 "Invoke",
709 )
710 });
711 let __inner: extern "C" fn(Canvas_WillRenderCanvases, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
712 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
713 __inner(__receiver, __mi)
714 }
715 }
716 }
717}
718
719#[cfg(feature = "unity_engine-canvas")]
720impl<__T: ICanvas_WillRenderCanvases> ICanvas_WillRenderCanvasesMethods for __T {}
721
722#[cfg(feature = "unity_engine-canvas")]
723impl Canvas_WillRenderCanvases {
724 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
725 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
726 }
727
728 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
729 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
730 }
731}
732
733#[cfg(feature = "unity_engine-canvas")]
734impl Canvas_WillRenderCanvases {
735 #[doc = "Direct (non-virtual) call to `Canvas_WillRenderCanvases`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
736 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
737 let __mi = Self::invoke_method_info();
738 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
739 __inner(this.into(), ::core::option::Option::None)
740 }
741}
742
743#[cfg(feature = "unity_engine-canvas")]
744impl Canvas_WillRenderCanvases {
745 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
746 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
747 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
748 panic!(
749 "{}
750::{}
751 failed to instantiate",
752 ::core::stringify!(Canvas_WillRenderCanvases),
753 ::core::stringify!(new),
754 )
755 });
756 <Self as ICanvas_WillRenderCanvasesMethods>::ctor(this, object, method);
757 this
758 }
759}
760
761#[cfg(feature = "unity_engine-canvas")]
762#[doc(hidden)]
763pub mod prelude {
764 pub use super::{Canvas, Canvas_WillRenderCanvases, ICanvas, ICanvasMethods, ICanvas_WillRenderCanvases, ICanvas_WillRenderCanvasesMethods};
765 #[cfg(feature = "system-delegate")]
766 pub use crate::system::delegate::IDelegateMethods;
767 #[cfg(feature = "system-multicastdelegate")]
768 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
769 #[cfg(feature = "system-object")]
770 pub use crate::system::object::IObjectMethods;
771 #[cfg(feature = "unity_engine-behaviour")]
772 pub use crate::unity_engine::behaviour::IBehaviourMethods;
773 #[cfg(feature = "unity_engine-component")]
774 pub use crate::unity_engine::component::IComponentMethods;
775 #[cfg(feature = "unity_engine-object_2")]
776 pub use crate::unity_engine::object_2::IObject_2Methods;
777 pub use crate::{
778 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
779 unity_engine::{behaviour::IBehaviour, component::IComponent, object_2::IObject_2},
780 };
781}