1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-app-kit")]
7#[cfg(target_os = "macos")]
8use objc2_app_kit::*;
9#[cfg(feature = "objc2-core-foundation")]
10use objc2_core_foundation::*;
11use objc2_foundation::*;
12#[cfg(feature = "objc2-quartz-core")]
13#[cfg(not(target_os = "watchos"))]
14use objc2_quartz_core::*;
15
16use crate::*;
17
18pub type SCNParticleProperty = NSString;
21
22extern "C" {
23 pub static SCNParticlePropertyPosition: &'static SCNParticleProperty;
25}
26
27extern "C" {
28 pub static SCNParticlePropertyAngle: &'static SCNParticleProperty;
30}
31
32extern "C" {
33 pub static SCNParticlePropertyRotationAxis: &'static SCNParticleProperty;
35}
36
37extern "C" {
38 pub static SCNParticlePropertyVelocity: &'static SCNParticleProperty;
40}
41
42extern "C" {
43 pub static SCNParticlePropertyAngularVelocity: &'static SCNParticleProperty;
45}
46
47extern "C" {
48 pub static SCNParticlePropertyLife: &'static SCNParticleProperty;
50}
51
52extern "C" {
53 pub static SCNParticlePropertyColor: &'static SCNParticleProperty;
55}
56
57extern "C" {
58 pub static SCNParticlePropertyOpacity: &'static SCNParticleProperty;
60}
61
62extern "C" {
63 pub static SCNParticlePropertySize: &'static SCNParticleProperty;
65}
66
67extern "C" {
68 pub static SCNParticlePropertyFrame: &'static SCNParticleProperty;
70}
71
72extern "C" {
73 pub static SCNParticlePropertyFrameRate: &'static SCNParticleProperty;
75}
76
77extern "C" {
78 pub static SCNParticlePropertyBounce: &'static SCNParticleProperty;
80}
81
82extern "C" {
83 pub static SCNParticlePropertyCharge: &'static SCNParticleProperty;
85}
86
87extern "C" {
88 pub static SCNParticlePropertyFriction: &'static SCNParticleProperty;
90}
91
92extern "C" {
93 pub static SCNParticlePropertyContactPoint: &'static SCNParticleProperty;
95}
96
97extern "C" {
98 pub static SCNParticlePropertyContactNormal: &'static SCNParticleProperty;
100}
101
102#[cfg(feature = "block2")]
131pub type SCNParticleEventBlock =
132 *mut block2::Block<dyn Fn(NonNull<NonNull<c_void>>, NonNull<usize>, *mut u32, NSInteger)>;
133
134#[cfg(feature = "block2")]
163pub type SCNParticleModifierBlock = *mut block2::Block<
164 dyn Fn(NonNull<NonNull<c_void>>, NonNull<usize>, NSInteger, NSInteger, c_float),
165>;
166
167#[repr(transparent)]
170#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
171pub struct SCNParticleSortingMode(pub NSInteger);
172impl SCNParticleSortingMode {
173 #[doc(alias = "SCNParticleSortingModeNone")]
174 pub const None: Self = Self(0);
175 #[doc(alias = "SCNParticleSortingModeProjectedDepth")]
176 pub const ProjectedDepth: Self = Self(1);
177 #[doc(alias = "SCNParticleSortingModeDistance")]
178 pub const Distance: Self = Self(2);
179 #[doc(alias = "SCNParticleSortingModeOldestFirst")]
180 pub const OldestFirst: Self = Self(3);
181 #[doc(alias = "SCNParticleSortingModeYoungestFirst")]
182 pub const YoungestFirst: Self = Self(4);
183}
184
185unsafe impl Encode for SCNParticleSortingMode {
186 const ENCODING: Encoding = NSInteger::ENCODING;
187}
188
189unsafe impl RefEncode for SCNParticleSortingMode {
190 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
191}
192
193#[repr(transparent)]
196#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
197pub struct SCNParticleBlendMode(pub NSInteger);
198impl SCNParticleBlendMode {
199 #[doc(alias = "SCNParticleBlendModeAdditive")]
200 pub const Additive: Self = Self(0);
201 #[doc(alias = "SCNParticleBlendModeSubtract")]
202 pub const Subtract: Self = Self(1);
203 #[doc(alias = "SCNParticleBlendModeMultiply")]
204 pub const Multiply: Self = Self(2);
205 #[doc(alias = "SCNParticleBlendModeScreen")]
206 pub const Screen: Self = Self(3);
207 #[doc(alias = "SCNParticleBlendModeAlpha")]
208 pub const Alpha: Self = Self(4);
209 #[doc(alias = "SCNParticleBlendModeReplace")]
210 pub const Replace: Self = Self(5);
211}
212
213unsafe impl Encode for SCNParticleBlendMode {
214 const ENCODING: Encoding = NSInteger::ENCODING;
215}
216
217unsafe impl RefEncode for SCNParticleBlendMode {
218 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
219}
220
221#[repr(transparent)]
224#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
225pub struct SCNParticleOrientationMode(pub NSInteger);
226impl SCNParticleOrientationMode {
227 #[doc(alias = "SCNParticleOrientationModeBillboardScreenAligned")]
228 pub const BillboardScreenAligned: Self = Self(0);
229 #[doc(alias = "SCNParticleOrientationModeBillboardViewAligned")]
230 pub const BillboardViewAligned: Self = Self(1);
231 #[doc(alias = "SCNParticleOrientationModeFree")]
232 pub const Free: Self = Self(2);
233 #[doc(alias = "SCNParticleOrientationModeBillboardYAligned")]
234 pub const BillboardYAligned: Self = Self(3);
235}
236
237unsafe impl Encode for SCNParticleOrientationMode {
238 const ENCODING: Encoding = NSInteger::ENCODING;
239}
240
241unsafe impl RefEncode for SCNParticleOrientationMode {
242 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
243}
244
245#[repr(transparent)]
248#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
249pub struct SCNParticleBirthLocation(pub NSInteger);
250impl SCNParticleBirthLocation {
251 #[doc(alias = "SCNParticleBirthLocationSurface")]
252 pub const Surface: Self = Self(0);
253 #[doc(alias = "SCNParticleBirthLocationVolume")]
254 pub const Volume: Self = Self(1);
255 #[doc(alias = "SCNParticleBirthLocationVertex")]
256 pub const Vertex: Self = Self(2);
257}
258
259unsafe impl Encode for SCNParticleBirthLocation {
260 const ENCODING: Encoding = NSInteger::ENCODING;
261}
262
263unsafe impl RefEncode for SCNParticleBirthLocation {
264 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
265}
266
267#[repr(transparent)]
270#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
271pub struct SCNParticleBirthDirection(pub NSInteger);
272impl SCNParticleBirthDirection {
273 #[doc(alias = "SCNParticleBirthDirectionConstant")]
274 pub const Constant: Self = Self(0);
275 #[doc(alias = "SCNParticleBirthDirectionSurfaceNormal")]
276 pub const SurfaceNormal: Self = Self(1);
277 #[doc(alias = "SCNParticleBirthDirectionRandom")]
278 pub const Random: Self = Self(2);
279}
280
281unsafe impl Encode for SCNParticleBirthDirection {
282 const ENCODING: Encoding = NSInteger::ENCODING;
283}
284
285unsafe impl RefEncode for SCNParticleBirthDirection {
286 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
287}
288
289#[repr(transparent)]
292#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
293pub struct SCNParticleImageSequenceAnimationMode(pub NSInteger);
294impl SCNParticleImageSequenceAnimationMode {
295 #[doc(alias = "SCNParticleImageSequenceAnimationModeRepeat")]
296 pub const Repeat: Self = Self(0);
297 #[doc(alias = "SCNParticleImageSequenceAnimationModeClamp")]
298 pub const Clamp: Self = Self(1);
299 #[doc(alias = "SCNParticleImageSequenceAnimationModeAutoReverse")]
300 pub const AutoReverse: Self = Self(2);
301}
302
303unsafe impl Encode for SCNParticleImageSequenceAnimationMode {
304 const ENCODING: Encoding = NSInteger::ENCODING;
305}
306
307unsafe impl RefEncode for SCNParticleImageSequenceAnimationMode {
308 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
309}
310
311#[repr(transparent)]
314#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
315pub struct SCNParticleInputMode(pub NSInteger);
316impl SCNParticleInputMode {
317 #[doc(alias = "SCNParticleInputModeOverLife")]
318 pub const OverLife: Self = Self(0);
319 #[doc(alias = "SCNParticleInputModeOverDistance")]
320 pub const OverDistance: Self = Self(1);
321 #[doc(alias = "SCNParticleInputModeOverOtherProperty")]
322 pub const OverOtherProperty: Self = Self(2);
323}
324
325unsafe impl Encode for SCNParticleInputMode {
326 const ENCODING: Encoding = NSInteger::ENCODING;
327}
328
329unsafe impl RefEncode for SCNParticleInputMode {
330 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
331}
332
333#[repr(transparent)]
336#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
337pub struct SCNParticleModifierStage(pub NSInteger);
338impl SCNParticleModifierStage {
339 #[doc(alias = "SCNParticleModifierStagePreDynamics")]
340 pub const PreDynamics: Self = Self(0);
341 #[doc(alias = "SCNParticleModifierStagePostDynamics")]
342 pub const PostDynamics: Self = Self(1);
343 #[doc(alias = "SCNParticleModifierStagePreCollision")]
344 pub const PreCollision: Self = Self(2);
345 #[doc(alias = "SCNParticleModifierStagePostCollision")]
346 pub const PostCollision: Self = Self(3);
347}
348
349unsafe impl Encode for SCNParticleModifierStage {
350 const ENCODING: Encoding = NSInteger::ENCODING;
351}
352
353unsafe impl RefEncode for SCNParticleModifierStage {
354 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
355}
356
357#[repr(transparent)]
360#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
361pub struct SCNParticleEvent(pub NSInteger);
362impl SCNParticleEvent {
363 #[doc(alias = "SCNParticleEventBirth")]
364 pub const Birth: Self = Self(0);
365 #[doc(alias = "SCNParticleEventDeath")]
366 pub const Death: Self = Self(1);
367 #[doc(alias = "SCNParticleEventCollision")]
368 pub const Collision: Self = Self(2);
369}
370
371unsafe impl Encode for SCNParticleEvent {
372 const ENCODING: Encoding = NSInteger::ENCODING;
373}
374
375unsafe impl RefEncode for SCNParticleEvent {
376 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
377}
378
379extern_class!(
380 #[unsafe(super(NSObject))]
384 #[derive(Debug, PartialEq, Eq, Hash)]
385 pub struct SCNParticlePropertyController;
386);
387
388unsafe impl NSCoding for SCNParticlePropertyController {}
389
390unsafe impl NSCopying for SCNParticlePropertyController {}
391
392unsafe impl CopyingHelper for SCNParticlePropertyController {
393 type Result = Self;
394}
395
396unsafe impl NSObjectProtocol for SCNParticlePropertyController {}
397
398unsafe impl NSSecureCoding for SCNParticlePropertyController {}
399
400impl SCNParticlePropertyController {
401 extern_methods!(
402 #[cfg(feature = "objc2-quartz-core")]
403 #[cfg(not(target_os = "watchos"))]
404 #[unsafe(method(controllerWithAnimation:))]
405 #[unsafe(method_family = none)]
406 pub unsafe fn controllerWithAnimation(animation: &CAAnimation) -> Retained<Self>;
407
408 #[cfg(feature = "objc2-quartz-core")]
409 #[cfg(not(target_os = "watchos"))]
410 #[unsafe(method(animation))]
411 #[unsafe(method_family = none)]
412 pub unsafe fn animation(&self) -> Retained<CAAnimation>;
413
414 #[cfg(feature = "objc2-quartz-core")]
415 #[cfg(not(target_os = "watchos"))]
416 #[unsafe(method(setAnimation:))]
418 #[unsafe(method_family = none)]
419 pub unsafe fn setAnimation(&self, animation: &CAAnimation);
420
421 #[unsafe(method(inputMode))]
422 #[unsafe(method_family = none)]
423 pub unsafe fn inputMode(&self) -> SCNParticleInputMode;
424
425 #[unsafe(method(setInputMode:))]
427 #[unsafe(method_family = none)]
428 pub unsafe fn setInputMode(&self, input_mode: SCNParticleInputMode);
429
430 #[cfg(feature = "objc2-core-foundation")]
431 #[unsafe(method(inputScale))]
432 #[unsafe(method_family = none)]
433 pub unsafe fn inputScale(&self) -> CGFloat;
434
435 #[cfg(feature = "objc2-core-foundation")]
436 #[unsafe(method(setInputScale:))]
438 #[unsafe(method_family = none)]
439 pub unsafe fn setInputScale(&self, input_scale: CGFloat);
440
441 #[cfg(feature = "objc2-core-foundation")]
442 #[unsafe(method(inputBias))]
443 #[unsafe(method_family = none)]
444 pub unsafe fn inputBias(&self) -> CGFloat;
445
446 #[cfg(feature = "objc2-core-foundation")]
447 #[unsafe(method(setInputBias:))]
449 #[unsafe(method_family = none)]
450 pub unsafe fn setInputBias(&self, input_bias: CGFloat);
451
452 #[cfg(feature = "SCNNode")]
453 #[unsafe(method(inputOrigin))]
454 #[unsafe(method_family = none)]
455 pub unsafe fn inputOrigin(&self) -> Option<Retained<SCNNode>>;
456
457 #[cfg(feature = "SCNNode")]
458 #[unsafe(method(setInputOrigin:))]
461 #[unsafe(method_family = none)]
462 pub unsafe fn setInputOrigin(&self, input_origin: Option<&SCNNode>);
463
464 #[unsafe(method(inputProperty))]
465 #[unsafe(method_family = none)]
466 pub unsafe fn inputProperty(&self) -> Option<Retained<SCNParticleProperty>>;
467
468 #[unsafe(method(setInputProperty:))]
470 #[unsafe(method_family = none)]
471 pub unsafe fn setInputProperty(&self, input_property: Option<&SCNParticleProperty>);
472 );
473}
474
475impl SCNParticlePropertyController {
477 extern_methods!(
478 #[unsafe(method(init))]
479 #[unsafe(method_family = init)]
480 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
481
482 #[unsafe(method(new))]
483 #[unsafe(method_family = new)]
484 pub unsafe fn new() -> Retained<Self>;
485 );
486}
487
488extern_class!(
489 #[unsafe(super(NSObject))]
493 #[derive(Debug, PartialEq, Eq, Hash)]
494 pub struct SCNParticleSystem;
495);
496
497unsafe impl NSCoding for SCNParticleSystem {}
498
499unsafe impl NSCopying for SCNParticleSystem {}
500
501unsafe impl CopyingHelper for SCNParticleSystem {
502 type Result = Self;
503}
504
505unsafe impl NSObjectProtocol for SCNParticleSystem {}
506
507unsafe impl NSSecureCoding for SCNParticleSystem {}
508
509#[cfg(feature = "SCNAnimation")]
510unsafe impl SCNAnimatable for SCNParticleSystem {}
511
512impl SCNParticleSystem {
513 extern_methods!(
514 #[unsafe(method(particleSystem))]
515 #[unsafe(method_family = none)]
516 pub unsafe fn particleSystem() -> Retained<Self>;
517
518 #[unsafe(method(particleSystemNamed:inDirectory:))]
519 #[unsafe(method_family = none)]
520 pub unsafe fn particleSystemNamed_inDirectory(
521 name: &NSString,
522 directory: Option<&NSString>,
523 ) -> Option<Retained<Self>>;
524
525 #[cfg(feature = "objc2-core-foundation")]
526 #[unsafe(method(emissionDuration))]
527 #[unsafe(method_family = none)]
528 pub unsafe fn emissionDuration(&self) -> CGFloat;
529
530 #[cfg(feature = "objc2-core-foundation")]
531 #[unsafe(method(setEmissionDuration:))]
533 #[unsafe(method_family = none)]
534 pub unsafe fn setEmissionDuration(&self, emission_duration: CGFloat);
535
536 #[cfg(feature = "objc2-core-foundation")]
537 #[unsafe(method(emissionDurationVariation))]
538 #[unsafe(method_family = none)]
539 pub unsafe fn emissionDurationVariation(&self) -> CGFloat;
540
541 #[cfg(feature = "objc2-core-foundation")]
542 #[unsafe(method(setEmissionDurationVariation:))]
544 #[unsafe(method_family = none)]
545 pub unsafe fn setEmissionDurationVariation(&self, emission_duration_variation: CGFloat);
546
547 #[cfg(feature = "objc2-core-foundation")]
548 #[unsafe(method(idleDuration))]
549 #[unsafe(method_family = none)]
550 pub unsafe fn idleDuration(&self) -> CGFloat;
551
552 #[cfg(feature = "objc2-core-foundation")]
553 #[unsafe(method(setIdleDuration:))]
555 #[unsafe(method_family = none)]
556 pub unsafe fn setIdleDuration(&self, idle_duration: CGFloat);
557
558 #[cfg(feature = "objc2-core-foundation")]
559 #[unsafe(method(idleDurationVariation))]
560 #[unsafe(method_family = none)]
561 pub unsafe fn idleDurationVariation(&self) -> CGFloat;
562
563 #[cfg(feature = "objc2-core-foundation")]
564 #[unsafe(method(setIdleDurationVariation:))]
566 #[unsafe(method_family = none)]
567 pub unsafe fn setIdleDurationVariation(&self, idle_duration_variation: CGFloat);
568
569 #[unsafe(method(loops))]
570 #[unsafe(method_family = none)]
571 pub unsafe fn loops(&self) -> bool;
572
573 #[unsafe(method(setLoops:))]
575 #[unsafe(method_family = none)]
576 pub unsafe fn setLoops(&self, loops: bool);
577
578 #[cfg(feature = "objc2-core-foundation")]
579 #[unsafe(method(birthRate))]
580 #[unsafe(method_family = none)]
581 pub unsafe fn birthRate(&self) -> CGFloat;
582
583 #[cfg(feature = "objc2-core-foundation")]
584 #[unsafe(method(setBirthRate:))]
586 #[unsafe(method_family = none)]
587 pub unsafe fn setBirthRate(&self, birth_rate: CGFloat);
588
589 #[cfg(feature = "objc2-core-foundation")]
590 #[unsafe(method(birthRateVariation))]
591 #[unsafe(method_family = none)]
592 pub unsafe fn birthRateVariation(&self) -> CGFloat;
593
594 #[cfg(feature = "objc2-core-foundation")]
595 #[unsafe(method(setBirthRateVariation:))]
597 #[unsafe(method_family = none)]
598 pub unsafe fn setBirthRateVariation(&self, birth_rate_variation: CGFloat);
599
600 #[cfg(feature = "objc2-core-foundation")]
601 #[unsafe(method(warmupDuration))]
602 #[unsafe(method_family = none)]
603 pub unsafe fn warmupDuration(&self) -> CGFloat;
604
605 #[cfg(feature = "objc2-core-foundation")]
606 #[unsafe(method(setWarmupDuration:))]
608 #[unsafe(method_family = none)]
609 pub unsafe fn setWarmupDuration(&self, warmup_duration: CGFloat);
610
611 #[cfg(feature = "SCNGeometry")]
612 #[unsafe(method(emitterShape))]
613 #[unsafe(method_family = none)]
614 pub unsafe fn emitterShape(&self) -> Option<Retained<SCNGeometry>>;
615
616 #[cfg(feature = "SCNGeometry")]
617 #[unsafe(method(setEmitterShape:))]
619 #[unsafe(method_family = none)]
620 pub unsafe fn setEmitterShape(&self, emitter_shape: Option<&SCNGeometry>);
621
622 #[unsafe(method(birthLocation))]
623 #[unsafe(method_family = none)]
624 pub unsafe fn birthLocation(&self) -> SCNParticleBirthLocation;
625
626 #[unsafe(method(setBirthLocation:))]
628 #[unsafe(method_family = none)]
629 pub unsafe fn setBirthLocation(&self, birth_location: SCNParticleBirthLocation);
630
631 #[unsafe(method(birthDirection))]
632 #[unsafe(method_family = none)]
633 pub unsafe fn birthDirection(&self) -> SCNParticleBirthDirection;
634
635 #[unsafe(method(setBirthDirection:))]
637 #[unsafe(method_family = none)]
638 pub unsafe fn setBirthDirection(&self, birth_direction: SCNParticleBirthDirection);
639
640 #[cfg(feature = "objc2-core-foundation")]
641 #[unsafe(method(spreadingAngle))]
642 #[unsafe(method_family = none)]
643 pub unsafe fn spreadingAngle(&self) -> CGFloat;
644
645 #[cfg(feature = "objc2-core-foundation")]
646 #[unsafe(method(setSpreadingAngle:))]
648 #[unsafe(method_family = none)]
649 pub unsafe fn setSpreadingAngle(&self, spreading_angle: CGFloat);
650
651 #[cfg(all(feature = "SceneKitTypes", feature = "objc2-core-foundation"))]
652 #[unsafe(method(emittingDirection))]
653 #[unsafe(method_family = none)]
654 pub unsafe fn emittingDirection(&self) -> SCNVector3;
655
656 #[cfg(all(feature = "SceneKitTypes", feature = "objc2-core-foundation"))]
657 #[unsafe(method(setEmittingDirection:))]
659 #[unsafe(method_family = none)]
660 pub unsafe fn setEmittingDirection(&self, emitting_direction: SCNVector3);
661
662 #[cfg(all(feature = "SceneKitTypes", feature = "objc2-core-foundation"))]
663 #[unsafe(method(orientationDirection))]
664 #[unsafe(method_family = none)]
665 pub unsafe fn orientationDirection(&self) -> SCNVector3;
666
667 #[cfg(all(feature = "SceneKitTypes", feature = "objc2-core-foundation"))]
668 #[unsafe(method(setOrientationDirection:))]
670 #[unsafe(method_family = none)]
671 pub unsafe fn setOrientationDirection(&self, orientation_direction: SCNVector3);
672
673 #[cfg(all(feature = "SceneKitTypes", feature = "objc2-core-foundation"))]
674 #[unsafe(method(acceleration))]
675 #[unsafe(method_family = none)]
676 pub unsafe fn acceleration(&self) -> SCNVector3;
677
678 #[cfg(all(feature = "SceneKitTypes", feature = "objc2-core-foundation"))]
679 #[unsafe(method(setAcceleration:))]
681 #[unsafe(method_family = none)]
682 pub unsafe fn setAcceleration(&self, acceleration: SCNVector3);
683
684 #[unsafe(method(isLocal))]
685 #[unsafe(method_family = none)]
686 pub unsafe fn isLocal(&self) -> bool;
687
688 #[unsafe(method(setLocal:))]
690 #[unsafe(method_family = none)]
691 pub unsafe fn setLocal(&self, local: bool);
692
693 #[cfg(feature = "objc2-core-foundation")]
694 #[unsafe(method(particleAngle))]
695 #[unsafe(method_family = none)]
696 pub unsafe fn particleAngle(&self) -> CGFloat;
697
698 #[cfg(feature = "objc2-core-foundation")]
699 #[unsafe(method(setParticleAngle:))]
701 #[unsafe(method_family = none)]
702 pub unsafe fn setParticleAngle(&self, particle_angle: CGFloat);
703
704 #[cfg(feature = "objc2-core-foundation")]
705 #[unsafe(method(particleAngleVariation))]
706 #[unsafe(method_family = none)]
707 pub unsafe fn particleAngleVariation(&self) -> CGFloat;
708
709 #[cfg(feature = "objc2-core-foundation")]
710 #[unsafe(method(setParticleAngleVariation:))]
712 #[unsafe(method_family = none)]
713 pub unsafe fn setParticleAngleVariation(&self, particle_angle_variation: CGFloat);
714
715 #[cfg(feature = "objc2-core-foundation")]
716 #[unsafe(method(particleVelocity))]
717 #[unsafe(method_family = none)]
718 pub unsafe fn particleVelocity(&self) -> CGFloat;
719
720 #[cfg(feature = "objc2-core-foundation")]
721 #[unsafe(method(setParticleVelocity:))]
723 #[unsafe(method_family = none)]
724 pub unsafe fn setParticleVelocity(&self, particle_velocity: CGFloat);
725
726 #[cfg(feature = "objc2-core-foundation")]
727 #[unsafe(method(particleVelocityVariation))]
728 #[unsafe(method_family = none)]
729 pub unsafe fn particleVelocityVariation(&self) -> CGFloat;
730
731 #[cfg(feature = "objc2-core-foundation")]
732 #[unsafe(method(setParticleVelocityVariation:))]
734 #[unsafe(method_family = none)]
735 pub unsafe fn setParticleVelocityVariation(&self, particle_velocity_variation: CGFloat);
736
737 #[cfg(feature = "objc2-core-foundation")]
738 #[unsafe(method(particleAngularVelocity))]
739 #[unsafe(method_family = none)]
740 pub unsafe fn particleAngularVelocity(&self) -> CGFloat;
741
742 #[cfg(feature = "objc2-core-foundation")]
743 #[unsafe(method(setParticleAngularVelocity:))]
745 #[unsafe(method_family = none)]
746 pub unsafe fn setParticleAngularVelocity(&self, particle_angular_velocity: CGFloat);
747
748 #[cfg(feature = "objc2-core-foundation")]
749 #[unsafe(method(particleAngularVelocityVariation))]
750 #[unsafe(method_family = none)]
751 pub unsafe fn particleAngularVelocityVariation(&self) -> CGFloat;
752
753 #[cfg(feature = "objc2-core-foundation")]
754 #[unsafe(method(setParticleAngularVelocityVariation:))]
756 #[unsafe(method_family = none)]
757 pub unsafe fn setParticleAngularVelocityVariation(
758 &self,
759 particle_angular_velocity_variation: CGFloat,
760 );
761
762 #[cfg(feature = "objc2-core-foundation")]
763 #[unsafe(method(particleLifeSpan))]
764 #[unsafe(method_family = none)]
765 pub unsafe fn particleLifeSpan(&self) -> CGFloat;
766
767 #[cfg(feature = "objc2-core-foundation")]
768 #[unsafe(method(setParticleLifeSpan:))]
770 #[unsafe(method_family = none)]
771 pub unsafe fn setParticleLifeSpan(&self, particle_life_span: CGFloat);
772
773 #[cfg(feature = "objc2-core-foundation")]
774 #[unsafe(method(particleLifeSpanVariation))]
775 #[unsafe(method_family = none)]
776 pub unsafe fn particleLifeSpanVariation(&self) -> CGFloat;
777
778 #[cfg(feature = "objc2-core-foundation")]
779 #[unsafe(method(setParticleLifeSpanVariation:))]
781 #[unsafe(method_family = none)]
782 pub unsafe fn setParticleLifeSpanVariation(&self, particle_life_span_variation: CGFloat);
783
784 #[unsafe(method(systemSpawnedOnDying))]
785 #[unsafe(method_family = none)]
786 pub unsafe fn systemSpawnedOnDying(&self) -> Option<Retained<SCNParticleSystem>>;
787
788 #[unsafe(method(setSystemSpawnedOnDying:))]
790 #[unsafe(method_family = none)]
791 pub unsafe fn setSystemSpawnedOnDying(
792 &self,
793 system_spawned_on_dying: Option<&SCNParticleSystem>,
794 );
795
796 #[unsafe(method(systemSpawnedOnCollision))]
797 #[unsafe(method_family = none)]
798 pub unsafe fn systemSpawnedOnCollision(&self) -> Option<Retained<SCNParticleSystem>>;
799
800 #[unsafe(method(setSystemSpawnedOnCollision:))]
802 #[unsafe(method_family = none)]
803 pub unsafe fn setSystemSpawnedOnCollision(
804 &self,
805 system_spawned_on_collision: Option<&SCNParticleSystem>,
806 );
807
808 #[unsafe(method(systemSpawnedOnLiving))]
809 #[unsafe(method_family = none)]
810 pub unsafe fn systemSpawnedOnLiving(&self) -> Option<Retained<SCNParticleSystem>>;
811
812 #[unsafe(method(setSystemSpawnedOnLiving:))]
814 #[unsafe(method_family = none)]
815 pub unsafe fn setSystemSpawnedOnLiving(
816 &self,
817 system_spawned_on_living: Option<&SCNParticleSystem>,
818 );
819
820 #[unsafe(method(particleImage))]
821 #[unsafe(method_family = none)]
822 pub unsafe fn particleImage(&self) -> Option<Retained<AnyObject>>;
823
824 #[unsafe(method(setParticleImage:))]
826 #[unsafe(method_family = none)]
827 pub unsafe fn setParticleImage(&self, particle_image: Option<&AnyObject>);
828
829 #[unsafe(method(imageSequenceColumnCount))]
830 #[unsafe(method_family = none)]
831 pub unsafe fn imageSequenceColumnCount(&self) -> NSUInteger;
832
833 #[unsafe(method(setImageSequenceColumnCount:))]
835 #[unsafe(method_family = none)]
836 pub unsafe fn setImageSequenceColumnCount(&self, image_sequence_column_count: NSUInteger);
837
838 #[unsafe(method(imageSequenceRowCount))]
839 #[unsafe(method_family = none)]
840 pub unsafe fn imageSequenceRowCount(&self) -> NSUInteger;
841
842 #[unsafe(method(setImageSequenceRowCount:))]
844 #[unsafe(method_family = none)]
845 pub unsafe fn setImageSequenceRowCount(&self, image_sequence_row_count: NSUInteger);
846
847 #[cfg(feature = "objc2-core-foundation")]
848 #[unsafe(method(imageSequenceInitialFrame))]
849 #[unsafe(method_family = none)]
850 pub unsafe fn imageSequenceInitialFrame(&self) -> CGFloat;
851
852 #[cfg(feature = "objc2-core-foundation")]
853 #[unsafe(method(setImageSequenceInitialFrame:))]
855 #[unsafe(method_family = none)]
856 pub unsafe fn setImageSequenceInitialFrame(&self, image_sequence_initial_frame: CGFloat);
857
858 #[cfg(feature = "objc2-core-foundation")]
859 #[unsafe(method(imageSequenceInitialFrameVariation))]
860 #[unsafe(method_family = none)]
861 pub unsafe fn imageSequenceInitialFrameVariation(&self) -> CGFloat;
862
863 #[cfg(feature = "objc2-core-foundation")]
864 #[unsafe(method(setImageSequenceInitialFrameVariation:))]
866 #[unsafe(method_family = none)]
867 pub unsafe fn setImageSequenceInitialFrameVariation(
868 &self,
869 image_sequence_initial_frame_variation: CGFloat,
870 );
871
872 #[cfg(feature = "objc2-core-foundation")]
873 #[unsafe(method(imageSequenceFrameRate))]
874 #[unsafe(method_family = none)]
875 pub unsafe fn imageSequenceFrameRate(&self) -> CGFloat;
876
877 #[cfg(feature = "objc2-core-foundation")]
878 #[unsafe(method(setImageSequenceFrameRate:))]
880 #[unsafe(method_family = none)]
881 pub unsafe fn setImageSequenceFrameRate(&self, image_sequence_frame_rate: CGFloat);
882
883 #[cfg(feature = "objc2-core-foundation")]
884 #[unsafe(method(imageSequenceFrameRateVariation))]
885 #[unsafe(method_family = none)]
886 pub unsafe fn imageSequenceFrameRateVariation(&self) -> CGFloat;
887
888 #[cfg(feature = "objc2-core-foundation")]
889 #[unsafe(method(setImageSequenceFrameRateVariation:))]
891 #[unsafe(method_family = none)]
892 pub unsafe fn setImageSequenceFrameRateVariation(
893 &self,
894 image_sequence_frame_rate_variation: CGFloat,
895 );
896
897 #[unsafe(method(imageSequenceAnimationMode))]
898 #[unsafe(method_family = none)]
899 pub unsafe fn imageSequenceAnimationMode(&self) -> SCNParticleImageSequenceAnimationMode;
900
901 #[unsafe(method(setImageSequenceAnimationMode:))]
903 #[unsafe(method_family = none)]
904 pub unsafe fn setImageSequenceAnimationMode(
905 &self,
906 image_sequence_animation_mode: SCNParticleImageSequenceAnimationMode,
907 );
908
909 #[cfg(feature = "objc2-app-kit")]
910 #[cfg(target_os = "macos")]
911 #[unsafe(method(particleColor))]
912 #[unsafe(method_family = none)]
913 pub unsafe fn particleColor(&self) -> Retained<NSColor>;
914
915 #[cfg(feature = "objc2-app-kit")]
916 #[cfg(target_os = "macos")]
917 #[unsafe(method(setParticleColor:))]
919 #[unsafe(method_family = none)]
920 pub unsafe fn setParticleColor(&self, particle_color: &NSColor);
921
922 #[cfg(all(feature = "SceneKitTypes", feature = "objc2-core-foundation"))]
923 #[unsafe(method(particleColorVariation))]
924 #[unsafe(method_family = none)]
925 pub unsafe fn particleColorVariation(&self) -> SCNVector4;
926
927 #[cfg(all(feature = "SceneKitTypes", feature = "objc2-core-foundation"))]
928 #[unsafe(method(setParticleColorVariation:))]
930 #[unsafe(method_family = none)]
931 pub unsafe fn setParticleColorVariation(&self, particle_color_variation: SCNVector4);
932
933 #[cfg(feature = "objc2-core-foundation")]
934 #[unsafe(method(particleSize))]
935 #[unsafe(method_family = none)]
936 pub unsafe fn particleSize(&self) -> CGFloat;
937
938 #[cfg(feature = "objc2-core-foundation")]
939 #[unsafe(method(setParticleSize:))]
941 #[unsafe(method_family = none)]
942 pub unsafe fn setParticleSize(&self, particle_size: CGFloat);
943
944 #[cfg(feature = "objc2-core-foundation")]
945 #[unsafe(method(particleSizeVariation))]
946 #[unsafe(method_family = none)]
947 pub unsafe fn particleSizeVariation(&self) -> CGFloat;
948
949 #[cfg(feature = "objc2-core-foundation")]
950 #[unsafe(method(setParticleSizeVariation:))]
952 #[unsafe(method_family = none)]
953 pub unsafe fn setParticleSizeVariation(&self, particle_size_variation: CGFloat);
954
955 #[cfg(feature = "objc2-core-foundation")]
956 #[unsafe(method(particleIntensity))]
957 #[unsafe(method_family = none)]
958 pub unsafe fn particleIntensity(&self) -> CGFloat;
959
960 #[cfg(feature = "objc2-core-foundation")]
961 #[unsafe(method(setParticleIntensity:))]
963 #[unsafe(method_family = none)]
964 pub unsafe fn setParticleIntensity(&self, particle_intensity: CGFloat);
965
966 #[cfg(feature = "objc2-core-foundation")]
967 #[unsafe(method(particleIntensityVariation))]
968 #[unsafe(method_family = none)]
969 pub unsafe fn particleIntensityVariation(&self) -> CGFloat;
970
971 #[cfg(feature = "objc2-core-foundation")]
972 #[unsafe(method(setParticleIntensityVariation:))]
974 #[unsafe(method_family = none)]
975 pub unsafe fn setParticleIntensityVariation(&self, particle_intensity_variation: CGFloat);
976
977 #[unsafe(method(blendMode))]
978 #[unsafe(method_family = none)]
979 pub unsafe fn blendMode(&self) -> SCNParticleBlendMode;
980
981 #[unsafe(method(setBlendMode:))]
983 #[unsafe(method_family = none)]
984 pub unsafe fn setBlendMode(&self, blend_mode: SCNParticleBlendMode);
985
986 #[unsafe(method(isBlackPassEnabled))]
987 #[unsafe(method_family = none)]
988 pub unsafe fn isBlackPassEnabled(&self) -> bool;
989
990 #[unsafe(method(setBlackPassEnabled:))]
992 #[unsafe(method_family = none)]
993 pub unsafe fn setBlackPassEnabled(&self, black_pass_enabled: bool);
994
995 #[unsafe(method(orientationMode))]
996 #[unsafe(method_family = none)]
997 pub unsafe fn orientationMode(&self) -> SCNParticleOrientationMode;
998
999 #[unsafe(method(setOrientationMode:))]
1001 #[unsafe(method_family = none)]
1002 pub unsafe fn setOrientationMode(&self, orientation_mode: SCNParticleOrientationMode);
1003
1004 #[unsafe(method(sortingMode))]
1005 #[unsafe(method_family = none)]
1006 pub unsafe fn sortingMode(&self) -> SCNParticleSortingMode;
1007
1008 #[unsafe(method(setSortingMode:))]
1010 #[unsafe(method_family = none)]
1011 pub unsafe fn setSortingMode(&self, sorting_mode: SCNParticleSortingMode);
1012
1013 #[unsafe(method(isLightingEnabled))]
1014 #[unsafe(method_family = none)]
1015 pub unsafe fn isLightingEnabled(&self) -> bool;
1016
1017 #[unsafe(method(setLightingEnabled:))]
1019 #[unsafe(method_family = none)]
1020 pub unsafe fn setLightingEnabled(&self, lighting_enabled: bool);
1021
1022 #[unsafe(method(affectedByGravity))]
1023 #[unsafe(method_family = none)]
1024 pub unsafe fn affectedByGravity(&self) -> bool;
1025
1026 #[unsafe(method(setAffectedByGravity:))]
1028 #[unsafe(method_family = none)]
1029 pub unsafe fn setAffectedByGravity(&self, affected_by_gravity: bool);
1030
1031 #[unsafe(method(affectedByPhysicsFields))]
1032 #[unsafe(method_family = none)]
1033 pub unsafe fn affectedByPhysicsFields(&self) -> bool;
1034
1035 #[unsafe(method(setAffectedByPhysicsFields:))]
1037 #[unsafe(method_family = none)]
1038 pub unsafe fn setAffectedByPhysicsFields(&self, affected_by_physics_fields: bool);
1039
1040 #[unsafe(method(particleDiesOnCollision))]
1041 #[unsafe(method_family = none)]
1042 pub unsafe fn particleDiesOnCollision(&self) -> bool;
1043
1044 #[unsafe(method(setParticleDiesOnCollision:))]
1046 #[unsafe(method_family = none)]
1047 pub unsafe fn setParticleDiesOnCollision(&self, particle_dies_on_collision: bool);
1048
1049 #[cfg(feature = "SCNNode")]
1050 #[unsafe(method(colliderNodes))]
1051 #[unsafe(method_family = none)]
1052 pub unsafe fn colliderNodes(&self) -> Option<Retained<NSArray<SCNNode>>>;
1053
1054 #[cfg(feature = "SCNNode")]
1055 #[unsafe(method(setColliderNodes:))]
1057 #[unsafe(method_family = none)]
1058 pub unsafe fn setColliderNodes(&self, collider_nodes: Option<&NSArray<SCNNode>>);
1059
1060 #[cfg(feature = "objc2-core-foundation")]
1061 #[unsafe(method(particleMass))]
1062 #[unsafe(method_family = none)]
1063 pub unsafe fn particleMass(&self) -> CGFloat;
1064
1065 #[cfg(feature = "objc2-core-foundation")]
1066 #[unsafe(method(setParticleMass:))]
1068 #[unsafe(method_family = none)]
1069 pub unsafe fn setParticleMass(&self, particle_mass: CGFloat);
1070
1071 #[cfg(feature = "objc2-core-foundation")]
1072 #[unsafe(method(particleMassVariation))]
1073 #[unsafe(method_family = none)]
1074 pub unsafe fn particleMassVariation(&self) -> CGFloat;
1075
1076 #[cfg(feature = "objc2-core-foundation")]
1077 #[unsafe(method(setParticleMassVariation:))]
1079 #[unsafe(method_family = none)]
1080 pub unsafe fn setParticleMassVariation(&self, particle_mass_variation: CGFloat);
1081
1082 #[cfg(feature = "objc2-core-foundation")]
1083 #[unsafe(method(particleBounce))]
1084 #[unsafe(method_family = none)]
1085 pub unsafe fn particleBounce(&self) -> CGFloat;
1086
1087 #[cfg(feature = "objc2-core-foundation")]
1088 #[unsafe(method(setParticleBounce:))]
1090 #[unsafe(method_family = none)]
1091 pub unsafe fn setParticleBounce(&self, particle_bounce: CGFloat);
1092
1093 #[cfg(feature = "objc2-core-foundation")]
1094 #[unsafe(method(particleBounceVariation))]
1095 #[unsafe(method_family = none)]
1096 pub unsafe fn particleBounceVariation(&self) -> CGFloat;
1097
1098 #[cfg(feature = "objc2-core-foundation")]
1099 #[unsafe(method(setParticleBounceVariation:))]
1101 #[unsafe(method_family = none)]
1102 pub unsafe fn setParticleBounceVariation(&self, particle_bounce_variation: CGFloat);
1103
1104 #[cfg(feature = "objc2-core-foundation")]
1105 #[unsafe(method(particleFriction))]
1106 #[unsafe(method_family = none)]
1107 pub unsafe fn particleFriction(&self) -> CGFloat;
1108
1109 #[cfg(feature = "objc2-core-foundation")]
1110 #[unsafe(method(setParticleFriction:))]
1112 #[unsafe(method_family = none)]
1113 pub unsafe fn setParticleFriction(&self, particle_friction: CGFloat);
1114
1115 #[cfg(feature = "objc2-core-foundation")]
1116 #[unsafe(method(particleFrictionVariation))]
1117 #[unsafe(method_family = none)]
1118 pub unsafe fn particleFrictionVariation(&self) -> CGFloat;
1119
1120 #[cfg(feature = "objc2-core-foundation")]
1121 #[unsafe(method(setParticleFrictionVariation:))]
1123 #[unsafe(method_family = none)]
1124 pub unsafe fn setParticleFrictionVariation(&self, particle_friction_variation: CGFloat);
1125
1126 #[cfg(feature = "objc2-core-foundation")]
1127 #[unsafe(method(particleCharge))]
1128 #[unsafe(method_family = none)]
1129 pub unsafe fn particleCharge(&self) -> CGFloat;
1130
1131 #[cfg(feature = "objc2-core-foundation")]
1132 #[unsafe(method(setParticleCharge:))]
1134 #[unsafe(method_family = none)]
1135 pub unsafe fn setParticleCharge(&self, particle_charge: CGFloat);
1136
1137 #[cfg(feature = "objc2-core-foundation")]
1138 #[unsafe(method(particleChargeVariation))]
1139 #[unsafe(method_family = none)]
1140 pub unsafe fn particleChargeVariation(&self) -> CGFloat;
1141
1142 #[cfg(feature = "objc2-core-foundation")]
1143 #[unsafe(method(setParticleChargeVariation:))]
1145 #[unsafe(method_family = none)]
1146 pub unsafe fn setParticleChargeVariation(&self, particle_charge_variation: CGFloat);
1147
1148 #[cfg(feature = "objc2-core-foundation")]
1149 #[unsafe(method(dampingFactor))]
1150 #[unsafe(method_family = none)]
1151 pub unsafe fn dampingFactor(&self) -> CGFloat;
1152
1153 #[cfg(feature = "objc2-core-foundation")]
1154 #[unsafe(method(setDampingFactor:))]
1156 #[unsafe(method_family = none)]
1157 pub unsafe fn setDampingFactor(&self, damping_factor: CGFloat);
1158
1159 #[cfg(feature = "objc2-core-foundation")]
1160 #[unsafe(method(speedFactor))]
1161 #[unsafe(method_family = none)]
1162 pub unsafe fn speedFactor(&self) -> CGFloat;
1163
1164 #[cfg(feature = "objc2-core-foundation")]
1165 #[unsafe(method(setSpeedFactor:))]
1167 #[unsafe(method_family = none)]
1168 pub unsafe fn setSpeedFactor(&self, speed_factor: CGFloat);
1169
1170 #[cfg(feature = "objc2-core-foundation")]
1171 #[unsafe(method(stretchFactor))]
1172 #[unsafe(method_family = none)]
1173 pub unsafe fn stretchFactor(&self) -> CGFloat;
1174
1175 #[cfg(feature = "objc2-core-foundation")]
1176 #[unsafe(method(setStretchFactor:))]
1178 #[unsafe(method_family = none)]
1179 pub unsafe fn setStretchFactor(&self, stretch_factor: CGFloat);
1180
1181 #[cfg(feature = "objc2-core-foundation")]
1182 #[unsafe(method(fresnelExponent))]
1183 #[unsafe(method_family = none)]
1184 pub unsafe fn fresnelExponent(&self) -> CGFloat;
1185
1186 #[cfg(feature = "objc2-core-foundation")]
1187 #[unsafe(method(setFresnelExponent:))]
1189 #[unsafe(method_family = none)]
1190 pub unsafe fn setFresnelExponent(&self, fresnel_exponent: CGFloat);
1191
1192 #[unsafe(method(writesToDepthBuffer))]
1194 #[unsafe(method_family = none)]
1195 pub unsafe fn writesToDepthBuffer(&self) -> bool;
1196
1197 #[unsafe(method(setWritesToDepthBuffer:))]
1199 #[unsafe(method_family = none)]
1200 pub unsafe fn setWritesToDepthBuffer(&self, writes_to_depth_buffer: bool);
1201
1202 #[unsafe(method(propertyControllers))]
1203 #[unsafe(method_family = none)]
1204 pub unsafe fn propertyControllers(
1205 &self,
1206 ) -> Option<Retained<NSDictionary<SCNParticleProperty, SCNParticlePropertyController>>>;
1207
1208 #[unsafe(method(setPropertyControllers:))]
1210 #[unsafe(method_family = none)]
1211 pub unsafe fn setPropertyControllers(
1212 &self,
1213 property_controllers: Option<
1214 &NSDictionary<SCNParticleProperty, SCNParticlePropertyController>,
1215 >,
1216 );
1217
1218 #[unsafe(method(reset))]
1219 #[unsafe(method_family = none)]
1220 pub unsafe fn reset(&self);
1221
1222 #[cfg(feature = "block2")]
1223 #[unsafe(method(handleEvent:forProperties:withBlock:))]
1224 #[unsafe(method_family = none)]
1225 pub unsafe fn handleEvent_forProperties_withBlock(
1226 &self,
1227 event: SCNParticleEvent,
1228 properties: &NSArray<SCNParticleProperty>,
1229 block: SCNParticleEventBlock,
1230 );
1231
1232 #[cfg(feature = "block2")]
1233 #[unsafe(method(addModifierForProperties:atStage:withBlock:))]
1234 #[unsafe(method_family = none)]
1235 pub unsafe fn addModifierForProperties_atStage_withBlock(
1236 &self,
1237 properties: &NSArray<SCNParticleProperty>,
1238 stage: SCNParticleModifierStage,
1239 block: SCNParticleModifierBlock,
1240 );
1241
1242 #[unsafe(method(removeModifiersOfStage:))]
1243 #[unsafe(method_family = none)]
1244 pub unsafe fn removeModifiersOfStage(&self, stage: SCNParticleModifierStage);
1245
1246 #[unsafe(method(removeAllModifiers))]
1247 #[unsafe(method_family = none)]
1248 pub unsafe fn removeAllModifiers(&self);
1249 );
1250}
1251
1252impl SCNParticleSystem {
1254 extern_methods!(
1255 #[unsafe(method(init))]
1256 #[unsafe(method_family = init)]
1257 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1258
1259 #[unsafe(method(new))]
1260 #[unsafe(method_family = new)]
1261 pub unsafe fn new() -> Retained<Self>;
1262 );
1263}
1264
1265#[cfg(feature = "SCNNode")]
1267impl SCNNode {
1268 extern_methods!(
1269 #[unsafe(method(addParticleSystem:))]
1270 #[unsafe(method_family = none)]
1271 pub unsafe fn addParticleSystem(&self, system: &SCNParticleSystem);
1272
1273 #[unsafe(method(removeAllParticleSystems))]
1274 #[unsafe(method_family = none)]
1275 pub unsafe fn removeAllParticleSystems(&self);
1276
1277 #[unsafe(method(removeParticleSystem:))]
1278 #[unsafe(method_family = none)]
1279 pub unsafe fn removeParticleSystem(&self, system: &SCNParticleSystem);
1280
1281 #[unsafe(method(particleSystems))]
1282 #[unsafe(method_family = none)]
1283 pub unsafe fn particleSystems(&self) -> Option<Retained<NSArray<SCNParticleSystem>>>;
1284 );
1285}
1286
1287#[cfg(feature = "SCNScene")]
1289impl SCNScene {
1290 extern_methods!(
1291 #[cfg(all(feature = "SceneKitTypes", feature = "objc2-quartz-core"))]
1292 #[cfg(not(target_os = "watchos"))]
1293 #[unsafe(method(addParticleSystem:withTransform:))]
1294 #[unsafe(method_family = none)]
1295 pub unsafe fn addParticleSystem_withTransform(
1296 &self,
1297 system: &SCNParticleSystem,
1298 transform: SCNMatrix4,
1299 );
1300
1301 #[unsafe(method(removeAllParticleSystems))]
1302 #[unsafe(method_family = none)]
1303 pub unsafe fn removeAllParticleSystems(&self);
1304
1305 #[unsafe(method(removeParticleSystem:))]
1306 #[unsafe(method_family = none)]
1307 pub unsafe fn removeParticleSystem(&self, system: &SCNParticleSystem);
1308
1309 #[unsafe(method(particleSystems))]
1310 #[unsafe(method_family = none)]
1311 pub unsafe fn particleSystems(&self) -> Option<Retained<NSArray<SCNParticleSystem>>>;
1312 );
1313}