use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UIContentUnavailableButtonProperties;
);
extern_conformance!(
unsafe impl NSCoding for UIContentUnavailableButtonProperties {}
);
extern_conformance!(
unsafe impl NSCopying for UIContentUnavailableButtonProperties {}
);
unsafe impl CopyingHelper for UIContentUnavailableButtonProperties {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for UIContentUnavailableButtonProperties {}
);
extern_conformance!(
unsafe impl NSSecureCoding for UIContentUnavailableButtonProperties {}
);
impl UIContentUnavailableButtonProperties {
extern_methods!(
#[cfg(all(feature = "UIAction", feature = "UIMenuElement"))]
#[unsafe(method(primaryAction))]
#[unsafe(method_family = none)]
pub fn primaryAction(&self) -> Option<Retained<UIAction>>;
#[cfg(all(feature = "UIAction", feature = "UIMenuElement"))]
#[unsafe(method(setPrimaryAction:))]
#[unsafe(method_family = none)]
pub fn setPrimaryAction(&self, primary_action: Option<&UIAction>);
#[cfg(all(feature = "UIMenu", feature = "UIMenuElement"))]
#[unsafe(method(menu))]
#[unsafe(method_family = none)]
pub fn menu(&self) -> Option<Retained<UIMenu>>;
#[cfg(all(feature = "UIMenu", feature = "UIMenuElement"))]
#[unsafe(method(setMenu:))]
#[unsafe(method_family = none)]
pub fn setMenu(&self, menu: Option<&UIMenu>);
#[unsafe(method(isEnabled))]
#[unsafe(method_family = none)]
pub fn isEnabled(&self) -> bool;
#[unsafe(method(setEnabled:))]
#[unsafe(method_family = none)]
pub fn setEnabled(&self, enabled: bool);
#[cfg(feature = "UIButton")]
#[unsafe(method(role))]
#[unsafe(method_family = none)]
pub fn role(&self) -> UIButtonRole;
#[cfg(feature = "UIButton")]
#[unsafe(method(setRole:))]
#[unsafe(method_family = none)]
pub fn setRole(&self, role: UIButtonRole);
);
}
impl UIContentUnavailableButtonProperties {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}