objc2_security_interface/generated/
SFChooseIdentityTableCellView.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_app_kit::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern_class!(
12    /// [Apple's documentation](https://developer.apple.com/documentation/securityinterface/sfchooseidentitytablecellview?language=objc)
13    #[unsafe(super(NSTableCellView, NSView, NSResponder, NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct SFChooseIdentityTableCellView;
16);
17
18extern_conformance!(
19    unsafe impl NSAccessibility for SFChooseIdentityTableCellView {}
20);
21
22extern_conformance!(
23    unsafe impl NSAccessibilityElementProtocol for SFChooseIdentityTableCellView {}
24);
25
26extern_conformance!(
27    unsafe impl NSAnimatablePropertyContainer for SFChooseIdentityTableCellView {}
28);
29
30extern_conformance!(
31    unsafe impl NSAppearanceCustomization for SFChooseIdentityTableCellView {}
32);
33
34extern_conformance!(
35    unsafe impl NSCoding for SFChooseIdentityTableCellView {}
36);
37
38extern_conformance!(
39    unsafe impl NSDraggingDestination for SFChooseIdentityTableCellView {}
40);
41
42extern_conformance!(
43    unsafe impl NSObjectProtocol for SFChooseIdentityTableCellView {}
44);
45
46extern_conformance!(
47    unsafe impl NSUserInterfaceItemIdentification for SFChooseIdentityTableCellView {}
48);
49
50impl SFChooseIdentityTableCellView {
51    extern_methods!(
52        /// # Safety
53        ///
54        /// This is not retained internally, you must ensure the object is still alive.
55        #[unsafe(method(issuerTextField))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn issuerTextField(&self) -> Option<Retained<NSTextField>>;
58
59        /// Setter for [`issuerTextField`][Self::issuerTextField].
60        ///
61        /// # Safety
62        ///
63        /// - `issuer_text_field` might not allow `None`.
64        /// - This is unretained, you must ensure the object is kept alive while in use.
65        #[unsafe(method(setIssuerTextField:))]
66        #[unsafe(method_family = none)]
67        pub unsafe fn setIssuerTextField(&self, issuer_text_field: Option<&NSTextField>);
68    );
69}
70
71/// Methods declared on superclass `NSView`.
72impl SFChooseIdentityTableCellView {
73    extern_methods!(
74        #[unsafe(method(initWithFrame:))]
75        #[unsafe(method_family = init)]
76        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
77
78        /// # Safety
79        ///
80        /// `coder` possibly has further requirements.
81        #[unsafe(method(initWithCoder:))]
82        #[unsafe(method_family = init)]
83        pub unsafe fn initWithCoder(
84            this: Allocated<Self>,
85            coder: &NSCoder,
86        ) -> Option<Retained<Self>>;
87    );
88}
89
90/// Methods declared on superclass `NSResponder`.
91impl SFChooseIdentityTableCellView {
92    extern_methods!(
93        #[unsafe(method(init))]
94        #[unsafe(method_family = init)]
95        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
96    );
97}
98
99/// Methods declared on superclass `NSObject`.
100impl SFChooseIdentityTableCellView {
101    extern_methods!(
102        #[unsafe(method(new))]
103        #[unsafe(method_family = new)]
104        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
105    );
106}