objc2_pdf_kit/generated/
PDFAnnotationMarkup.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/pdfannotationmarkup?language=objc)
12    #[unsafe(super(PDFAnnotation, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(feature = "PDFAnnotation")]
15    #[deprecated]
16    pub struct PDFAnnotationMarkup;
17);
18
19#[cfg(feature = "PDFAnnotation")]
20extern_conformance!(
21    unsafe impl NSCoding for PDFAnnotationMarkup {}
22);
23
24#[cfg(feature = "PDFAnnotation")]
25extern_conformance!(
26    unsafe impl NSCopying for PDFAnnotationMarkup {}
27);
28
29#[cfg(feature = "PDFAnnotation")]
30unsafe impl CopyingHelper for PDFAnnotationMarkup {
31    type Result = Self;
32}
33
34#[cfg(feature = "PDFAnnotation")]
35extern_conformance!(
36    unsafe impl NSObjectProtocol for PDFAnnotationMarkup {}
37);
38
39#[cfg(feature = "PDFAnnotation")]
40impl PDFAnnotationMarkup {
41    extern_methods!(
42        #[deprecated]
43        #[unsafe(method(quadrilateralPoints))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn quadrilateralPoints(&self) -> Option<Retained<NSArray>>;
46
47        /// # Safety
48        ///
49        /// - `points` generic should be of the correct type.
50        /// - `points` might not allow `None`.
51        #[deprecated]
52        #[unsafe(method(setQuadrilateralPoints:))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn setQuadrilateralPoints(&self, points: Option<&NSArray>);
55
56        #[cfg(feature = "PDFAnnotationUtilities")]
57        #[deprecated]
58        #[unsafe(method(markupType))]
59        #[unsafe(method_family = none)]
60        pub unsafe fn markupType(&self) -> PDFMarkupType;
61
62        #[cfg(feature = "PDFAnnotationUtilities")]
63        #[deprecated]
64        #[unsafe(method(setMarkupType:))]
65        #[unsafe(method_family = none)]
66        pub unsafe fn setMarkupType(&self, r#type: PDFMarkupType);
67    );
68}
69
70/// Methods declared on superclass `PDFAnnotation`.
71#[cfg(feature = "PDFAnnotation")]
72impl PDFAnnotationMarkup {
73    extern_methods!(
74        /// # Safety
75        ///
76        /// `properties` generic should be of the correct type.
77        #[unsafe(method(initWithBounds:forType:withProperties:))]
78        #[unsafe(method_family = init)]
79        pub unsafe fn initWithBounds_forType_withProperties(
80            this: Allocated<Self>,
81            bounds: NSRect,
82            annotation_type: &PDFAnnotationSubtype,
83            properties: Option<&NSDictionary>,
84        ) -> Retained<Self>;
85    );
86}
87
88/// Methods declared on superclass `NSObject`.
89#[cfg(feature = "PDFAnnotation")]
90impl PDFAnnotationMarkup {
91    extern_methods!(
92        #[unsafe(method(init))]
93        #[unsafe(method_family = init)]
94        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
95
96        #[unsafe(method(new))]
97        #[unsafe(method_family = new)]
98        pub unsafe fn new() -> Retained<Self>;
99    );
100}