objc2_core_audio_kit/generated/
AUPannerView.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-app-kit")]
6#[cfg(target_os = "macos")]
7use objc2_app_kit::*;
8#[cfg(feature = "objc2-audio-toolbox")]
9use objc2_audio_toolbox::*;
10use objc2_foundation::*;
11
12use crate::*;
13
14extern_class!(
15 #[unsafe(super(NSView, NSResponder, NSObject))]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 #[cfg(feature = "objc2-app-kit")]
21 #[cfg(target_os = "macos")]
22 pub struct AUPannerView;
23);
24
25#[cfg(feature = "objc2-app-kit")]
26#[cfg(target_os = "macos")]
27extern_conformance!(
28 unsafe impl NSAccessibility for AUPannerView {}
29);
30
31#[cfg(feature = "objc2-app-kit")]
32#[cfg(target_os = "macos")]
33extern_conformance!(
34 unsafe impl NSAccessibilityElementProtocol for AUPannerView {}
35);
36
37#[cfg(feature = "objc2-app-kit")]
38#[cfg(target_os = "macos")]
39extern_conformance!(
40 unsafe impl NSAnimatablePropertyContainer for AUPannerView {}
41);
42
43#[cfg(feature = "objc2-app-kit")]
44#[cfg(target_os = "macos")]
45extern_conformance!(
46 unsafe impl NSAppearanceCustomization for AUPannerView {}
47);
48
49#[cfg(feature = "objc2-app-kit")]
50#[cfg(target_os = "macos")]
51extern_conformance!(
52 unsafe impl NSCoding for AUPannerView {}
53);
54
55#[cfg(feature = "objc2-app-kit")]
56#[cfg(target_os = "macos")]
57extern_conformance!(
58 unsafe impl NSDraggingDestination for AUPannerView {}
59);
60
61#[cfg(feature = "objc2-app-kit")]
62#[cfg(target_os = "macos")]
63extern_conformance!(
64 unsafe impl NSObjectProtocol for AUPannerView {}
65);
66
67#[cfg(feature = "objc2-app-kit")]
68#[cfg(target_os = "macos")]
69extern_conformance!(
70 unsafe impl NSUserInterfaceItemIdentification for AUPannerView {}
71);
72
73#[cfg(feature = "objc2-app-kit")]
74#[cfg(target_os = "macos")]
75impl AUPannerView {
76 extern_methods!(
77 #[cfg(feature = "objc2-audio-toolbox")]
78 #[unsafe(method(audioUnit))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn audioUnit(&self) -> AudioUnit;
84
85 #[cfg(feature = "objc2-audio-toolbox")]
86 #[unsafe(method(AUPannerViewWithAudioUnit:))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn AUPannerViewWithAudioUnit(
98 au: AudioUnit,
99 mtm: MainThreadMarker,
100 ) -> Retained<AUPannerView>;
101 );
102}
103
104#[cfg(feature = "objc2-app-kit")]
106#[cfg(target_os = "macos")]
107impl AUPannerView {
108 extern_methods!(
109 #[unsafe(method(initWithFrame:))]
110 #[unsafe(method_family = init)]
111 pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
112
113 #[unsafe(method(initWithCoder:))]
117 #[unsafe(method_family = init)]
118 pub unsafe fn initWithCoder(
119 this: Allocated<Self>,
120 coder: &NSCoder,
121 ) -> Option<Retained<Self>>;
122 );
123}
124
125#[cfg(feature = "objc2-app-kit")]
127#[cfg(target_os = "macos")]
128impl AUPannerView {
129 extern_methods!(
130 #[unsafe(method(init))]
131 #[unsafe(method_family = init)]
132 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
133 );
134}
135
136#[cfg(feature = "objc2-app-kit")]
138#[cfg(target_os = "macos")]
139impl AUPannerView {
140 extern_methods!(
141 #[unsafe(method(new))]
142 #[unsafe(method_family = new)]
143 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
144 );
145}