use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSPDFInfo;
unsafe impl ClassType for NSPDFInfo {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for NSPDFInfo {}
unsafe impl NSCopying for NSPDFInfo {}
unsafe impl NSObjectProtocol for NSPDFInfo {}
extern_methods!(
unsafe impl NSPDFInfo {
#[method_id(@__retain_semantics Other URL)]
pub unsafe fn URL(&self) -> Option<Id<NSURL>>;
#[method(setURL:)]
pub unsafe fn setURL(&self, url: Option<&NSURL>);
#[method(isFileExtensionHidden)]
pub unsafe fn isFileExtensionHidden(&self) -> bool;
#[method(setFileExtensionHidden:)]
pub unsafe fn setFileExtensionHidden(&self, file_extension_hidden: bool);
#[method_id(@__retain_semantics Other tagNames)]
pub unsafe fn tagNames(&self) -> Id<NSArray<NSString>>;
#[method(setTagNames:)]
pub unsafe fn setTagNames(&self, tag_names: &NSArray<NSString>);
#[cfg(feature = "NSPrintInfo")]
#[method(orientation)]
pub unsafe fn orientation(&self) -> NSPaperOrientation;
#[cfg(feature = "NSPrintInfo")]
#[method(setOrientation:)]
pub unsafe fn setOrientation(&self, orientation: NSPaperOrientation);
#[method(paperSize)]
pub unsafe fn paperSize(&self) -> NSSize;
#[method(setPaperSize:)]
pub unsafe fn setPaperSize(&self, paper_size: NSSize);
#[cfg(feature = "NSPrintInfo")]
#[method_id(@__retain_semantics Other attributes)]
pub unsafe fn attributes(
&self,
) -> Id<NSMutableDictionary<NSPrintInfoAttributeKey, AnyObject>>;
}
);
extern_methods!(
unsafe impl NSPDFInfo {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);