objc2-app-kit 0.2.2

Bindings to the AppKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
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<Retained<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) -> Retained<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,
        ) -> Retained<NSMutableDictionary<NSPrintInfoAttributeKey, AnyObject>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    unsafe impl NSPDFInfo {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Retained<Self>;
    }
);