engage/generated/unity_engine/rendering/universal/
colorcurves.rs1#[cfg(feature = "unity_engine-rendering-universal-colorcurves-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 object_2::{IObject_2, Object_2},
12 rendering::volumecomponent::{IVolumeComponent, VolumeComponent},
13 scriptableobject::{IScriptableObject, ScriptableObject},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/colorcurves/ColorCurves.md"))]
18 #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "ColorCurves")]
19 #[parent(crate::unity_engine::rendering::volumecomponent::VolumeComponent)]
20 pub struct ColorCurves {
21 #[offset(56)]
22 #[rename(name = "master")]
23 pub master: crate::unity_engine::rendering::texturecurveparameter::TextureCurveParameter,
24 #[offset(64)]
25 #[rename(name = "red")]
26 pub red: crate::unity_engine::rendering::texturecurveparameter::TextureCurveParameter,
27 #[offset(72)]
28 #[rename(name = "green")]
29 pub green: crate::unity_engine::rendering::texturecurveparameter::TextureCurveParameter,
30 #[offset(80)]
31 #[rename(name = "blue")]
32 pub blue: crate::unity_engine::rendering::texturecurveparameter::TextureCurveParameter,
33 #[offset(88)]
34 #[rename(name = "hueVsHue")]
35 pub hue_vs_hue: crate::unity_engine::rendering::texturecurveparameter::TextureCurveParameter,
36 #[offset(96)]
37 #[rename(name = "hueVsSat")]
38 pub hue_vs_sat: crate::unity_engine::rendering::texturecurveparameter::TextureCurveParameter,
39 #[offset(104)]
40 #[rename(name = "satVsSat")]
41 pub sat_vs_sat: crate::unity_engine::rendering::texturecurveparameter::TextureCurveParameter,
42 #[offset(112)]
43 #[rename(name = "lumVsSat")]
44 pub lum_vs_sat: crate::unity_engine::rendering::texturecurveparameter::TextureCurveParameter,
45 }
46}
47
48#[cfg(feature = "unity_engine-rendering-universal-colorcurves-types")]
49pub use __types::*;
50
51#[cfg(feature = "unity_engine-rendering-universal-colorcurves")]
52pub trait IColorCurvesMethods: IColorCurves {
53 #[doc = "`IsActive()` overload"]
54 fn is_active(self) -> bool {
55 unsafe {
56 let __receiver = <ColorCurves as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 {
58 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
59 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
60 panic!(
61 "unity: virtual slot {}
62 out of range (vtable len {}
63) on the runtime class behind {}
64 (method `{}
65`)",
66 8usize,
67 __vt.len(),
68 <ColorCurves as ::unity::ClassIdentity>::NAME,
69 "IsActive",
70 )
71 });
72 let __inner: extern "C" fn(ColorCurves, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
73 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
74 __inner(__receiver, __mi)
75 }
76 }
77 }
78 #[doc = "`IsTileCompatible()` overload"]
79 fn is_tile_compatible(self) -> bool {
80 unsafe {
81 let __receiver = <ColorCurves as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 {
83 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
84 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
85 panic!(
86 "unity: virtual slot {}
87 out of range (vtable len {}
88) on the runtime class behind {}
89 (method `{}
90`)",
91 9usize,
92 __vt.len(),
93 <ColorCurves as ::unity::ClassIdentity>::NAME,
94 "IsTileCompatible",
95 )
96 });
97 let __inner: extern "C" fn(ColorCurves, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
98 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
99 __inner(__receiver, __mi)
100 }
101 }
102 }
103 #[doc = "`.ctor()` overload"]
104 fn ctor(self) -> () {
105 unsafe {
106 let __receiver = <ColorCurves as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x2a3eb30usize)as*mut u8,();
108(ColorCurves)__receiver)
109 }
110 }
111}
112
113#[cfg(feature = "unity_engine-rendering-universal-colorcurves")]
114impl<__T: IColorCurves> IColorCurvesMethods for __T {}
115
116#[cfg(feature = "unity_engine-rendering-universal-colorcurves")]
117impl ColorCurves {
118 pub fn is_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
120 }
121
122 pub fn is_tile_compatible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
124 }
125
126 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
128 }
129}
130
131#[cfg(feature = "unity_engine-rendering-universal-colorcurves")]
132impl ColorCurves {
133 #[doc = "Direct (non-virtual) call to `ColorCurves`'s own `IsActive`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
134 pub unsafe fn is_active(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
135 let __mi = Self::is_active_method_info();
136 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
137 __inner(this.into(), ::core::option::Option::None)
138 }
139
140 #[doc = "Direct (non-virtual) call to `ColorCurves`'s own `IsTileCompatible`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
141 pub unsafe fn is_tile_compatible(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
142 let __mi = Self::is_tile_compatible_method_info();
143 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
144 __inner(this.into(), ::core::option::Option::None)
145 }
146}
147
148#[cfg(feature = "unity_engine-rendering-universal-colorcurves")]
149impl ColorCurves {
150 #[doc = "`.ctor()` — no args"]
151 pub fn new() -> Self {
152 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
153 panic!(
154 "{}
155::{}
156 failed to instantiate",
157 ::core::stringify!(ColorCurves),
158 ::core::stringify!(new),
159 )
160 });
161 <Self as IColorCurvesMethods>::ctor(this);
162 this
163 }
164}
165
166#[cfg(feature = "unity_engine-rendering-universal-colorcurves")]
167#[doc(hidden)]
168pub mod prelude {
169 pub use super::{ColorCurves, IColorCurves, IColorCurvesMethods};
170 #[cfg(feature = "system-object")]
171 pub use crate::system::object::IObjectMethods;
172 #[cfg(feature = "unity_engine-object_2")]
173 pub use crate::unity_engine::object_2::IObject_2Methods;
174 #[cfg(feature = "unity_engine-rendering-volumecomponent")]
175 pub use crate::unity_engine::rendering::volumecomponent::IVolumeComponentMethods;
176 #[cfg(feature = "unity_engine-scriptableobject")]
177 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
178 pub use crate::{
179 system::object::IObject,
180 unity_engine::{object_2::IObject_2, rendering::volumecomponent::IVolumeComponent, scriptableobject::IScriptableObject},
181 };
182}