objc2_pdf_kit/generated/
PDFAnnotationFreeText.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 PDFAnnotationFreeText;
20);
21
22#[cfg(feature = "PDFAnnotation")]
23extern_conformance!(
24 unsafe impl NSCoding for PDFAnnotationFreeText {}
25);
26
27#[cfg(feature = "PDFAnnotation")]
28extern_conformance!(
29 unsafe impl NSCopying for PDFAnnotationFreeText {}
30);
31
32#[cfg(feature = "PDFAnnotation")]
33unsafe impl CopyingHelper for PDFAnnotationFreeText {
34 type Result = Self;
35}
36
37#[cfg(feature = "PDFAnnotation")]
38extern_conformance!(
39 unsafe impl NSObjectProtocol for PDFAnnotationFreeText {}
40);
41
42#[cfg(feature = "PDFAnnotation")]
43impl PDFAnnotationFreeText {
44 extern_methods!(
45 #[cfg(feature = "objc2-app-kit")]
46 #[cfg(target_os = "macos")]
47 #[deprecated]
48 #[unsafe(method(font))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn font(&self) -> Option<Retained<NSFont>>;
51
52 #[cfg(feature = "objc2-app-kit")]
53 #[cfg(target_os = "macos")]
54 #[deprecated]
58 #[unsafe(method(setFont:))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn setFont(&self, font: Option<&NSFont>);
61
62 #[cfg(feature = "objc2-app-kit")]
63 #[cfg(target_os = "macos")]
64 #[deprecated]
65 #[unsafe(method(fontColor))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn fontColor(&self) -> Option<Retained<NSColor>>;
68
69 #[cfg(feature = "objc2-app-kit")]
70 #[cfg(target_os = "macos")]
71 #[deprecated]
75 #[unsafe(method(setFontColor:))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn setFontColor(&self, color: Option<&NSColor>);
78
79 #[cfg(feature = "objc2-app-kit")]
80 #[cfg(target_os = "macos")]
81 #[deprecated]
82 #[unsafe(method(alignment))]
83 #[unsafe(method_family = none)]
84 pub unsafe fn alignment(&self) -> NSTextAlignment;
85
86 #[cfg(feature = "objc2-app-kit")]
87 #[cfg(target_os = "macos")]
88 #[deprecated]
89 #[unsafe(method(setAlignment:))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn setAlignment(&self, alignment: NSTextAlignment);
92 );
93}
94
95#[cfg(feature = "PDFAnnotation")]
97impl PDFAnnotationFreeText {
98 extern_methods!(
99 #[unsafe(method(initWithBounds:forType:withProperties:))]
103 #[unsafe(method_family = init)]
104 pub unsafe fn initWithBounds_forType_withProperties(
105 this: Allocated<Self>,
106 bounds: NSRect,
107 annotation_type: &PDFAnnotationSubtype,
108 properties: Option<&NSDictionary>,
109 ) -> Retained<Self>;
110 );
111}
112
113#[cfg(feature = "PDFAnnotation")]
115impl PDFAnnotationFreeText {
116 extern_methods!(
117 #[unsafe(method(init))]
118 #[unsafe(method_family = init)]
119 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
120
121 #[unsafe(method(new))]
122 #[unsafe(method_family = new)]
123 pub unsafe fn new() -> Retained<Self>;
124 );
125}