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