use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSViewController, NSResponder, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
pub struct NSTitlebarAccessoryViewController;
);
#[cfg(all(
feature = "NSAnimation",
feature = "NSResponder",
feature = "NSViewController"
))]
extern_conformance!(
unsafe impl NSAnimatablePropertyContainer for NSTitlebarAccessoryViewController {}
);
#[cfg(all(
feature = "NSAnimation",
feature = "NSResponder",
feature = "NSViewController"
))]
extern_conformance!(
unsafe impl NSAnimationDelegate for NSTitlebarAccessoryViewController {}
);
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
extern_conformance!(
unsafe impl NSCoding for NSTitlebarAccessoryViewController {}
);
#[cfg(all(
feature = "NSKeyValueBinding",
feature = "NSResponder",
feature = "NSViewController"
))]
extern_conformance!(
unsafe impl NSEditor for NSTitlebarAccessoryViewController {}
);
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
extern_conformance!(
unsafe impl NSObjectProtocol for NSTitlebarAccessoryViewController {}
);
#[cfg(all(
feature = "NSResponder",
feature = "NSStoryboardSegue",
feature = "NSViewController"
))]
extern_conformance!(
unsafe impl NSSeguePerforming for NSTitlebarAccessoryViewController {}
);
#[cfg(all(
feature = "NSResponder",
feature = "NSUserInterfaceItemIdentification",
feature = "NSViewController"
))]
extern_conformance!(
unsafe impl NSUserInterfaceItemIdentification for NSTitlebarAccessoryViewController {}
);
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
impl NSTitlebarAccessoryViewController {
extern_methods!(
#[cfg(feature = "NSLayoutConstraint")]
#[unsafe(method(layoutAttribute))]
#[unsafe(method_family = none)]
pub fn layoutAttribute(&self) -> NSLayoutAttribute;
#[cfg(feature = "NSLayoutConstraint")]
#[unsafe(method(setLayoutAttribute:))]
#[unsafe(method_family = none)]
pub fn setLayoutAttribute(&self, layout_attribute: NSLayoutAttribute);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(fullScreenMinHeight))]
#[unsafe(method_family = none)]
pub fn fullScreenMinHeight(&self) -> CGFloat;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(setFullScreenMinHeight:))]
#[unsafe(method_family = none)]
pub fn setFullScreenMinHeight(&self, full_screen_min_height: CGFloat);
#[unsafe(method(isHidden))]
#[unsafe(method_family = none)]
pub fn isHidden(&self) -> bool;
#[unsafe(method(setHidden:))]
#[unsafe(method_family = none)]
pub fn setHidden(&self, hidden: bool);
#[unsafe(method(automaticallyAdjustsSize))]
#[unsafe(method_family = none)]
pub fn automaticallyAdjustsSize(&self) -> bool;
#[unsafe(method(setAutomaticallyAdjustsSize:))]
#[unsafe(method_family = none)]
pub fn setAutomaticallyAdjustsSize(&self, automatically_adjusts_size: bool);
#[unsafe(method(viewWillAppear))]
#[unsafe(method_family = none)]
pub fn viewWillAppear(&self);
#[unsafe(method(viewDidAppear))]
#[unsafe(method_family = none)]
pub fn viewDidAppear(&self);
#[unsafe(method(viewDidDisappear))]
#[unsafe(method_family = none)]
pub fn viewDidDisappear(&self);
);
}
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
impl NSTitlebarAccessoryViewController {
extern_methods!(
#[cfg(feature = "NSNib")]
#[unsafe(method(initWithNibName:bundle:))]
#[unsafe(method_family = init)]
pub fn initWithNibName_bundle(
this: Allocated<Self>,
nib_name_or_nil: Option<&NSNibName>,
nib_bundle_or_nil: Option<&NSBundle>,
) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
coder: &NSCoder,
) -> Option<Retained<Self>>;
);
}
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
impl NSTitlebarAccessoryViewController {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
impl NSTitlebarAccessoryViewController {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}