icrate 0.0.1

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)]
    pub struct NSPageLayout;

    unsafe impl ClassType for NSPageLayout {
        type Super = NSObject;
    }
);

extern_methods!(
    unsafe impl NSPageLayout {
        #[method_id(@__retain_semantics Other pageLayout)]
        pub unsafe fn pageLayout() -> Id<NSPageLayout, Shared>;

        #[method(addAccessoryController:)]
        pub unsafe fn addAccessoryController(&self, accessoryController: &NSViewController);

        #[method(removeAccessoryController:)]
        pub unsafe fn removeAccessoryController(&self, accessoryController: &NSViewController);

        #[method_id(@__retain_semantics Other accessoryControllers)]
        pub unsafe fn accessoryControllers(&self) -> Id<NSArray<NSViewController>, Shared>;

        #[method(beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:)]
        pub unsafe fn beginSheetWithPrintInfo_modalForWindow_delegate_didEndSelector_contextInfo(
            &self,
            printInfo: &NSPrintInfo,
            docWindow: &NSWindow,
            delegate: Option<&Object>,
            didEndSelector: Option<Sel>,
            contextInfo: *mut c_void,
        );

        #[method(runModalWithPrintInfo:)]
        pub unsafe fn runModalWithPrintInfo(&self, printInfo: &NSPrintInfo) -> NSInteger;

        #[method(runModal)]
        pub unsafe fn runModal(&self) -> NSInteger;

        #[method_id(@__retain_semantics Other printInfo)]
        pub unsafe fn printInfo(&self) -> Option<Id<NSPrintInfo, Shared>>;
    }
);

extern_methods!(
    /// NSDeprecated
    unsafe impl NSPageLayout {
        #[method(setAccessoryView:)]
        pub unsafe fn setAccessoryView(&self, accessoryView: Option<&NSView>);

        #[method_id(@__retain_semantics Other accessoryView)]
        pub unsafe fn accessoryView(&self) -> Option<Id<NSView, Shared>>;

        #[method(readPrintInfo)]
        pub unsafe fn readPrintInfo(&self);

        #[method(writePrintInfo)]
        pub unsafe fn writePrintInfo(&self);
    }
);

extern_methods!(
    /// NSPageLayoutPanel
    unsafe impl NSApplication {
        #[method(runPageLayout:)]
        pub unsafe fn runPageLayout(&self, sender: Option<&Object>);
    }
);