objc2_phase/generated/
PHASESource.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(PHASEObject, NSObject))]
23 #[derive(Debug, PartialEq, Eq, Hash)]
24 #[cfg(feature = "PHASEObject")]
25 pub struct PHASESource;
26);
27
28#[cfg(feature = "PHASEObject")]
29extern_conformance!(
30 unsafe impl NSCopying for PHASESource {}
31);
32
33#[cfg(feature = "PHASEObject")]
34unsafe impl CopyingHelper for PHASESource {
35 type Result = Self;
36}
37
38#[cfg(feature = "PHASEObject")]
39extern_conformance!(
40 unsafe impl NSObjectProtocol for PHASESource {}
41);
42
43#[cfg(feature = "PHASEObject")]
44impl PHASESource {
45 extern_methods!(
46 #[unsafe(method(init))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
49
50 #[unsafe(method(new))]
51 #[unsafe(method_family = new)]
52 pub unsafe fn new() -> Retained<Self>;
53
54 #[cfg(feature = "PHASEEngine")]
55 #[unsafe(method(initWithEngine:))]
57 #[unsafe(method_family = init)]
58 pub unsafe fn initWithEngine(this: Allocated<Self>, engine: &PHASEEngine)
59 -> Retained<Self>;
60
61 #[cfg(all(feature = "PHASEEngine", feature = "PHASEShape"))]
62 #[unsafe(method(initWithEngine:shapes:))]
71 #[unsafe(method_family = init)]
72 pub unsafe fn initWithEngine_shapes(
73 this: Allocated<Self>,
74 engine: &PHASEEngine,
75 shapes: &NSArray<PHASEShape>,
76 ) -> Retained<Self>;
77
78 #[unsafe(method(gain))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn gain(&self) -> c_double;
84
85 #[unsafe(method(setGain:))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn setGain(&self, gain: c_double);
89
90 #[cfg(feature = "PHASEShape")]
91 #[unsafe(method(shapes))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn shapes(&self) -> Retained<NSArray<PHASEShape>>;
95 );
96}