objc2_scene_kit/generated/
SceneKitDeprecated.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern "C" {
13 #[deprecated = "Use SCNLight.attenuationStartDistance instead"]
21 pub static SCNLightAttenuationStartKey: &'static NSString;
22}
23
24extern "C" {
25 #[deprecated = "Use SCNLight.attenuationEndDistance instead"]
27 pub static SCNLightAttenuationEndKey: &'static NSString;
28}
29
30extern "C" {
31 #[deprecated = "Use SCNLight.attenuationFalloffExponent instead"]
33 pub static SCNLightAttenuationFalloffExponentKey: &'static NSString;
34}
35
36extern "C" {
37 #[deprecated = "Use SCNLight.spotInnerAngle instead"]
39 pub static SCNLightSpotInnerAngleKey: &'static NSString;
40}
41
42extern "C" {
43 #[deprecated = "Use SCNLight.spotOuterAngle instead"]
45 pub static SCNLightSpotOuterAngleKey: &'static NSString;
46}
47
48extern "C" {
49 #[deprecated = "Use SCNLight.zNear instead"]
51 pub static SCNLightShadowNearClippingKey: &'static NSString;
52}
53
54extern "C" {
55 #[deprecated = "Use SCNLight.zFar instead"]
57 pub static SCNLightShadowFarClippingKey: &'static NSString;
58}
59
60#[cfg(feature = "SCNLight")]
62impl SCNLight {
63 extern_methods!(
64 #[deprecated = "Use SCNLight properties instead"]
68 #[unsafe(method(attributeForKey:))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn attributeForKey(&self, key: &NSString) -> Option<Retained<AnyObject>>;
71
72 #[deprecated = "Use SCNLight properties instead"]
82 #[unsafe(method(setAttribute:forKey:))]
83 #[unsafe(method_family = none)]
84 pub unsafe fn setAttribute_forKey(&self, attribute: Option<&AnyObject>, key: &NSString);
85 );
86}
87
88#[cfg(all(feature = "SCNLight", feature = "SCNTechnique"))]
89extern_conformance!(
90 unsafe impl SCNTechniqueSupport for SCNLight {}
91);
92
93#[cfg(feature = "SCNCamera")]
95impl SCNCamera {
96 extern_methods!(
97 #[cfg(feature = "objc2-core-foundation")]
98 #[deprecated = "Use fStop instead"]
102 #[unsafe(method(focalBlurRadius))]
103 #[unsafe(method_family = none)]
104 pub unsafe fn focalBlurRadius(&self) -> CGFloat;
105
106 #[cfg(feature = "objc2-core-foundation")]
107 #[deprecated = "Use fStop instead"]
109 #[unsafe(method(setFocalBlurRadius:))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn setFocalBlurRadius(&self, focal_blur_radius: CGFloat);
112
113 #[deprecated = "Use -[SCNCamera fieldOfView] or -[SCNCamera focalLength] instead"]
117 #[unsafe(method(xFov))]
118 #[unsafe(method_family = none)]
119 pub unsafe fn xFov(&self) -> c_double;
120
121 #[deprecated = "Use -[SCNCamera fieldOfView] or -[SCNCamera focalLength] instead"]
123 #[unsafe(method(setXFov:))]
124 #[unsafe(method_family = none)]
125 pub unsafe fn setXFov(&self, x_fov: c_double);
126
127 #[deprecated = "Use -[SCNCamera fieldOfView] or -[SCNCamera focalLength] instead"]
131 #[unsafe(method(yFov))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn yFov(&self) -> c_double;
134
135 #[deprecated = "Use -[SCNCamera fieldOfView] or -[SCNCamera focalLength] instead"]
137 #[unsafe(method(setYFov:))]
138 #[unsafe(method_family = none)]
139 pub unsafe fn setYFov(&self, y_fov: c_double);
140
141 #[cfg(feature = "objc2-core-foundation")]
142 #[deprecated = "Use -[SCNCamera fStop] instead with fStop = sensorHeight / aperture."]
146 #[unsafe(method(aperture))]
147 #[unsafe(method_family = none)]
148 pub unsafe fn aperture(&self) -> CGFloat;
149
150 #[cfg(feature = "objc2-core-foundation")]
151 #[deprecated = "Use -[SCNCamera fStop] instead with fStop = sensorHeight / aperture."]
153 #[unsafe(method(setAperture:))]
154 #[unsafe(method_family = none)]
155 pub unsafe fn setAperture(&self, aperture: CGFloat);
156
157 #[cfg(feature = "objc2-core-foundation")]
158 #[deprecated]
162 #[unsafe(method(focalSize))]
163 #[unsafe(method_family = none)]
164 pub unsafe fn focalSize(&self) -> CGFloat;
165
166 #[cfg(feature = "objc2-core-foundation")]
167 #[deprecated]
169 #[unsafe(method(setFocalSize:))]
170 #[unsafe(method_family = none)]
171 pub unsafe fn setFocalSize(&self, focal_size: CGFloat);
172
173 #[cfg(feature = "objc2-core-foundation")]
174 #[deprecated]
178 #[unsafe(method(focalDistance))]
179 #[unsafe(method_family = none)]
180 pub unsafe fn focalDistance(&self) -> CGFloat;
181
182 #[cfg(feature = "objc2-core-foundation")]
183 #[deprecated]
185 #[unsafe(method(setFocalDistance:))]
186 #[unsafe(method_family = none)]
187 pub unsafe fn setFocalDistance(&self, focal_distance: CGFloat);
188 );
189}
190
191#[cfg(feature = "SCNRenderer")]
193impl SCNRenderer {
194 extern_methods!(
195 #[deprecated]
199 #[unsafe(method(render))]
200 #[unsafe(method_family = none)]
201 pub unsafe fn render(&self);
202 );
203}
204
205#[cfg(feature = "SCNMaterialProperty")]
207impl SCNMaterialProperty {
208 extern_methods!(
209 #[deprecated = "Deprecated"]
213 #[unsafe(method(borderColor))]
214 #[unsafe(method_family = none)]
215 pub unsafe fn borderColor(&self) -> Option<Retained<AnyObject>>;
216
217 #[deprecated = "Deprecated"]
223 #[unsafe(method(setBorderColor:))]
224 #[unsafe(method_family = none)]
225 pub unsafe fn setBorderColor(&self, border_color: Option<&AnyObject>);
226 );
227}