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