use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
ns_options!(
#[underlying(NSInteger)]
pub enum NSPDFPanelOptions {
NSPDFPanelShowsPaperSize = 1 << 2,
NSPDFPanelShowsOrientation = 1 << 3,
NSPDFPanelRequestsParentDirectory = 1 << 24,
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSPDFPanel;
unsafe impl ClassType for NSPDFPanel {
type Super = NSObject;
}
);
extern_methods!(
unsafe impl NSPDFPanel {
#[method_id(@__retain_semantics Other panel)]
pub unsafe fn panel() -> Id<NSPDFPanel, Shared>;
#[method_id(@__retain_semantics Other accessoryController)]
pub unsafe fn accessoryController(&self) -> Option<Id<NSViewController, Shared>>;
#[method(setAccessoryController:)]
pub unsafe fn setAccessoryController(&self, accessoryController: Option<&NSViewController>);
#[method(options)]
pub unsafe fn options(&self) -> NSPDFPanelOptions;
#[method(setOptions:)]
pub unsafe fn setOptions(&self, options: NSPDFPanelOptions);
#[method_id(@__retain_semantics Other defaultFileName)]
pub unsafe fn defaultFileName(&self) -> Id<NSString, Shared>;
#[method(setDefaultFileName:)]
pub unsafe fn setDefaultFileName(&self, defaultFileName: &NSString);
#[method(beginSheetWithPDFInfo:modalForWindow:completionHandler:)]
pub unsafe fn beginSheetWithPDFInfo_modalForWindow_completionHandler(
&self,
pdfInfo: &NSPDFInfo,
docWindow: Option<&NSWindow>,
completionHandler: &Block<(NSInteger,), ()>,
);
}
);