Skip to main content

engage/generated/unity_engine/ui_elements/uir/
utility_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-ui_elements-uir-utility_2-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/ui_elements/uir/utility_2/Utility_GPUBuffer_1.md"))]
11    #[::unity::class(namespace = "UnityEngine.UIElements.UIR", name = "Utility.GPUBuffer`1")]
12    #[parent(crate::system::object::Object)]
13    pub struct Utility_GPUBuffer_1<T0: ::unity::ClassIdentity> {
14        #[rename(name = "buffer")]
15        pub buffer: ::unity::IntPtr,
16    }
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui_elements/uir/utility_2/Utility_2.md"))]
19    #[::unity::class(namespace = "UnityEngine.UIElements.UIR", name = "Utility")]
20    #[parent(crate::system::object::Object)]
21    pub struct Utility_2 {
22        #[static_field]
23        #[rename(name = "GraphicsResourcesRecreate")]
24        pub graphics_resources_recreate: crate::system::action_1::Action_1<bool>,
25        #[static_field]
26        #[rename(name = "EngineUpdate")]
27        pub engine_update: crate::system::action::Action,
28        #[static_field]
29        #[rename(name = "FlushPendingResources")]
30        pub flush_pending_resources: crate::system::action::Action,
31        #[static_field]
32        #[rename(name = "RegisterIntermediateRenderers")]
33        pub register_intermediate_renderers: crate::system::action_1::Action_1<crate::unity_engine::camera::Camera>,
34        #[static_field]
35        #[rename(name = "RenderNodeAdd")]
36        pub render_node_add: crate::system::action_1::Action_1<::unity::IntPtr>,
37        #[static_field]
38        #[rename(name = "RenderNodeExecute")]
39        pub render_node_execute: crate::system::action_1::Action_1<::unity::IntPtr>,
40        #[static_field]
41        #[rename(name = "RenderNodeCleanup")]
42        pub render_node_cleanup: crate::system::action_1::Action_1<::unity::IntPtr>,
43    }
44}
45
46#[cfg(feature = "unity_engine-ui_elements-uir-utility_2-types")]
47pub use __types::*;
48
49#[cfg(feature = "unity_engine-ui_elements-uir-utility_2")]
50impl Utility_2 {
51    #[doc = "`RaiseGraphicsResourcesRecreate(bool)` overload"]
52    pub fn raise_graphics_resources_recreate(recreate: impl ::core::convert::Into<bool>) -> () {
53        unsafe {
54            ::unity::il2cpp_call!((::unity::module_base()+0x3f402f0usize)as*mut u8,();
55(bool)::core::convert::Into::into(recreate))
56        }
57    }
58
59    #[doc = "`RaiseEngineUpdate()` overload"]
60    pub fn raise_engine_update() -> () {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x3f403a0usize)as*mut u8,();
63            )
64        }
65    }
66
67    #[doc = "`RaiseFlushPendingResources()` overload"]
68    pub fn raise_flush_pending_resources() -> () {
69        unsafe {
70            ::unity::il2cpp_call!((::unity::module_base()+0x3f40450usize)as*mut u8,();
71            )
72        }
73    }
74
75    #[doc = "`RaiseRegisterIntermediateRenderers(crate::unity_engine::camera::Camera)` overload"]
76    pub fn raise_register_intermediate_renderers(camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>) -> () {
77        unsafe {
78            ::unity::il2cpp_call!((::unity::module_base()+0x3f404e0usize)as*mut u8,();
79(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera))
80        }
81    }
82
83    #[doc = "`RaiseRenderNodeAdd(::unity::IntPtr)` overload"]
84    pub fn raise_render_node_add(user_data: impl ::core::convert::Into<::unity::IntPtr>) -> () {
85        unsafe {
86            ::unity::il2cpp_call!((::unity::module_base()+0x3f40590usize)as*mut u8,();
87(::unity::IntPtr)::core::convert::Into::into(user_data))
88        }
89    }
90
91    #[doc = "`RaiseRenderNodeExecute(::unity::IntPtr)` overload"]
92    pub fn raise_render_node_execute(user_data: impl ::core::convert::Into<::unity::IntPtr>) -> () {
93        unsafe {
94            ::unity::il2cpp_call!((::unity::module_base()+0x3f40640usize)as*mut u8,();
95(::unity::IntPtr)::core::convert::Into::into(user_data))
96        }
97    }
98
99    #[doc = "`RaiseRenderNodeCleanup(::unity::IntPtr)` overload"]
100    pub fn raise_render_node_cleanup(user_data: impl ::core::convert::Into<::unity::IntPtr>) -> () {
101        unsafe {
102            ::unity::il2cpp_call!((::unity::module_base()+0x3f406f0usize)as*mut u8,();
103(::unity::IntPtr)::core::convert::Into::into(user_data))
104        }
105    }
106
107    #[doc = "`.cctor()` overload"]
108    pub fn cctor() -> () {
109        unsafe {
110            ::unity::il2cpp_call!((::unity::module_base()+0x3f407a0usize)as*mut u8,();
111            )
112        }
113    }
114}
115
116#[cfg(feature = "unity_engine-ui_elements-uir-utility_2")]
117impl Utility_2 {
118    pub fn raise_graphics_resources_recreate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
120    }
121
122    pub fn raise_engine_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
124    }
125
126    pub fn raise_flush_pending_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
128    }
129
130    pub fn raise_register_intermediate_renderers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
132    }
133
134    pub fn raise_render_node_add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
136    }
137
138    pub fn raise_render_node_execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
140    }
141
142    pub fn raise_render_node_cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
144    }
145
146    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
148    }
149}
150
151#[cfg(feature = "unity_engine-ui_elements-uir-utility_2")]
152#[doc(hidden)]
153pub mod prelude {
154    pub use super::{IUtility_2, IUtility_GPUBuffer_1, Utility_2, Utility_GPUBuffer_1};
155    pub use crate::system::object::IObject;
156    #[cfg(feature = "system-object")]
157    pub use crate::system::object::IObjectMethods;
158}