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