use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
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 NSSplitViewItemAccessoryViewController;
);
#[cfg(all(
feature = "NSAnimation",
feature = "NSResponder",
feature = "NSViewController"
))]
extern_conformance!(
unsafe impl NSAnimatablePropertyContainer for NSSplitViewItemAccessoryViewController {}
);
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
extern_conformance!(
unsafe impl NSCoding for NSSplitViewItemAccessoryViewController {}
);
#[cfg(all(
feature = "NSKeyValueBinding",
feature = "NSResponder",
feature = "NSViewController"
))]
extern_conformance!(
unsafe impl NSEditor for NSSplitViewItemAccessoryViewController {}
);
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
extern_conformance!(
unsafe impl NSObjectProtocol for NSSplitViewItemAccessoryViewController {}
);
#[cfg(all(
feature = "NSResponder",
feature = "NSStoryboardSegue",
feature = "NSViewController"
))]
extern_conformance!(
unsafe impl NSSeguePerforming for NSSplitViewItemAccessoryViewController {}
);
#[cfg(all(
feature = "NSResponder",
feature = "NSUserInterfaceItemIdentification",
feature = "NSViewController"
))]
extern_conformance!(
unsafe impl NSUserInterfaceItemIdentification for NSSplitViewItemAccessoryViewController {}
);
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
impl NSSplitViewItemAccessoryViewController {
extern_methods!(
#[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(automaticallyAppliesContentInsets))]
#[unsafe(method_family = none)]
pub fn automaticallyAppliesContentInsets(&self) -> bool;
#[unsafe(method(setAutomaticallyAppliesContentInsets:))]
#[unsafe(method_family = none)]
pub fn setAutomaticallyAppliesContentInsets(
&self,
automatically_applies_content_insets: 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(viewWillDisappear))]
#[unsafe(method_family = none)]
pub fn viewWillDisappear(&self);
#[unsafe(method(viewDidDisappear))]
#[unsafe(method_family = none)]
pub fn viewDidDisappear(&self);
);
}
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
impl NSSplitViewItemAccessoryViewController {
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 NSSplitViewItemAccessoryViewController {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
impl NSSplitViewItemAccessoryViewController {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}