objc2_core_audio_kit/generated/
AUGenericViewController.rs1use 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-audio-toolbox")]
10use objc2_audio_toolbox::*;
11use objc2_foundation::*;
12
13use crate::*;
14
15#[cfg(feature = "objc2-app-kit")]
17#[cfg(target_os = "macos")]
18pub type AUViewColor = NSColor;
19
20#[cfg(feature = "objc2-app-kit")]
21#[cfg(target_os = "macos")]
22extern_conformance!(
23 unsafe impl NSCoding for AUGenericViewController {}
24);
25
26#[cfg(feature = "objc2-app-kit")]
27#[cfg(target_os = "macos")]
28extern_conformance!(
29 unsafe impl NSEditor for AUGenericViewController {}
30);
31
32#[cfg(feature = "objc2-app-kit")]
33#[cfg(target_os = "macos")]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for AUGenericViewController {}
36);
37
38#[cfg(feature = "objc2-app-kit")]
39#[cfg(target_os = "macos")]
40extern_conformance!(
41 unsafe impl NSSeguePerforming for AUGenericViewController {}
42);
43
44#[cfg(feature = "objc2-app-kit")]
45#[cfg(target_os = "macos")]
46extern_conformance!(
47 unsafe impl NSUserInterfaceItemIdentification for AUGenericViewController {}
48);
49
50#[cfg(feature = "objc2-app-kit")]
51#[cfg(target_os = "macos")]
52impl AUGenericViewController {
53 extern_methods!(
54 #[cfg(feature = "objc2-audio-toolbox")]
55 #[unsafe(method(auAudioUnit))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn auAudioUnit(&self) -> Option<Retained<AUAudioUnit>>;
58
59 #[cfg(feature = "objc2-audio-toolbox")]
60 #[unsafe(method(setAuAudioUnit:))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn setAuAudioUnit(&self, au_audio_unit: Option<&AUAudioUnit>);
64 );
65}
66
67#[cfg(feature = "objc2-app-kit")]
69#[cfg(target_os = "macos")]
70impl AUGenericViewController {
71 extern_methods!(
72 #[unsafe(method(initWithNibName:bundle:))]
73 #[unsafe(method_family = init)]
74 pub unsafe fn initWithNibName_bundle(
75 this: Allocated<Self>,
76 nib_name_or_nil: Option<&NSNibName>,
77 nib_bundle_or_nil: Option<&NSBundle>,
78 ) -> Retained<Self>;
79
80 #[unsafe(method(initWithCoder:))]
84 #[unsafe(method_family = init)]
85 pub unsafe fn initWithCoder(
86 this: Allocated<Self>,
87 coder: &NSCoder,
88 ) -> Option<Retained<Self>>;
89 );
90}
91
92#[cfg(feature = "objc2-app-kit")]
94#[cfg(target_os = "macos")]
95impl AUGenericViewController {
96 extern_methods!(
97 #[unsafe(method(init))]
98 #[unsafe(method_family = init)]
99 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
100 );
101}
102
103#[cfg(feature = "objc2-app-kit")]
105#[cfg(target_os = "macos")]
106impl AUGenericViewController {
107 extern_methods!(
108 #[unsafe(method(new))]
109 #[unsafe(method_family = new)]
110 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
111 );
112}