icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "AppKit_NSPDFInfo")]
    pub struct NSPDFInfo;

    #[cfg(feature = "AppKit_NSPDFInfo")]
    unsafe impl ClassType for NSPDFInfo {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "AppKit_NSPDFInfo")]
unsafe impl NSCoding for NSPDFInfo {}

#[cfg(feature = "AppKit_NSPDFInfo")]
unsafe impl NSCopying for NSPDFInfo {}

#[cfg(feature = "AppKit_NSPDFInfo")]
unsafe impl NSObjectProtocol for NSPDFInfo {}

extern_methods!(
    #[cfg(feature = "AppKit_NSPDFInfo")]
    unsafe impl NSPDFInfo {
        #[cfg(feature = "Foundation_NSURL")]
        #[method_id(@__retain_semantics Other URL)]
        pub unsafe fn URL(&self) -> Option<Id<NSURL>>;

        #[cfg(feature = "Foundation_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);

        #[cfg(all(feature = "Foundation_NSArray", feature = "Foundation_NSString"))]
        #[method_id(@__retain_semantics Other tagNames)]
        pub unsafe fn tagNames(&self) -> Id<NSArray<NSString>>;

        #[cfg(all(feature = "Foundation_NSArray", feature = "Foundation_NSString"))]
        #[method(setTagNames:)]
        pub unsafe fn setTagNames(&self, tag_names: &NSArray<NSString>);

        #[method(orientation)]
        pub unsafe fn orientation(&self) -> NSPaperOrientation;

        #[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 = "Foundation_NSMutableDictionary")]
        #[method_id(@__retain_semantics Other attributes)]
        pub unsafe fn attributes(
            &self,
        ) -> Id<NSMutableDictionary<NSPrintInfoAttributeKey, AnyObject>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "AppKit_NSPDFInfo")]
    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>;
    }
);