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")]
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 #[unsafe(method(ambientIntensity))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn ambientIntensity(&self) -> CGFloat;
46
47 #[cfg(feature = "objc2-core-foundation")]
48 #[unsafe(method(ambientColorTemperature))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn ambientColorTemperature(&self) -> CGFloat;
55
56 #[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 #[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 #[unsafe(method(sphericalHarmonicsCoefficients))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn sphericalHarmonicsCoefficients(&self) -> Retained<NSData>;
101
102 #[cfg(feature = "objc2-core-foundation")]
103 #[unsafe(method(primaryLightIntensity))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn primaryLightIntensity(&self) -> CGFloat;
107 );
108}
109
110#[cfg(feature = "objc2")]
112impl ARDirectionalLightEstimate {
113 extern_methods!(
114 #[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}