Skip to main content

engage/generated/unity_engine/rendering/
renderqueuerange.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-renderqueuerange-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/renderqueuerange/RenderQueueRange.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct RenderQueueRange {
17        pub m_lower_bound: i32,
18        pub m_upper_bound: i32,
19    }
20    impl ::unity::ClassIdentity for RenderQueueRange {
21        const NAME: &'static str = "RenderQueueRange";
22        const NAMESPACE: &'static str = "UnityEngine.Rendering";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for RenderQueueRange {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl RenderQueueRange {
35        #[inline]
36        pub fn k_minimum_bound() -> i32 {
37            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
38            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "k_MinimumBound");
39            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
40        }
41
42        #[inline]
43        pub fn set_k_minimum_bound(value: i32) {
44            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
45            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "k_MinimumBound");
46            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
47        }
48
49        #[inline]
50        pub fn minimum_bound() -> i32 {
51            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
52            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "minimumBound");
53            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
54        }
55
56        #[inline]
57        pub fn set_minimum_bound(value: i32) {
58            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
59            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "minimumBound");
60            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
61        }
62
63        #[inline]
64        pub fn k_maximum_bound() -> i32 {
65            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
66            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "k_MaximumBound");
67            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
68        }
69
70        #[inline]
71        pub fn set_k_maximum_bound(value: i32) {
72            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
73            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "k_MaximumBound");
74            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
75        }
76
77        #[inline]
78        pub fn maximum_bound() -> i32 {
79            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
80            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "maximumBound");
81            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
82        }
83
84        #[inline]
85        pub fn set_maximum_bound(value: i32) {
86            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
87            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "maximumBound");
88            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
89        }
90    }
91}
92
93#[cfg(feature = "unity_engine-rendering-renderqueuerange-types")]
94pub use __types::*;
95
96#[cfg(feature = "unity_engine-rendering-renderqueuerange")]
97impl RenderQueueRange {
98    #[doc = "`get_all()` overload"]
99    pub fn get_all() -> crate::unity_engine::rendering::renderqueuerange::RenderQueueRange {
100        unsafe {
101            ::unity::il2cpp_call!((::unity::module_base()+0x2f81d00usize)as*mut u8,crate::unity_engine::rendering::renderqueuerange::RenderQueueRange;
102            )
103        }
104    }
105
106    #[doc = "`get_opaque()` overload"]
107    pub fn get_opaque() -> crate::unity_engine::rendering::renderqueuerange::RenderQueueRange {
108        unsafe {
109            ::unity::il2cpp_call!((::unity::module_base()+0x2f81d10usize)as*mut u8,crate::unity_engine::rendering::renderqueuerange::RenderQueueRange;
110            )
111        }
112    }
113
114    #[doc = "`get_transparent()` overload"]
115    pub fn get_transparent() -> crate::unity_engine::rendering::renderqueuerange::RenderQueueRange {
116        unsafe {
117            ::unity::il2cpp_call!((::unity::module_base()+0x2f81d20usize)as*mut u8,crate::unity_engine::rendering::renderqueuerange::RenderQueueRange;
118            )
119        }
120    }
121
122    #[doc = "`.cctor()` overload"]
123    pub fn cctor() -> () {
124        unsafe {
125            ::unity::il2cpp_call!((::unity::module_base()+0x2f81fc0usize)as*mut u8,();
126            )
127        }
128    }
129}
130
131#[cfg(feature = "unity_engine-rendering-renderqueuerange")]
132impl RenderQueueRange {
133    #[doc = "`set_lowerBound(i32)` overload"]
134    pub fn set_lower_bound(&mut self, value: impl ::core::convert::Into<i32>) -> () {
135        unsafe {
136            ::unity::il2cpp_call!((::unity::module_base()+0x2f81d30usize)as*mut u8,();
137(*mut RenderQueueRange)self as*mut RenderQueueRange,(i32)::core::convert::Into::into(value))
138        }
139    }
140
141    #[doc = "`set_upperBound(i32)` overload"]
142    pub fn set_upper_bound(&mut self, value: impl ::core::convert::Into<i32>) -> () {
143        unsafe {
144            ::unity::il2cpp_call!((::unity::module_base()+0x2f81e00usize)as*mut u8,();
145(*mut RenderQueueRange)self as*mut RenderQueueRange,(i32)::core::convert::Into::into(value))
146        }
147    }
148
149    #[doc = "`Equals(crate::unity_engine::rendering::renderqueuerange::RenderQueueRange)` overload"]
150    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::unity_engine::rendering::renderqueuerange::RenderQueueRange>) -> bool {
151        unsafe {
152            ::unity::il2cpp_call!((::unity::module_base()+0x2f81ed0usize)as*mut u8,bool;
153(*mut RenderQueueRange)self as*mut RenderQueueRange,(crate::unity_engine::rendering::renderqueuerange::RenderQueueRange)::core::convert::Into::into(other))
154        }
155    }
156
157    #[doc = "`Equals(crate::system::object::Object)` overload"]
158    pub fn equals_2(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
159        unsafe {
160            ::unity::il2cpp_call!((::unity::module_base()+0x2f81f00usize)as*mut u8,bool;
161(*mut RenderQueueRange)self as*mut RenderQueueRange,(crate::system::object::Object)::core::convert::Into::into(obj))
162        }
163    }
164
165    #[doc = "`GetHashCode()` overload"]
166    pub fn get_hash_code(&mut self) -> i32 {
167        unsafe {
168            ::unity::il2cpp_call!((::unity::module_base()+0x2f81fa0usize)as*mut u8,i32;
169(*mut RenderQueueRange)self as*mut RenderQueueRange)
170        }
171    }
172}
173
174#[cfg(feature = "unity_engine-rendering-renderqueuerange")]
175impl RenderQueueRange {
176    pub fn get_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
178    }
179
180    pub fn get_opaque_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
182    }
183
184    pub fn get_transparent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
186    }
187
188    pub fn set_lower_bound_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
190    }
191
192    pub fn set_upper_bound_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
194    }
195
196    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
198    }
199
200    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
202    }
203
204    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
206    }
207
208    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
210    }
211}
212
213#[cfg(feature = "unity_engine-rendering-renderqueuerange")]
214#[doc(hidden)]
215pub mod prelude {
216    pub use super::RenderQueueRange;
217    #[cfg(feature = "system-object")]
218    pub use crate::system::object::IObjectMethods;
219    #[cfg(feature = "system-valuetype")]
220    pub use crate::system::valuetype::IValueTypeMethods;
221    pub use crate::system::{object::IObject, valuetype::IValueType};
222}