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