objc2_app_kit/generated/
NSPDFInfo.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct NSPDFInfo;
15);
16
17extern_conformance!(
18 unsafe impl NSCoding for NSPDFInfo {}
19);
20
21extern_conformance!(
22 unsafe impl NSCopying for NSPDFInfo {}
23);
24
25unsafe impl CopyingHelper for NSPDFInfo {
26 type Result = Self;
27}
28
29extern_conformance!(
30 unsafe impl NSObjectProtocol for NSPDFInfo {}
31);
32
33impl NSPDFInfo {
34 extern_methods!(
35 #[unsafe(method(URL))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn URL(&self) -> Option<Retained<NSURL>>;
38
39 #[unsafe(method(setURL:))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn setURL(&self, url: Option<&NSURL>);
43
44 #[unsafe(method(isFileExtensionHidden))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn isFileExtensionHidden(&self) -> bool;
47
48 #[unsafe(method(setFileExtensionHidden:))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn setFileExtensionHidden(&self, file_extension_hidden: bool);
52
53 #[unsafe(method(tagNames))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn tagNames(&self) -> Retained<NSArray<NSString>>;
56
57 #[unsafe(method(setTagNames:))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn setTagNames(&self, tag_names: &NSArray<NSString>);
61
62 #[cfg(feature = "NSPrintInfo")]
63 #[unsafe(method(orientation))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn orientation(&self) -> NSPaperOrientation;
66
67 #[cfg(feature = "NSPrintInfo")]
68 #[unsafe(method(setOrientation:))]
70 #[unsafe(method_family = none)]
71 pub unsafe fn setOrientation(&self, orientation: NSPaperOrientation);
72
73 #[unsafe(method(paperSize))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn paperSize(&self) -> NSSize;
76
77 #[unsafe(method(setPaperSize:))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn setPaperSize(&self, paper_size: NSSize);
81
82 #[cfg(feature = "NSPrintInfo")]
83 #[unsafe(method(attributes))]
84 #[unsafe(method_family = none)]
85 pub unsafe fn attributes(
86 &self,
87 ) -> Retained<NSMutableDictionary<NSPrintInfoAttributeKey, AnyObject>>;
88 );
89}
90
91impl NSPDFInfo {
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}