objc2_ar_kit/generated/
ARLightEstimate.rs1use 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 #[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 #[unsafe(method(ambientIntensity))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn ambientIntensity(&self) -> CGFloat;
44
45 #[cfg(feature = "objc2-core-foundation")]
46 #[unsafe(method(ambientColorTemperature))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn ambientColorTemperature(&self) -> CGFloat;
53
54 #[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 #[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 #[unsafe(method(sphericalHarmonicsCoefficients))]
95 #[unsafe(method_family = none)]
96 pub unsafe fn sphericalHarmonicsCoefficients(&self) -> Retained<NSData>;
97
98 #[cfg(feature = "objc2-core-foundation")]
99 #[unsafe(method(primaryLightIntensity))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn primaryLightIntensity(&self) -> CGFloat;
103 );
104}
105
106#[cfg(feature = "objc2")]
108impl ARDirectionalLightEstimate {
109 extern_methods!(
110 #[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}