1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "AppKit_NSPageLayout")]
pub struct NSPageLayout;
#[cfg(feature = "AppKit_NSPageLayout")]
unsafe impl ClassType for NSPageLayout {
type Super = NSObject;
}
);
#[cfg(feature = "AppKit_NSPageLayout")]
unsafe impl NSObjectProtocol for NSPageLayout {}
extern_methods!(
#[cfg(feature = "AppKit_NSPageLayout")]
unsafe impl NSPageLayout {
#[method_id(@__retain_semantics Other pageLayout)]
pub unsafe fn pageLayout() -> Id<NSPageLayout, Shared>;
#[cfg(feature = "AppKit_NSViewController")]
#[method(addAccessoryController:)]
pub unsafe fn addAccessoryController(&self, accessory_controller: &NSViewController);
#[cfg(feature = "AppKit_NSViewController")]
#[method(removeAccessoryController:)]
pub unsafe fn removeAccessoryController(&self, accessory_controller: &NSViewController);
#[cfg(all(feature = "AppKit_NSViewController", feature = "Foundation_NSArray"))]
#[method_id(@__retain_semantics Other accessoryControllers)]
pub unsafe fn accessoryControllers(&self) -> Id<NSArray<NSViewController>, Shared>;
#[cfg(all(feature = "AppKit_NSPrintInfo", feature = "AppKit_NSWindow"))]
#[method(beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:)]
pub unsafe fn beginSheetWithPrintInfo_modalForWindow_delegate_didEndSelector_contextInfo(
&self,
print_info: &NSPrintInfo,
doc_window: &NSWindow,
delegate: Option<&Object>,
did_end_selector: Option<Sel>,
context_info: *mut c_void,
);
#[cfg(feature = "AppKit_NSPrintInfo")]
#[method(runModalWithPrintInfo:)]
pub unsafe fn runModalWithPrintInfo(&self, print_info: &NSPrintInfo) -> NSInteger;
#[method(runModal)]
pub unsafe fn runModal(&self) -> NSInteger;
#[cfg(feature = "AppKit_NSPrintInfo")]
#[method_id(@__retain_semantics Other printInfo)]
pub unsafe fn printInfo(&self) -> Option<Id<NSPrintInfo, Shared>>;
}
);
extern_methods!(
#[cfg(feature = "AppKit_NSPageLayout")]
unsafe impl NSPageLayout {
#[cfg(feature = "AppKit_NSView")]
#[deprecated]
#[method(setAccessoryView:)]
pub unsafe fn setAccessoryView(&self, accessory_view: Option<&NSView>);
#[cfg(feature = "AppKit_NSView")]
#[deprecated]
#[method_id(@__retain_semantics Other accessoryView)]
pub unsafe fn accessoryView(&self) -> Option<Id<NSView, Shared>>;
#[deprecated]
#[method(readPrintInfo)]
pub unsafe fn readPrintInfo(&self);
#[deprecated]
#[method(writePrintInfo)]
pub unsafe fn writePrintInfo(&self);
}
);
extern_methods!(
#[cfg(feature = "AppKit_NSApplication")]
unsafe impl NSApplication {
#[method(runPageLayout:)]
pub unsafe fn runPageLayout(&self, sender: Option<&Object>);
}
);