objc2_ar_kit/generated/
ARLightEstimate.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8#[cfg(feature = "objc2-foundation")]
9use objc2_foundation::*;
10
11use crate::*;
12
13#[cfg(feature = "objc2")]
14extern_class!(
15    /// A light estimate representing the light in the scene.
16    ///
17    /// See also [Apple's documentation](https://developer.apple.com/documentation/arkit/arlightestimate?language=objc)
18    #[unsafe(super(NSObject))]
19    #[derive(Debug, PartialEq, Eq, Hash)]
20    #[cfg(feature = "objc2")]
21    pub struct ARLightEstimate;
22);
23
24#[cfg(feature = "objc2")]
25unsafe impl Send for ARLightEstimate {}
26
27#[cfg(feature = "objc2")]
28unsafe impl Sync for ARLightEstimate {}
29
30#[cfg(feature = "objc2")]
31extern_conformance!(
32    unsafe impl NSObjectProtocol for ARLightEstimate {}
33);
34
35#[cfg(feature = "objc2")]
36impl ARLightEstimate {
37    extern_methods!(
38        #[cfg(feature = "objc2-core-foundation")]
39        /// Ambient intensity of the lighting.
40        ///
41        ///
42        /// In a well lit environment, this value is close to 1000. It typically ranges from 0 (very dark) to around 2000 (very bright).
43        #[unsafe(method(ambientIntensity))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn ambientIntensity(&self) -> CGFloat;
46
47        #[cfg(feature = "objc2-core-foundation")]
48        /// The ambient color temperature of the lighting.
49        ///
50        ///
51        /// This specifies the ambient color temperature of the lighting in Kelvin (6500 corresponds to pure white).
52        #[unsafe(method(ambientColorTemperature))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn ambientColorTemperature(&self) -> CGFloat;
55
56        /// Unavailable
57        #[unsafe(method(init))]
58        #[unsafe(method_family = init)]
59        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
60
61        #[unsafe(method(new))]
62        #[unsafe(method_family = new)]
63        pub unsafe fn new() -> Retained<Self>;
64    );
65}
66
67#[cfg(feature = "objc2")]
68extern_class!(
69    /// A directional light estimate representing the light intensity and direction in the scene.
70    ///
71    /// See also [Apple's documentation](https://developer.apple.com/documentation/arkit/ardirectionallightestimate?language=objc)
72    #[unsafe(super(ARLightEstimate, NSObject))]
73    #[derive(Debug, PartialEq, Eq, Hash)]
74    #[cfg(feature = "objc2")]
75    pub struct ARDirectionalLightEstimate;
76);
77
78#[cfg(feature = "objc2")]
79unsafe impl Send for ARDirectionalLightEstimate {}
80
81#[cfg(feature = "objc2")]
82unsafe impl Sync for ARDirectionalLightEstimate {}
83
84#[cfg(feature = "objc2")]
85extern_conformance!(
86    unsafe impl NSObjectProtocol for ARDirectionalLightEstimate {}
87);
88
89#[cfg(feature = "objc2")]
90impl ARDirectionalLightEstimate {
91    extern_methods!(
92        #[cfg(feature = "objc2-foundation")]
93        /// Second degree spherical harmonics coefficients representing the intensity of light.
94        ///
95        ///
96        /// The data is an array of 27 32-bit floating-point values, containing three non-interleaved data sets
97        /// corresponding to the red, green, and blue sets of coefficients.
98        #[unsafe(method(sphericalHarmonicsCoefficients))]
99        #[unsafe(method_family = none)]
100        pub unsafe fn sphericalHarmonicsCoefficients(&self) -> Retained<NSData>;
101
102        #[cfg(feature = "objc2-core-foundation")]
103        /// The intensity of light in the primary direction.
104        #[unsafe(method(primaryLightIntensity))]
105        #[unsafe(method_family = none)]
106        pub unsafe fn primaryLightIntensity(&self) -> CGFloat;
107    );
108}
109
110/// Methods declared on superclass `ARLightEstimate`.
111#[cfg(feature = "objc2")]
112impl ARDirectionalLightEstimate {
113    extern_methods!(
114        /// Unavailable
115        #[unsafe(method(init))]
116        #[unsafe(method_family = init)]
117        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
118
119        #[unsafe(method(new))]
120        #[unsafe(method_family = new)]
121        pub unsafe fn new() -> Retained<Self>;
122    );
123}