use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::LocalAuthentication::*;
use crate::LocalAuthenticationEmbeddedUI::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
pub struct LAAuthenticationView;
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl ClassType for LAAuthenticationView {
#[inherits(NSResponder, NSObject)]
type Super = NSView;
type Mutability = MainThreadOnly;
}
);
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl NSAccessibility for LAAuthenticationView {}
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl NSAccessibilityElementProtocol for LAAuthenticationView {}
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl NSAnimatablePropertyContainer for LAAuthenticationView {}
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl NSAppearanceCustomization for LAAuthenticationView {}
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl NSCoding for LAAuthenticationView {}
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl NSDraggingDestination for LAAuthenticationView {}
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl NSObjectProtocol for LAAuthenticationView {}
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl NSUserInterfaceItemIdentification for LAAuthenticationView {}
extern_methods!(
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl LAAuthenticationView {
#[method_id(@__retain_semantics Init initWithFrame:)]
pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Id<Self>;
#[cfg(feature = "LocalAuthentication_LAContext")]
#[method_id(@__retain_semantics Init initWithContext:)]
pub unsafe fn initWithContext(this: Allocated<Self>, context: &LAContext) -> Id<Self>;
#[cfg(feature = "LocalAuthentication_LAContext")]
#[method_id(@__retain_semantics Init initWithContext:controlSize:)]
pub unsafe fn initWithContext_controlSize(
this: Allocated<Self>,
context: &LAContext,
control_size: NSControlSize,
) -> Id<Self>;
#[cfg(feature = "LocalAuthentication_LAContext")]
#[method_id(@__retain_semantics Other context)]
pub unsafe fn context(&self) -> Id<LAContext>;
#[method(controlSize)]
pub unsafe fn controlSize(&self) -> NSControlSize;
}
);
extern_methods!(
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl LAAuthenticationView {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "LocalAuthenticationEmbeddedUI_LAAuthenticationView")]
unsafe impl LAAuthenticationView {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>;
}
);