objc2_core_audio_kit/generated/
AUPannerView.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use 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    /// An AUPannerView object retrieves and instantiates a generic panner view for the given panner unit
16    ///
17    /// See also [Apple's documentation](https://developer.apple.com/documentation/coreaudiokit/aupannerview?language=objc)
18    #[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        /// Read-only property for the audio unit associated with the view
79        ///
80        /// Returns: The audio unit associated with the generic panner view
81        #[unsafe(method(audioUnit))]
82        #[unsafe(method_family = none)]
83        pub unsafe fn audioUnit(&self) -> AudioUnit;
84
85        #[cfg(feature = "objc2-audio-toolbox")]
86        /// Static constructor used to create the view
87        ///
88        /// Parameter `au`: The Panner Audio Unit associated with the view
89        ///
90        /// Returns: Returns the newly created view object autoreleased or nil on error
91        ///
92        /// # Safety
93        ///
94        /// `au` must be a valid pointer.
95        #[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/// Methods declared on superclass `NSView`.
105#[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        /// # Safety
114        ///
115        /// `coder` possibly has further requirements.
116        #[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/// Methods declared on superclass `NSResponder`.
126#[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/// Methods declared on superclass `NSObject`.
137#[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}