objc2_pdf_kit/generated/
PDFAnnotationInk.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-app-kit")]
7#[cfg(target_os = "macos")]
8use objc2_app_kit::*;
9use objc2_foundation::*;
10
11use crate::*;
12
13extern_class!(
14 #[unsafe(super(PDFAnnotation, NSObject))]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 #[cfg(feature = "PDFAnnotation")]
18 #[deprecated]
19 pub struct PDFAnnotationInk;
20);
21
22#[cfg(feature = "PDFAnnotation")]
23extern_conformance!(
24 unsafe impl NSCoding for PDFAnnotationInk {}
25);
26
27#[cfg(feature = "PDFAnnotation")]
28extern_conformance!(
29 unsafe impl NSCopying for PDFAnnotationInk {}
30);
31
32#[cfg(feature = "PDFAnnotation")]
33unsafe impl CopyingHelper for PDFAnnotationInk {
34 type Result = Self;
35}
36
37#[cfg(feature = "PDFAnnotation")]
38extern_conformance!(
39 unsafe impl NSObjectProtocol for PDFAnnotationInk {}
40);
41
42#[cfg(feature = "PDFAnnotation")]
43impl PDFAnnotationInk {
44 extern_methods!(
45 #[deprecated]
46 #[unsafe(method(paths))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn paths(&self) -> Option<Retained<NSArray>>;
49
50 #[cfg(feature = "objc2-app-kit")]
51 #[cfg(target_os = "macos")]
52 #[deprecated]
56 #[unsafe(method(addBezierPath:))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn addBezierPath(&self, path: Option<&NSBezierPath>);
59
60 #[cfg(feature = "objc2-app-kit")]
61 #[cfg(target_os = "macos")]
62 #[deprecated]
66 #[unsafe(method(removeBezierPath:))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn removeBezierPath(&self, path: Option<&NSBezierPath>);
69 );
70}
71
72#[cfg(feature = "PDFAnnotation")]
74impl PDFAnnotationInk {
75 extern_methods!(
76 #[unsafe(method(initWithBounds:forType:withProperties:))]
80 #[unsafe(method_family = init)]
81 pub unsafe fn initWithBounds_forType_withProperties(
82 this: Allocated<Self>,
83 bounds: NSRect,
84 annotation_type: &PDFAnnotationSubtype,
85 properties: Option<&NSDictionary>,
86 ) -> Retained<Self>;
87 );
88}
89
90#[cfg(feature = "PDFAnnotation")]
92impl PDFAnnotationInk {
93 extern_methods!(
94 #[unsafe(method(init))]
95 #[unsafe(method_family = init)]
96 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
97
98 #[unsafe(method(new))]
99 #[unsafe(method_family = new)]
100 pub unsafe fn new() -> Retained<Self>;
101 );
102}