objc2-security-interface 0.3.2

Bindings to the SecurityInterface framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_app_kit::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/securityinterface/sfchooseidentitytablecellview?language=objc)
    #[unsafe(super(NSTableCellView, NSView, NSResponder, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct SFChooseIdentityTableCellView;
);

extern_conformance!(
    unsafe impl NSAccessibility for SFChooseIdentityTableCellView {}
);

extern_conformance!(
    unsafe impl NSAccessibilityElementProtocol for SFChooseIdentityTableCellView {}
);

extern_conformance!(
    unsafe impl NSAnimatablePropertyContainer for SFChooseIdentityTableCellView {}
);

extern_conformance!(
    unsafe impl NSAppearanceCustomization for SFChooseIdentityTableCellView {}
);

extern_conformance!(
    unsafe impl NSCoding for SFChooseIdentityTableCellView {}
);

extern_conformance!(
    unsafe impl NSDraggingDestination for SFChooseIdentityTableCellView {}
);

extern_conformance!(
    unsafe impl NSObjectProtocol for SFChooseIdentityTableCellView {}
);

extern_conformance!(
    unsafe impl NSUserInterfaceItemIdentification for SFChooseIdentityTableCellView {}
);

impl SFChooseIdentityTableCellView {
    extern_methods!(
        /// # Safety
        ///
        /// This is not retained internally, you must ensure the object is still alive.
        #[unsafe(method(issuerTextField))]
        #[unsafe(method_family = none)]
        pub unsafe fn issuerTextField(&self) -> Option<Retained<NSTextField>>;

        /// Setter for [`issuerTextField`][Self::issuerTextField].
        ///
        /// # Safety
        ///
        /// - `issuer_text_field` might not allow `None`.
        /// - This is unretained, you must ensure the object is kept alive while in use.
        #[unsafe(method(setIssuerTextField:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setIssuerTextField(&self, issuer_text_field: Option<&NSTextField>);
    );
}

/// Methods declared on superclass `NSView`.
impl SFChooseIdentityTableCellView {
    extern_methods!(
        #[unsafe(method(initWithFrame:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;

        /// # Safety
        ///
        /// `coder` possibly has further requirements.
        #[unsafe(method(initWithCoder:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithCoder(
            this: Allocated<Self>,
            coder: &NSCoder,
        ) -> Option<Retained<Self>>;
    );
}

/// Methods declared on superclass `NSResponder`.
impl SFChooseIdentityTableCellView {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
    );
}

/// Methods declared on superclass `NSObject`.
impl SFChooseIdentityTableCellView {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
    );
}