objc2_pdf_kit/generated/
PDFAnnotationPopup.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_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationpopup?language=objc)
12    #[unsafe(super(PDFAnnotation, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(feature = "PDFAnnotation")]
15    #[deprecated]
16    pub struct PDFAnnotationPopup;
17);
18
19#[cfg(feature = "PDFAnnotation")]
20extern_conformance!(
21    unsafe impl NSCoding for PDFAnnotationPopup {}
22);
23
24#[cfg(feature = "PDFAnnotation")]
25extern_conformance!(
26    unsafe impl NSCopying for PDFAnnotationPopup {}
27);
28
29#[cfg(feature = "PDFAnnotation")]
30unsafe impl CopyingHelper for PDFAnnotationPopup {
31    type Result = Self;
32}
33
34#[cfg(feature = "PDFAnnotation")]
35extern_conformance!(
36    unsafe impl NSObjectProtocol for PDFAnnotationPopup {}
37);
38
39#[cfg(feature = "PDFAnnotation")]
40impl PDFAnnotationPopup {
41    extern_methods!(
42        #[deprecated]
43        #[unsafe(method(isOpen))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn isOpen(&self) -> bool;
46
47        #[deprecated]
48        #[unsafe(method(setIsOpen:))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn setIsOpen(&self, is_open: bool);
51    );
52}
53
54/// Methods declared on superclass `PDFAnnotation`.
55#[cfg(feature = "PDFAnnotation")]
56impl PDFAnnotationPopup {
57    extern_methods!(
58        /// # Safety
59        ///
60        /// `properties` generic should be of the correct type.
61        #[unsafe(method(initWithBounds:forType:withProperties:))]
62        #[unsafe(method_family = init)]
63        pub unsafe fn initWithBounds_forType_withProperties(
64            this: Allocated<Self>,
65            bounds: NSRect,
66            annotation_type: &PDFAnnotationSubtype,
67            properties: Option<&NSDictionary>,
68        ) -> Retained<Self>;
69    );
70}
71
72/// Methods declared on superclass `NSObject`.
73#[cfg(feature = "PDFAnnotation")]
74impl PDFAnnotationPopup {
75    extern_methods!(
76        #[unsafe(method(init))]
77        #[unsafe(method_family = init)]
78        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
79
80        #[unsafe(method(new))]
81        #[unsafe(method_family = new)]
82        pub unsafe fn new() -> Retained<Self>;
83    );
84}