Skip to main content

engage/generated/unity_engine/rendering/
nointerpcolorparameter.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-nointerpcolorparameter-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::rendering::{
11            volumeparameter::{IVolumeParameter, VolumeParameter},
12            volumeparameter_1::{IVolumeParameter_1, VolumeParameter_1},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/nointerpcolorparameter/NoInterpColorParameter.md"))]
17    #[::unity::class(namespace = "UnityEngine.Rendering", name = "NoInterpColorParameter")]
18    #[parent(crate::unity_engine::rendering::volumeparameter_1::VolumeParameter_1<crate::unity_engine::color::Color>)]
19    pub struct NoInterpColorParameter {
20        #[offset(36)]
21        #[rename(name = "hdr")]
22        pub hdr: bool,
23        #[offset(37)]
24        #[rename(name = "showAlpha")]
25        pub show_alpha: bool,
26        #[offset(38)]
27        #[rename(name = "showEyeDropper")]
28        pub show_eye_dropper: bool,
29    }
30}
31
32#[cfg(feature = "unity_engine-rendering-nointerpcolorparameter-types")]
33pub use __types::*;
34
35#[cfg(feature = "unity_engine-rendering-nointerpcolorparameter")]
36pub trait INoInterpColorParameterMethods: INoInterpColorParameter {
37    #[doc = "`.ctor(crate::unity_engine::color::Color, bool)` overload"]
38    fn ctor(self, value: impl ::core::convert::Into<crate::unity_engine::color::Color>, override_state: impl ::core::convert::Into<bool>) -> () {
39        unsafe {
40            let __receiver =
41                <NoInterpColorParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            ::unity::il2cpp_call!((::unity::module_base()+0x30abf20usize)as*mut u8,();
43(NoInterpColorParameter)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(value),(bool)::core::convert::Into::into(override_state))
44        }
45    }
46    #[doc = "`.ctor(crate::unity_engine::color::Color, bool, bool, bool, bool)` overload"]
47    fn ctor_2(
48        self,
49        value: impl ::core::convert::Into<crate::unity_engine::color::Color>,
50        hdr: impl ::core::convert::Into<bool>,
51        show_alpha: impl ::core::convert::Into<bool>,
52        show_eye_dropper: impl ::core::convert::Into<bool>,
53        override_state: impl ::core::convert::Into<bool>,
54    ) -> () {
55        unsafe {
56            let __receiver =
57                <NoInterpColorParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58            ::unity::il2cpp_call!((::unity::module_base()+0x30abfc0usize)as*mut u8,();
59(NoInterpColorParameter)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(value),(bool)::core::convert::Into::into(hdr),(bool)::core::convert::Into::into(show_alpha),(bool)::core::convert::Into::into(show_eye_dropper),(bool)::core::convert::Into::into(override_state))
60        }
61    }
62}
63
64#[cfg(feature = "unity_engine-rendering-nointerpcolorparameter")]
65impl<__T: INoInterpColorParameter> INoInterpColorParameterMethods for __T {}
66
67#[cfg(feature = "unity_engine-rendering-nointerpcolorparameter")]
68impl NoInterpColorParameter {
69    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
71    }
72
73    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
75    }
76}
77
78#[cfg(feature = "unity_engine-rendering-nointerpcolorparameter")]
79impl NoInterpColorParameter {
80    #[doc = "`.ctor(crate::unity_engine::color::Color, bool)` — overload selector"]
81    pub fn new(value: crate::unity_engine::color::Color, override_state: bool) -> Self {
82        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
83            panic!(
84                "{}
85::{}
86 failed to instantiate",
87                ::core::stringify!(NoInterpColorParameter),
88                ::core::stringify!(new),
89            )
90        });
91        <Self as INoInterpColorParameterMethods>::ctor(this, value, override_state);
92        this
93    }
94
95    #[doc = "`.ctor(crate::unity_engine::color::Color, bool, bool, bool, bool)` — overload selector"]
96    pub fn new_2(value: crate::unity_engine::color::Color, hdr: bool, show_alpha: bool, show_eye_dropper: bool, override_state: bool) -> Self {
97        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
98            panic!(
99                "{}
100::{}
101 failed to instantiate",
102                ::core::stringify!(NoInterpColorParameter),
103                ::core::stringify!(new_2),
104            )
105        });
106        <Self as INoInterpColorParameterMethods>::ctor_2(this, value, hdr, show_alpha, show_eye_dropper, override_state);
107        this
108    }
109}
110
111#[cfg(feature = "unity_engine-rendering-nointerpcolorparameter")]
112#[doc(hidden)]
113pub mod prelude {
114    pub use super::{INoInterpColorParameter, INoInterpColorParameterMethods, NoInterpColorParameter};
115    #[cfg(feature = "system-object")]
116    pub use crate::system::object::IObjectMethods;
117    #[cfg(feature = "unity_engine-rendering-volumeparameter")]
118    pub use crate::unity_engine::rendering::volumeparameter::IVolumeParameterMethods;
119    #[cfg(feature = "unity_engine-rendering-volumeparameter_1")]
120    pub use crate::unity_engine::rendering::volumeparameter_1::IVolumeParameter_1Methods;
121    pub use crate::{
122        system::object::IObject,
123        unity_engine::rendering::{volumeparameter::IVolumeParameter, volumeparameter_1::IVolumeParameter_1},
124    };
125}