objc2_app_kit/generated/
NSTitlebarAccessoryViewController.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstitlebaraccessoryviewcontroller?language=objc)
14    #[unsafe(super(NSViewController, NSResponder, NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    #[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
17    pub struct NSTitlebarAccessoryViewController;
18);
19
20#[cfg(all(
21    feature = "NSAnimation",
22    feature = "NSResponder",
23    feature = "NSViewController"
24))]
25unsafe impl NSAnimatablePropertyContainer for NSTitlebarAccessoryViewController {}
26
27#[cfg(all(
28    feature = "NSAnimation",
29    feature = "NSResponder",
30    feature = "NSViewController"
31))]
32unsafe impl NSAnimationDelegate for NSTitlebarAccessoryViewController {}
33
34#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
35unsafe impl NSCoding for NSTitlebarAccessoryViewController {}
36
37#[cfg(all(
38    feature = "NSKeyValueBinding",
39    feature = "NSResponder",
40    feature = "NSViewController"
41))]
42unsafe impl NSEditor for NSTitlebarAccessoryViewController {}
43
44#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
45unsafe impl NSObjectProtocol for NSTitlebarAccessoryViewController {}
46
47#[cfg(all(
48    feature = "NSResponder",
49    feature = "NSStoryboardSegue",
50    feature = "NSViewController"
51))]
52unsafe impl NSSeguePerforming for NSTitlebarAccessoryViewController {}
53
54#[cfg(all(
55    feature = "NSResponder",
56    feature = "NSUserInterfaceItemIdentification",
57    feature = "NSViewController"
58))]
59unsafe impl NSUserInterfaceItemIdentification for NSTitlebarAccessoryViewController {}
60
61#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
62impl NSTitlebarAccessoryViewController {
63    extern_methods!(
64        #[cfg(feature = "NSLayoutConstraint")]
65        #[unsafe(method(layoutAttribute))]
66        #[unsafe(method_family = none)]
67        pub unsafe fn layoutAttribute(&self) -> NSLayoutAttribute;
68
69        #[cfg(feature = "NSLayoutConstraint")]
70        /// Setter for [`layoutAttribute`][Self::layoutAttribute].
71        #[unsafe(method(setLayoutAttribute:))]
72        #[unsafe(method_family = none)]
73        pub unsafe fn setLayoutAttribute(&self, layout_attribute: NSLayoutAttribute);
74
75        #[cfg(feature = "objc2-core-foundation")]
76        #[unsafe(method(fullScreenMinHeight))]
77        #[unsafe(method_family = none)]
78        pub unsafe fn fullScreenMinHeight(&self) -> CGFloat;
79
80        #[cfg(feature = "objc2-core-foundation")]
81        /// Setter for [`fullScreenMinHeight`][Self::fullScreenMinHeight].
82        #[unsafe(method(setFullScreenMinHeight:))]
83        #[unsafe(method_family = none)]
84        pub unsafe fn setFullScreenMinHeight(&self, full_screen_min_height: CGFloat);
85
86        #[unsafe(method(isHidden))]
87        #[unsafe(method_family = none)]
88        pub unsafe fn isHidden(&self) -> bool;
89
90        /// Setter for [`isHidden`][Self::isHidden].
91        #[unsafe(method(setHidden:))]
92        #[unsafe(method_family = none)]
93        pub unsafe fn setHidden(&self, hidden: bool);
94
95        #[unsafe(method(automaticallyAdjustsSize))]
96        #[unsafe(method_family = none)]
97        pub unsafe fn automaticallyAdjustsSize(&self) -> bool;
98
99        /// Setter for [`automaticallyAdjustsSize`][Self::automaticallyAdjustsSize].
100        #[unsafe(method(setAutomaticallyAdjustsSize:))]
101        #[unsafe(method_family = none)]
102        pub unsafe fn setAutomaticallyAdjustsSize(&self, automatically_adjusts_size: bool);
103
104        #[unsafe(method(viewWillAppear))]
105        #[unsafe(method_family = none)]
106        pub unsafe fn viewWillAppear(&self);
107
108        #[unsafe(method(viewDidAppear))]
109        #[unsafe(method_family = none)]
110        pub unsafe fn viewDidAppear(&self);
111
112        #[unsafe(method(viewDidDisappear))]
113        #[unsafe(method_family = none)]
114        pub unsafe fn viewDidDisappear(&self);
115    );
116}
117
118/// Methods declared on superclass `NSViewController`.
119#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
120impl NSTitlebarAccessoryViewController {
121    extern_methods!(
122        #[cfg(feature = "NSNib")]
123        #[unsafe(method(initWithNibName:bundle:))]
124        #[unsafe(method_family = init)]
125        pub unsafe fn initWithNibName_bundle(
126            this: Allocated<Self>,
127            nib_name_or_nil: Option<&NSNibName>,
128            nib_bundle_or_nil: Option<&NSBundle>,
129        ) -> Retained<Self>;
130
131        #[unsafe(method(initWithCoder:))]
132        #[unsafe(method_family = init)]
133        pub unsafe fn initWithCoder(
134            this: Allocated<Self>,
135            coder: &NSCoder,
136        ) -> Option<Retained<Self>>;
137    );
138}
139
140/// Methods declared on superclass `NSResponder`.
141#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
142impl NSTitlebarAccessoryViewController {
143    extern_methods!(
144        #[unsafe(method(init))]
145        #[unsafe(method_family = init)]
146        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
147    );
148}
149
150/// Methods declared on superclass `NSObject`.
151#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
152impl NSTitlebarAccessoryViewController {
153    extern_methods!(
154        #[unsafe(method(new))]
155        #[unsafe(method_family = new)]
156        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
157    );
158}