objc2_media_accessibility/generated/
MAFlashingLightsProcessing.rs1use core::ffi::*;
4use core::ptr::NonNull;
5#[cfg(feature = "objc2")]
6use objc2::__framework_prelude::*;
7use objc2_core_foundation::*;
8#[cfg(feature = "objc2-foundation")]
9use objc2_foundation::*;
10#[cfg(feature = "objc2-io-surface")]
11use objc2_io_surface::*;
12
13use crate::*;
14
15#[cfg(feature = "objc2")]
16extern_class!(
17 #[unsafe(super(NSObject))]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 #[cfg(feature = "objc2")]
21 pub struct MAFlashingLightsProcessorResult;
22);
23
24#[cfg(feature = "objc2")]
25extern_conformance!(
26 unsafe impl NSObjectProtocol for MAFlashingLightsProcessorResult {}
27);
28
29#[cfg(feature = "objc2")]
30impl MAFlashingLightsProcessorResult {
31 extern_methods!(
32 #[unsafe(method(surfaceProcessed))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn surfaceProcessed(&self) -> bool;
35
36 #[unsafe(method(mitigationLevel))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn mitigationLevel(&self) -> c_float;
39
40 #[unsafe(method(intensityLevel))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn intensityLevel(&self) -> c_float;
43 );
44}
45
46#[cfg(feature = "objc2")]
48impl MAFlashingLightsProcessorResult {
49 extern_methods!(
50 #[unsafe(method(init))]
51 #[unsafe(method_family = init)]
52 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
53
54 #[unsafe(method(new))]
55 #[unsafe(method_family = new)]
56 pub unsafe fn new() -> Retained<Self>;
57 );
58}
59
60#[cfg(feature = "objc2-foundation")]
63pub type MAFlashingLightsProcessorOptionKey = NSString;
64
65#[cfg(feature = "objc2")]
66extern_class!(
67 #[unsafe(super(NSObject))]
69 #[derive(Debug, PartialEq, Eq, Hash)]
70 #[cfg(feature = "objc2")]
71 pub struct MAFlashingLightsProcessor;
72);
73
74#[cfg(feature = "objc2")]
75extern_conformance!(
76 unsafe impl NSObjectProtocol for MAFlashingLightsProcessor {}
77);
78
79#[cfg(feature = "objc2")]
80impl MAFlashingLightsProcessor {
81 extern_methods!(
82 #[cfg(feature = "objc2-io-surface")]
83 #[unsafe(method(canProcessSurface:))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn canProcessSurface(&self, surface: &IOSurfaceRef) -> bool;
90
91 #[cfg(all(feature = "objc2-foundation", feature = "objc2-io-surface"))]
92 #[unsafe(method(processSurface:outSurface:timestamp:options:))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn processSurface_outSurface_timestamp_options(
101 &self,
102 in_surface: &IOSurfaceRef,
103 out_surface: &IOSurfaceRef,
104 timestamp: CFAbsoluteTime,
105 options: Option<&NSDictionary<MAFlashingLightsProcessorOptionKey, AnyObject>>,
106 ) -> Retained<MAFlashingLightsProcessorResult>;
107 );
108}
109
110#[cfg(feature = "objc2")]
112impl MAFlashingLightsProcessor {
113 extern_methods!(
114 #[unsafe(method(init))]
115 #[unsafe(method_family = init)]
116 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
117
118 #[unsafe(method(new))]
119 #[unsafe(method_family = new)]
120 pub unsafe fn new() -> Retained<Self>;
121 );
122}