objc2_quartz_core/generated/
CAEmitterCell.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::*;
10use objc2_foundation::*;
11
12use crate::*;
13
14extern_class!(
15 #[unsafe(super(NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 pub struct CAEmitterCell;
19);
20
21#[cfg(feature = "CAMediaTiming")]
22extern_conformance!(
23 unsafe impl CAMediaTiming for CAEmitterCell {}
24);
25
26extern_conformance!(
27 unsafe impl NSCoding for CAEmitterCell {}
28);
29
30extern_conformance!(
31 unsafe impl NSObjectProtocol for CAEmitterCell {}
32);
33
34extern_conformance!(
35 unsafe impl NSSecureCoding for CAEmitterCell {}
36);
37
38impl CAEmitterCell {
39 extern_methods!(
40 #[unsafe(method(emitterCell))]
41 #[unsafe(method_family = none)]
42 pub fn emitterCell() -> Retained<Self>;
43
44 #[unsafe(method(defaultValueForKey:))]
45 #[unsafe(method_family = none)]
46 pub fn defaultValueForKey(key: &NSString) -> Option<Retained<AnyObject>>;
47
48 #[unsafe(method(shouldArchiveValueForKey:))]
49 #[unsafe(method_family = none)]
50 pub fn shouldArchiveValueForKey(&self, key: &NSString) -> bool;
51
52 #[unsafe(method(name))]
53 #[unsafe(method_family = none)]
54 pub fn name(&self) -> Option<Retained<NSString>>;
55
56 #[unsafe(method(setName:))]
60 #[unsafe(method_family = none)]
61 pub fn setName(&self, name: Option<&NSString>);
62
63 #[unsafe(method(isEnabled))]
64 #[unsafe(method_family = none)]
65 pub fn isEnabled(&self) -> bool;
66
67 #[unsafe(method(setEnabled:))]
69 #[unsafe(method_family = none)]
70 pub fn setEnabled(&self, enabled: bool);
71
72 #[unsafe(method(birthRate))]
73 #[unsafe(method_family = none)]
74 pub fn birthRate(&self) -> c_float;
75
76 #[unsafe(method(setBirthRate:))]
78 #[unsafe(method_family = none)]
79 pub fn setBirthRate(&self, birth_rate: c_float);
80
81 #[unsafe(method(lifetime))]
82 #[unsafe(method_family = none)]
83 pub fn lifetime(&self) -> c_float;
84
85 #[unsafe(method(setLifetime:))]
87 #[unsafe(method_family = none)]
88 pub fn setLifetime(&self, lifetime: c_float);
89
90 #[unsafe(method(lifetimeRange))]
91 #[unsafe(method_family = none)]
92 pub fn lifetimeRange(&self) -> c_float;
93
94 #[unsafe(method(setLifetimeRange:))]
96 #[unsafe(method_family = none)]
97 pub fn setLifetimeRange(&self, lifetime_range: c_float);
98
99 #[cfg(feature = "objc2-core-foundation")]
100 #[unsafe(method(emissionLatitude))]
101 #[unsafe(method_family = none)]
102 pub fn emissionLatitude(&self) -> CGFloat;
103
104 #[cfg(feature = "objc2-core-foundation")]
105 #[unsafe(method(setEmissionLatitude:))]
107 #[unsafe(method_family = none)]
108 pub fn setEmissionLatitude(&self, emission_latitude: CGFloat);
109
110 #[cfg(feature = "objc2-core-foundation")]
111 #[unsafe(method(emissionLongitude))]
112 #[unsafe(method_family = none)]
113 pub fn emissionLongitude(&self) -> CGFloat;
114
115 #[cfg(feature = "objc2-core-foundation")]
116 #[unsafe(method(setEmissionLongitude:))]
118 #[unsafe(method_family = none)]
119 pub fn setEmissionLongitude(&self, emission_longitude: CGFloat);
120
121 #[cfg(feature = "objc2-core-foundation")]
122 #[unsafe(method(emissionRange))]
123 #[unsafe(method_family = none)]
124 pub fn emissionRange(&self) -> CGFloat;
125
126 #[cfg(feature = "objc2-core-foundation")]
127 #[unsafe(method(setEmissionRange:))]
129 #[unsafe(method_family = none)]
130 pub fn setEmissionRange(&self, emission_range: CGFloat);
131
132 #[cfg(feature = "objc2-core-foundation")]
133 #[unsafe(method(velocity))]
134 #[unsafe(method_family = none)]
135 pub fn velocity(&self) -> CGFloat;
136
137 #[cfg(feature = "objc2-core-foundation")]
138 #[unsafe(method(setVelocity:))]
140 #[unsafe(method_family = none)]
141 pub fn setVelocity(&self, velocity: CGFloat);
142
143 #[cfg(feature = "objc2-core-foundation")]
144 #[unsafe(method(velocityRange))]
145 #[unsafe(method_family = none)]
146 pub fn velocityRange(&self) -> CGFloat;
147
148 #[cfg(feature = "objc2-core-foundation")]
149 #[unsafe(method(setVelocityRange:))]
151 #[unsafe(method_family = none)]
152 pub fn setVelocityRange(&self, velocity_range: CGFloat);
153
154 #[cfg(feature = "objc2-core-foundation")]
155 #[unsafe(method(xAcceleration))]
156 #[unsafe(method_family = none)]
157 pub fn xAcceleration(&self) -> CGFloat;
158
159 #[cfg(feature = "objc2-core-foundation")]
160 #[unsafe(method(setXAcceleration:))]
162 #[unsafe(method_family = none)]
163 pub fn setXAcceleration(&self, x_acceleration: CGFloat);
164
165 #[cfg(feature = "objc2-core-foundation")]
166 #[unsafe(method(yAcceleration))]
167 #[unsafe(method_family = none)]
168 pub fn yAcceleration(&self) -> CGFloat;
169
170 #[cfg(feature = "objc2-core-foundation")]
171 #[unsafe(method(setYAcceleration:))]
173 #[unsafe(method_family = none)]
174 pub fn setYAcceleration(&self, y_acceleration: CGFloat);
175
176 #[cfg(feature = "objc2-core-foundation")]
177 #[unsafe(method(zAcceleration))]
178 #[unsafe(method_family = none)]
179 pub fn zAcceleration(&self) -> CGFloat;
180
181 #[cfg(feature = "objc2-core-foundation")]
182 #[unsafe(method(setZAcceleration:))]
184 #[unsafe(method_family = none)]
185 pub fn setZAcceleration(&self, z_acceleration: CGFloat);
186
187 #[cfg(feature = "objc2-core-foundation")]
188 #[unsafe(method(scale))]
189 #[unsafe(method_family = none)]
190 pub fn scale(&self) -> CGFloat;
191
192 #[cfg(feature = "objc2-core-foundation")]
193 #[unsafe(method(setScale:))]
195 #[unsafe(method_family = none)]
196 pub fn setScale(&self, scale: CGFloat);
197
198 #[cfg(feature = "objc2-core-foundation")]
199 #[unsafe(method(scaleRange))]
200 #[unsafe(method_family = none)]
201 pub fn scaleRange(&self) -> CGFloat;
202
203 #[cfg(feature = "objc2-core-foundation")]
204 #[unsafe(method(setScaleRange:))]
206 #[unsafe(method_family = none)]
207 pub fn setScaleRange(&self, scale_range: CGFloat);
208
209 #[cfg(feature = "objc2-core-foundation")]
210 #[unsafe(method(scaleSpeed))]
211 #[unsafe(method_family = none)]
212 pub fn scaleSpeed(&self) -> CGFloat;
213
214 #[cfg(feature = "objc2-core-foundation")]
215 #[unsafe(method(setScaleSpeed:))]
217 #[unsafe(method_family = none)]
218 pub fn setScaleSpeed(&self, scale_speed: CGFloat);
219
220 #[cfg(feature = "objc2-core-foundation")]
221 #[unsafe(method(spin))]
222 #[unsafe(method_family = none)]
223 pub fn spin(&self) -> CGFloat;
224
225 #[cfg(feature = "objc2-core-foundation")]
226 #[unsafe(method(setSpin:))]
228 #[unsafe(method_family = none)]
229 pub fn setSpin(&self, spin: CGFloat);
230
231 #[cfg(feature = "objc2-core-foundation")]
232 #[unsafe(method(spinRange))]
233 #[unsafe(method_family = none)]
234 pub fn spinRange(&self) -> CGFloat;
235
236 #[cfg(feature = "objc2-core-foundation")]
237 #[unsafe(method(setSpinRange:))]
239 #[unsafe(method_family = none)]
240 pub fn setSpinRange(&self, spin_range: CGFloat);
241
242 #[cfg(feature = "objc2-core-graphics")]
243 #[unsafe(method(color))]
244 #[unsafe(method_family = none)]
245 pub fn color(&self) -> Option<Retained<CGColor>>;
246
247 #[cfg(feature = "objc2-core-graphics")]
248 #[unsafe(method(setColor:))]
250 #[unsafe(method_family = none)]
251 pub fn setColor(&self, color: Option<&CGColor>);
252
253 #[unsafe(method(redRange))]
254 #[unsafe(method_family = none)]
255 pub fn redRange(&self) -> c_float;
256
257 #[unsafe(method(setRedRange:))]
259 #[unsafe(method_family = none)]
260 pub fn setRedRange(&self, red_range: c_float);
261
262 #[unsafe(method(greenRange))]
263 #[unsafe(method_family = none)]
264 pub fn greenRange(&self) -> c_float;
265
266 #[unsafe(method(setGreenRange:))]
268 #[unsafe(method_family = none)]
269 pub fn setGreenRange(&self, green_range: c_float);
270
271 #[unsafe(method(blueRange))]
272 #[unsafe(method_family = none)]
273 pub fn blueRange(&self) -> c_float;
274
275 #[unsafe(method(setBlueRange:))]
277 #[unsafe(method_family = none)]
278 pub fn setBlueRange(&self, blue_range: c_float);
279
280 #[unsafe(method(alphaRange))]
281 #[unsafe(method_family = none)]
282 pub fn alphaRange(&self) -> c_float;
283
284 #[unsafe(method(setAlphaRange:))]
286 #[unsafe(method_family = none)]
287 pub fn setAlphaRange(&self, alpha_range: c_float);
288
289 #[unsafe(method(redSpeed))]
290 #[unsafe(method_family = none)]
291 pub fn redSpeed(&self) -> c_float;
292
293 #[unsafe(method(setRedSpeed:))]
295 #[unsafe(method_family = none)]
296 pub fn setRedSpeed(&self, red_speed: c_float);
297
298 #[unsafe(method(greenSpeed))]
299 #[unsafe(method_family = none)]
300 pub fn greenSpeed(&self) -> c_float;
301
302 #[unsafe(method(setGreenSpeed:))]
304 #[unsafe(method_family = none)]
305 pub fn setGreenSpeed(&self, green_speed: c_float);
306
307 #[unsafe(method(blueSpeed))]
308 #[unsafe(method_family = none)]
309 pub fn blueSpeed(&self) -> c_float;
310
311 #[unsafe(method(setBlueSpeed:))]
313 #[unsafe(method_family = none)]
314 pub fn setBlueSpeed(&self, blue_speed: c_float);
315
316 #[unsafe(method(alphaSpeed))]
317 #[unsafe(method_family = none)]
318 pub fn alphaSpeed(&self) -> c_float;
319
320 #[unsafe(method(setAlphaSpeed:))]
322 #[unsafe(method_family = none)]
323 pub fn setAlphaSpeed(&self, alpha_speed: c_float);
324
325 #[unsafe(method(contents))]
326 #[unsafe(method_family = none)]
327 pub fn contents(&self) -> Option<Retained<AnyObject>>;
328
329 #[unsafe(method(setContents:))]
335 #[unsafe(method_family = none)]
336 pub unsafe fn setContents(&self, contents: Option<&AnyObject>);
337
338 #[cfg(feature = "objc2-core-foundation")]
339 #[unsafe(method(contentsRect))]
340 #[unsafe(method_family = none)]
341 pub fn contentsRect(&self) -> CGRect;
342
343 #[cfg(feature = "objc2-core-foundation")]
344 #[unsafe(method(setContentsRect:))]
346 #[unsafe(method_family = none)]
347 pub fn setContentsRect(&self, contents_rect: CGRect);
348
349 #[cfg(feature = "objc2-core-foundation")]
350 #[unsafe(method(contentsScale))]
351 #[unsafe(method_family = none)]
352 pub fn contentsScale(&self) -> CGFloat;
353
354 #[cfg(feature = "objc2-core-foundation")]
355 #[unsafe(method(setContentsScale:))]
357 #[unsafe(method_family = none)]
358 pub fn setContentsScale(&self, contents_scale: CGFloat);
359
360 #[unsafe(method(minificationFilter))]
361 #[unsafe(method_family = none)]
362 pub fn minificationFilter(&self) -> Retained<NSString>;
363
364 #[unsafe(method(setMinificationFilter:))]
368 #[unsafe(method_family = none)]
369 pub fn setMinificationFilter(&self, minification_filter: &NSString);
370
371 #[unsafe(method(magnificationFilter))]
372 #[unsafe(method_family = none)]
373 pub fn magnificationFilter(&self) -> Retained<NSString>;
374
375 #[unsafe(method(setMagnificationFilter:))]
379 #[unsafe(method_family = none)]
380 pub fn setMagnificationFilter(&self, magnification_filter: &NSString);
381
382 #[unsafe(method(minificationFilterBias))]
383 #[unsafe(method_family = none)]
384 pub fn minificationFilterBias(&self) -> c_float;
385
386 #[unsafe(method(setMinificationFilterBias:))]
388 #[unsafe(method_family = none)]
389 pub fn setMinificationFilterBias(&self, minification_filter_bias: c_float);
390
391 #[unsafe(method(emitterCells))]
392 #[unsafe(method_family = none)]
393 pub fn emitterCells(&self) -> Option<Retained<NSArray<CAEmitterCell>>>;
394
395 #[unsafe(method(setEmitterCells:))]
399 #[unsafe(method_family = none)]
400 pub fn setEmitterCells(&self, emitter_cells: Option<&NSArray<CAEmitterCell>>);
401
402 #[unsafe(method(style))]
403 #[unsafe(method_family = none)]
404 pub fn style(&self) -> Option<Retained<NSDictionary>>;
405
406 #[unsafe(method(setStyle:))]
414 #[unsafe(method_family = none)]
415 pub unsafe fn setStyle(&self, style: Option<&NSDictionary>);
416 );
417}
418
419impl CAEmitterCell {
421 extern_methods!(
422 #[unsafe(method(init))]
423 #[unsafe(method_family = init)]
424 pub fn init(this: Allocated<Self>) -> Retained<Self>;
425
426 #[unsafe(method(new))]
427 #[unsafe(method_family = new)]
428 pub fn new() -> Retained<Self>;
429 );
430}
431
432impl DefaultRetained for CAEmitterCell {
433 #[inline]
434 fn default_retained() -> Retained<Self> {
435 Self::new()
436 }
437}