use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_app_kit::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-io-bluetooth")]
use objc2_io_bluetooth::*;
use crate::*;
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct BluetoothKeyboardReturnType(pub c_uint);
impl BluetoothKeyboardReturnType {
#[doc(alias = "kBluetoothKeyboardANSIReturn")]
pub const ANSIReturn: Self = Self(0);
#[doc(alias = "kBluetoothKeyboardISOReturn")]
pub const ISOReturn: Self = Self(1);
#[doc(alias = "kBluetoothKeyboardJISReturn")]
pub const JISReturn: Self = Self(2);
#[doc(alias = "kBluetoothKeyboardNoReturn")]
pub const NoReturn: Self = Self(3);
}
unsafe impl Encode for BluetoothKeyboardReturnType {
const ENCODING: Encoding = c_uint::ENCODING;
}
unsafe impl RefEncode for BluetoothKeyboardReturnType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[unsafe(super(NSView, NSResponder, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct IOBluetoothPasskeyDisplay;
);
extern_conformance!(
unsafe impl NSAccessibility for IOBluetoothPasskeyDisplay {}
);
extern_conformance!(
unsafe impl NSAccessibilityElementProtocol for IOBluetoothPasskeyDisplay {}
);
extern_conformance!(
unsafe impl NSAnimatablePropertyContainer for IOBluetoothPasskeyDisplay {}
);
extern_conformance!(
unsafe impl NSAppearanceCustomization for IOBluetoothPasskeyDisplay {}
);
extern_conformance!(
unsafe impl NSCoding for IOBluetoothPasskeyDisplay {}
);
extern_conformance!(
unsafe impl NSDraggingDestination for IOBluetoothPasskeyDisplay {}
);
extern_conformance!(
unsafe impl NSObjectProtocol for IOBluetoothPasskeyDisplay {}
);
extern_conformance!(
unsafe impl NSUserInterfaceItemIdentification for IOBluetoothPasskeyDisplay {}
);
impl IOBluetoothPasskeyDisplay {
extern_methods!(
#[unsafe(method(usePasskeyNotificaitons))]
#[unsafe(method_family = none)]
pub unsafe fn usePasskeyNotificaitons(&self) -> bool;
#[unsafe(method(setUsePasskeyNotificaitons:))]
#[unsafe(method_family = none)]
pub unsafe fn setUsePasskeyNotificaitons(&self, use_passkey_notificaitons: bool);
#[unsafe(method(isIncomingRequest))]
#[unsafe(method_family = none)]
pub unsafe fn isIncomingRequest(&self) -> bool;
#[unsafe(method(setIsIncomingRequest:))]
#[unsafe(method_family = none)]
pub unsafe fn setIsIncomingRequest(&self, is_incoming_request: bool);
#[unsafe(method(passkey))]
#[unsafe(method_family = none)]
pub unsafe fn passkey(&self) -> Retained<NSString>;
#[unsafe(method(setPasskey:))]
#[unsafe(method_family = none)]
pub unsafe fn setPasskey(&self, passkey: Option<&NSString>);
#[unsafe(method(returnImage))]
#[unsafe(method_family = none)]
pub unsafe fn returnImage(&self) -> Option<Retained<NSImage>>;
#[unsafe(method(setReturnImage:))]
#[unsafe(method_family = none)]
pub unsafe fn setReturnImage(&self, return_image: Option<&NSImage>);
#[unsafe(method(returnHighlightImage))]
#[unsafe(method_family = none)]
pub unsafe fn returnHighlightImage(&self) -> Option<Retained<NSImage>>;
#[unsafe(method(setReturnHighlightImage:))]
#[unsafe(method_family = none)]
pub unsafe fn setReturnHighlightImage(&self, return_highlight_image: Option<&NSImage>);
#[unsafe(method(centeredView))]
#[unsafe(method_family = none)]
pub unsafe fn centeredView(&self) -> Option<Retained<NSView>>;
#[unsafe(method(setCenteredView:))]
#[unsafe(method_family = none)]
pub unsafe fn setCenteredView(&self, centered_view: Option<&NSView>);
#[unsafe(method(backgroundImageConstraint))]
#[unsafe(method_family = none)]
pub unsafe fn backgroundImageConstraint(&self) -> Option<Retained<NSLayoutConstraint>>;
#[unsafe(method(setBackgroundImageConstraint:))]
#[unsafe(method_family = none)]
pub unsafe fn setBackgroundImageConstraint(
&self,
background_image_constraint: Option<&NSLayoutConstraint>,
);
#[unsafe(method(sharedDisplayView))]
#[unsafe(method_family = none)]
pub unsafe fn sharedDisplayView(
mtm: MainThreadMarker,
) -> Option<Retained<IOBluetoothPasskeyDisplay>>;
#[cfg(feature = "objc2-io-bluetooth")]
#[unsafe(method(setPasskey:forDevice:usingSSP:))]
#[unsafe(method_family = none)]
pub unsafe fn setPasskey_forDevice_usingSSP(
&self,
in_string: Option<&NSString>,
device: Option<&IOBluetoothDevice>,
is_ssp: bool,
);
#[unsafe(method(advancePasskeyIndicator))]
#[unsafe(method_family = none)]
pub unsafe fn advancePasskeyIndicator(&self);
#[unsafe(method(retreatPasskeyIndicator))]
#[unsafe(method_family = none)]
pub unsafe fn retreatPasskeyIndicator(&self);
#[unsafe(method(resetPasskeyIndicator))]
#[unsafe(method_family = none)]
pub unsafe fn resetPasskeyIndicator(&self);
#[cfg(feature = "objc2-io-bluetooth")]
#[deprecated]
#[unsafe(method(setupUIForDevice:))]
#[unsafe(method_family = none)]
pub unsafe fn setupUIForDevice(&self, device: Option<&IOBluetoothDevice>);
#[cfg(feature = "objc2-io-bluetooth")]
#[deprecated]
#[unsafe(method(setupUIForSSPDevice:))]
#[unsafe(method_family = none)]
pub unsafe fn setupUIForSSPDevice(&self, device: Option<&IOBluetoothDevice>);
#[deprecated]
#[unsafe(method(setPasskeyString:))]
#[unsafe(method_family = none)]
pub unsafe fn setPasskeyString(&self, in_string: Option<&NSString>);
#[deprecated]
#[unsafe(method(setPasskeyIndicatorEnabled:))]
#[unsafe(method_family = none)]
pub unsafe fn setPasskeyIndicatorEnabled(&self, in_enabled: bool);
#[deprecated]
#[unsafe(method(resetAll))]
#[unsafe(method_family = none)]
pub unsafe fn resetAll(&self);
);
}
impl IOBluetoothPasskeyDisplay {
extern_methods!(
#[unsafe(method(initWithFrame:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
coder: &NSCoder,
) -> Option<Retained<Self>>;
);
}
impl IOBluetoothPasskeyDisplay {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl IOBluetoothPasskeyDisplay {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(NSTextFieldCell, NSActionCell, NSCell, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct IOBluetoothAccessibilityIgnoredTextFieldCell;
);
extern_conformance!(
unsafe impl NSAccessibility for IOBluetoothAccessibilityIgnoredTextFieldCell {}
);
extern_conformance!(
unsafe impl NSAccessibilityElementProtocol for IOBluetoothAccessibilityIgnoredTextFieldCell {}
);
extern_conformance!(
unsafe impl NSCoding for IOBluetoothAccessibilityIgnoredTextFieldCell {}
);
extern_conformance!(
unsafe impl NSCopying for IOBluetoothAccessibilityIgnoredTextFieldCell {}
);
unsafe impl CopyingHelper for IOBluetoothAccessibilityIgnoredTextFieldCell {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for IOBluetoothAccessibilityIgnoredTextFieldCell {}
);
extern_conformance!(
unsafe impl NSUserInterfaceItemIdentification for IOBluetoothAccessibilityIgnoredTextFieldCell {}
);
impl IOBluetoothAccessibilityIgnoredTextFieldCell {
extern_methods!();
}
impl IOBluetoothAccessibilityIgnoredTextFieldCell {
extern_methods!(
#[unsafe(method(initTextCell:))]
#[unsafe(method_family = init)]
pub unsafe fn initTextCell(this: Allocated<Self>, string: &NSString) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
#[unsafe(method(initImageCell:))]
#[unsafe(method_family = init)]
pub unsafe fn initImageCell(
this: Allocated<Self>,
image: Option<&NSImage>,
) -> Retained<Self>;
);
}
impl IOBluetoothAccessibilityIgnoredTextFieldCell {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl IOBluetoothAccessibilityIgnoredTextFieldCell {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(NSImageCell, NSCell, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct IOBluetoothAccessibilityIgnoredImageCell;
);
extern_conformance!(
unsafe impl NSAccessibility for IOBluetoothAccessibilityIgnoredImageCell {}
);
extern_conformance!(
unsafe impl NSAccessibilityElementProtocol for IOBluetoothAccessibilityIgnoredImageCell {}
);
extern_conformance!(
unsafe impl NSCoding for IOBluetoothAccessibilityIgnoredImageCell {}
);
extern_conformance!(
unsafe impl NSCopying for IOBluetoothAccessibilityIgnoredImageCell {}
);
unsafe impl CopyingHelper for IOBluetoothAccessibilityIgnoredImageCell {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for IOBluetoothAccessibilityIgnoredImageCell {}
);
extern_conformance!(
unsafe impl NSUserInterfaceItemIdentification for IOBluetoothAccessibilityIgnoredImageCell {}
);
impl IOBluetoothAccessibilityIgnoredImageCell {
extern_methods!();
}
impl IOBluetoothAccessibilityIgnoredImageCell {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(initTextCell:))]
#[unsafe(method_family = init)]
pub unsafe fn initTextCell(this: Allocated<Self>, string: &NSString) -> Retained<Self>;
#[unsafe(method(initImageCell:))]
#[unsafe(method_family = init)]
pub unsafe fn initImageCell(
this: Allocated<Self>,
image: Option<&NSImage>,
) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
);
}
impl IOBluetoothAccessibilityIgnoredImageCell {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}