objc2_extension_kit/generated/
EXAppExtensionBrowserViewController.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::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13    /// A view controller that allows users to enable and disable extensions.
14    ///
15    /// See also [Apple's documentation](https://developer.apple.com/documentation/extensionkit/exappextensionbrowserviewcontroller?language=objc)
16    #[unsafe(super(NSViewController, NSResponder, NSObject))]
17    #[derive(Debug, PartialEq, Eq, Hash)]
18    #[cfg(feature = "objc2-app-kit")]
19    #[cfg(target_os = "macos")]
20    pub struct EXAppExtensionBrowserViewController;
21);
22
23#[cfg(feature = "objc2-app-kit")]
24#[cfg(target_os = "macos")]
25extern_conformance!(
26    unsafe impl NSCoding for EXAppExtensionBrowserViewController {}
27);
28
29#[cfg(feature = "objc2-app-kit")]
30#[cfg(target_os = "macos")]
31extern_conformance!(
32    unsafe impl NSEditor for EXAppExtensionBrowserViewController {}
33);
34
35#[cfg(feature = "objc2-app-kit")]
36#[cfg(target_os = "macos")]
37extern_conformance!(
38    unsafe impl NSObjectProtocol for EXAppExtensionBrowserViewController {}
39);
40
41#[cfg(feature = "objc2-app-kit")]
42#[cfg(target_os = "macos")]
43extern_conformance!(
44    unsafe impl NSSeguePerforming for EXAppExtensionBrowserViewController {}
45);
46
47#[cfg(feature = "objc2-app-kit")]
48#[cfg(target_os = "macos")]
49extern_conformance!(
50    unsafe impl NSUserInterfaceItemIdentification for EXAppExtensionBrowserViewController {}
51);
52
53#[cfg(feature = "objc2-app-kit")]
54#[cfg(target_os = "macos")]
55impl EXAppExtensionBrowserViewController {
56    extern_methods!();
57}
58
59/// Methods declared on superclass `NSViewController`.
60#[cfg(feature = "objc2-app-kit")]
61#[cfg(target_os = "macos")]
62impl EXAppExtensionBrowserViewController {
63    extern_methods!(
64        #[unsafe(method(initWithNibName:bundle:))]
65        #[unsafe(method_family = init)]
66        pub unsafe fn initWithNibName_bundle(
67            this: Allocated<Self>,
68            nib_name_or_nil: Option<&NSNibName>,
69            nib_bundle_or_nil: Option<&NSBundle>,
70        ) -> Retained<Self>;
71
72        #[unsafe(method(initWithCoder:))]
73        #[unsafe(method_family = init)]
74        pub unsafe fn initWithCoder(
75            this: Allocated<Self>,
76            coder: &NSCoder,
77        ) -> Option<Retained<Self>>;
78    );
79}
80
81/// Methods declared on superclass `NSResponder`.
82#[cfg(feature = "objc2-app-kit")]
83#[cfg(target_os = "macos")]
84impl EXAppExtensionBrowserViewController {
85    extern_methods!(
86        #[unsafe(method(init))]
87        #[unsafe(method_family = init)]
88        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
89    );
90}
91
92/// Methods declared on superclass `NSObject`.
93#[cfg(feature = "objc2-app-kit")]
94#[cfg(target_os = "macos")]
95impl EXAppExtensionBrowserViewController {
96    extern_methods!(
97        #[unsafe(method(new))]
98        #[unsafe(method_family = new)]
99        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
100    );
101}