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 pub static SCNLightAttenuationStartKey: &'static NSString;
21}
22
23extern "C" {
24 pub static SCNLightAttenuationEndKey: &'static NSString;
26}
27
28extern "C" {
29 pub static SCNLightAttenuationFalloffExponentKey: &'static NSString;
31}
32
33extern "C" {
34 pub static SCNLightSpotInnerAngleKey: &'static NSString;
36}
37
38extern "C" {
39 pub static SCNLightSpotOuterAngleKey: &'static NSString;
41}
42
43extern "C" {
44 pub static SCNLightShadowNearClippingKey: &'static NSString;
46}
47
48extern "C" {
49 pub static SCNLightShadowFarClippingKey: &'static NSString;
51}
52
53#[cfg(feature = "SCNLight")]
55impl SCNLight {
56 extern_methods!(
57 #[deprecated = "Use SCNLight properties instead"]
61 #[unsafe(method(attributeForKey:))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn attributeForKey(&self, key: &NSString) -> Option<Retained<AnyObject>>;
64
65 #[deprecated = "Use SCNLight properties instead"]
71 #[unsafe(method(setAttribute:forKey:))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn setAttribute_forKey(&self, attribute: Option<&AnyObject>, key: &NSString);
74 );
75}
76
77#[cfg(all(feature = "SCNLight", feature = "SCNTechnique"))]
78extern_conformance!(
79 unsafe impl SCNTechniqueSupport for SCNLight {}
80);
81
82#[cfg(feature = "SCNCamera")]
84impl SCNCamera {
85 extern_methods!(
86 #[cfg(feature = "objc2-core-foundation")]
87 #[deprecated = "Use fStop instead"]
91 #[unsafe(method(focalBlurRadius))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn focalBlurRadius(&self) -> CGFloat;
94
95 #[cfg(feature = "objc2-core-foundation")]
96 #[deprecated = "Use fStop instead"]
98 #[unsafe(method(setFocalBlurRadius:))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn setFocalBlurRadius(&self, focal_blur_radius: CGFloat);
101
102 #[deprecated = "Use -[SCNCamera fieldOfView] or -[SCNCamera focalLength] instead"]
106 #[unsafe(method(xFov))]
107 #[unsafe(method_family = none)]
108 pub unsafe fn xFov(&self) -> c_double;
109
110 #[deprecated = "Use -[SCNCamera fieldOfView] or -[SCNCamera focalLength] instead"]
112 #[unsafe(method(setXFov:))]
113 #[unsafe(method_family = none)]
114 pub unsafe fn setXFov(&self, x_fov: c_double);
115
116 #[deprecated = "Use -[SCNCamera fieldOfView] or -[SCNCamera focalLength] instead"]
120 #[unsafe(method(yFov))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn yFov(&self) -> c_double;
123
124 #[deprecated = "Use -[SCNCamera fieldOfView] or -[SCNCamera focalLength] instead"]
126 #[unsafe(method(setYFov:))]
127 #[unsafe(method_family = none)]
128 pub unsafe fn setYFov(&self, y_fov: c_double);
129
130 #[cfg(feature = "objc2-core-foundation")]
131 #[deprecated = "Use -[SCNCamera fStop] instead with fStop = sensorHeight / aperture."]
135 #[unsafe(method(aperture))]
136 #[unsafe(method_family = none)]
137 pub unsafe fn aperture(&self) -> CGFloat;
138
139 #[cfg(feature = "objc2-core-foundation")]
140 #[deprecated = "Use -[SCNCamera fStop] instead with fStop = sensorHeight / aperture."]
142 #[unsafe(method(setAperture:))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn setAperture(&self, aperture: CGFloat);
145
146 #[cfg(feature = "objc2-core-foundation")]
147 #[deprecated]
151 #[unsafe(method(focalSize))]
152 #[unsafe(method_family = none)]
153 pub unsafe fn focalSize(&self) -> CGFloat;
154
155 #[cfg(feature = "objc2-core-foundation")]
156 #[deprecated]
158 #[unsafe(method(setFocalSize:))]
159 #[unsafe(method_family = none)]
160 pub unsafe fn setFocalSize(&self, focal_size: CGFloat);
161
162 #[cfg(feature = "objc2-core-foundation")]
163 #[deprecated]
167 #[unsafe(method(focalDistance))]
168 #[unsafe(method_family = none)]
169 pub unsafe fn focalDistance(&self) -> CGFloat;
170
171 #[cfg(feature = "objc2-core-foundation")]
172 #[deprecated]
174 #[unsafe(method(setFocalDistance:))]
175 #[unsafe(method_family = none)]
176 pub unsafe fn setFocalDistance(&self, focal_distance: CGFloat);
177 );
178}
179
180#[cfg(feature = "SCNRenderer")]
182impl SCNRenderer {
183 extern_methods!(
184 #[deprecated]
188 #[unsafe(method(render))]
189 #[unsafe(method_family = none)]
190 pub unsafe fn render(&self);
191 );
192}
193
194#[cfg(feature = "SCNMaterialProperty")]
196impl SCNMaterialProperty {
197 extern_methods!(
198 #[deprecated = "Deprecated"]
202 #[unsafe(method(borderColor))]
203 #[unsafe(method_family = none)]
204 pub unsafe fn borderColor(&self) -> Option<Retained<AnyObject>>;
205
206 #[deprecated = "Deprecated"]
208 #[unsafe(method(setBorderColor:))]
209 #[unsafe(method_family = none)]
210 pub unsafe fn setBorderColor(&self, border_color: Option<&AnyObject>);
211 );
212}