objc2_pdf_kit/generated/
PDFAnnotationStamp.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[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 #[deprecated]
51 #[unsafe(method(setName:))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn setName(&self, name: Option<&NSString>);
54 );
55}
56
57#[cfg(feature = "PDFAnnotation")]
59impl PDFAnnotationStamp {
60 extern_methods!(
61 #[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#[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}