objc2_core_audio_kit/generated/
CANetworkBrowserWindowController.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-app-kit")]
6#[cfg(target_os = "macos")]
7use objc2_app_kit::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(NSWindowController, NSResponder, NSObject))]
20 #[derive(Debug, PartialEq, Eq, Hash)]
21 #[cfg(feature = "objc2-app-kit")]
22 #[cfg(target_os = "macos")]
23 pub struct CANetworkBrowserWindowController;
24);
25
26#[cfg(feature = "objc2-app-kit")]
27#[cfg(target_os = "macos")]
28extern_conformance!(
29 unsafe impl NSCoding for CANetworkBrowserWindowController {}
30);
31
32#[cfg(feature = "objc2-app-kit")]
33#[cfg(target_os = "macos")]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for CANetworkBrowserWindowController {}
36);
37
38#[cfg(feature = "objc2-app-kit")]
39#[cfg(target_os = "macos")]
40extern_conformance!(
41 unsafe impl NSSeguePerforming for CANetworkBrowserWindowController {}
42);
43
44#[cfg(feature = "objc2-app-kit")]
45#[cfg(target_os = "macos")]
46impl CANetworkBrowserWindowController {
47 extern_methods!(
48 #[unsafe(method(isAVBSupported))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn isAVBSupported(mtm: MainThreadMarker) -> bool;
54
55 #[unsafe(method(init))]
59 #[unsafe(method_family = init)]
60 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
61 );
62}
63
64#[cfg(feature = "objc2-app-kit")]
66#[cfg(target_os = "macos")]
67impl CANetworkBrowserWindowController {
68 extern_methods!(
69 #[unsafe(method(initWithWindow:))]
70 #[unsafe(method_family = init)]
71 pub unsafe fn initWithWindow(
72 this: Allocated<Self>,
73 window: Option<&NSWindow>,
74 ) -> Retained<Self>;
75
76 #[unsafe(method(initWithCoder:))]
80 #[unsafe(method_family = init)]
81 pub unsafe fn initWithCoder(
82 this: Allocated<Self>,
83 coder: &NSCoder,
84 ) -> Option<Retained<Self>>;
85
86 #[unsafe(method(initWithWindowNibName:))]
87 #[unsafe(method_family = init)]
88 pub unsafe fn initWithWindowNibName(
89 this: Allocated<Self>,
90 window_nib_name: &NSNibName,
91 ) -> Retained<Self>;
92
93 #[unsafe(method(initWithWindowNibName:owner:))]
97 #[unsafe(method_family = init)]
98 pub unsafe fn initWithWindowNibName_owner(
99 this: Allocated<Self>,
100 window_nib_name: &NSNibName,
101 owner: &AnyObject,
102 ) -> Retained<Self>;
103
104 #[unsafe(method(initWithWindowNibPath:owner:))]
108 #[unsafe(method_family = init)]
109 pub unsafe fn initWithWindowNibPath_owner(
110 this: Allocated<Self>,
111 window_nib_path: &NSString,
112 owner: &AnyObject,
113 ) -> Retained<Self>;
114 );
115}
116
117#[cfg(feature = "objc2-app-kit")]
119#[cfg(target_os = "macos")]
120impl CANetworkBrowserWindowController {
121 extern_methods!(
122 #[unsafe(method(new))]
123 #[unsafe(method_family = new)]
124 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
125 );
126}