objc2_core_image/generated/
CIImageAccumulator.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8#[cfg(feature = "objc2-core-graphics")]
9use objc2_core_graphics::*;
10
11use crate::*;
12
13extern_class!(
14 #[unsafe(super(NSObject))]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 pub struct CIImageAccumulator;
18);
19
20extern_conformance!(
21 unsafe impl NSObjectProtocol for CIImageAccumulator {}
22);
23
24impl CIImageAccumulator {
25 extern_methods!(
26 #[cfg(all(feature = "CIImage", feature = "objc2-core-foundation"))]
27 #[unsafe(method(imageAccumulatorWithExtent:format:))]
28 #[unsafe(method_family = none)]
29 pub unsafe fn imageAccumulatorWithExtent_format(
30 extent: CGRect,
31 format: CIFormat,
32 ) -> Option<Retained<Self>>;
33
34 #[cfg(all(
35 feature = "CIImage",
36 feature = "objc2-core-foundation",
37 feature = "objc2-core-graphics"
38 ))]
39 #[unsafe(method(imageAccumulatorWithExtent:format:colorSpace:))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn imageAccumulatorWithExtent_format_colorSpace(
42 extent: CGRect,
43 format: CIFormat,
44 color_space: &CGColorSpace,
45 ) -> Option<Retained<Self>>;
46
47 #[cfg(all(feature = "CIImage", feature = "objc2-core-foundation"))]
48 #[unsafe(method(initWithExtent:format:))]
49 #[unsafe(method_family = init)]
50 pub unsafe fn initWithExtent_format(
51 this: Allocated<Self>,
52 extent: CGRect,
53 format: CIFormat,
54 ) -> Option<Retained<Self>>;
55
56 #[cfg(all(
57 feature = "CIImage",
58 feature = "objc2-core-foundation",
59 feature = "objc2-core-graphics"
60 ))]
61 #[unsafe(method(initWithExtent:format:colorSpace:))]
62 #[unsafe(method_family = init)]
63 pub unsafe fn initWithExtent_format_colorSpace(
64 this: Allocated<Self>,
65 extent: CGRect,
66 format: CIFormat,
67 color_space: &CGColorSpace,
68 ) -> Option<Retained<Self>>;
69
70 #[cfg(feature = "objc2-core-foundation")]
71 #[unsafe(method(extent))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn extent(&self) -> CGRect;
74
75 #[cfg(feature = "CIImage")]
76 #[unsafe(method(format))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn format(&self) -> CIFormat;
79
80 #[cfg(feature = "CIImage")]
81 #[unsafe(method(image))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn image(&self) -> Retained<CIImage>;
84
85 #[cfg(feature = "CIImage")]
86 #[unsafe(method(setImage:))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn setImage(&self, image: &CIImage);
89
90 #[cfg(all(feature = "CIImage", feature = "objc2-core-foundation"))]
91 #[unsafe(method(setImage:dirtyRect:))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn setImage_dirtyRect(&self, image: &CIImage, dirty_rect: CGRect);
94
95 #[unsafe(method(clear))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn clear(&self);
98 );
99}
100
101impl CIImageAccumulator {
103 extern_methods!(
104 #[unsafe(method(init))]
105 #[unsafe(method_family = init)]
106 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
107
108 #[unsafe(method(new))]
109 #[unsafe(method_family = new)]
110 pub unsafe fn new() -> Retained<Self>;
111 );
112}