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
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_methods!(
    /// NSScripting
    #[cfg(all(feature = "NSResponder", feature = "NSWindow"))]
    unsafe impl NSWindow {
        #[method(hasCloseBox)]
        pub fn hasCloseBox(&self) -> bool;

        #[method(hasTitleBar)]
        pub unsafe fn hasTitleBar(&self) -> bool;

        #[method(isFloatingPanel)]
        pub unsafe fn isFloatingPanel(&self) -> bool;

        #[method(isMiniaturizable)]
        pub fn isMiniaturizable(&self) -> bool;

        #[method(isModalPanel)]
        pub unsafe fn isModalPanel(&self) -> bool;

        #[method(isResizable)]
        pub fn isResizable(&self) -> bool;

        #[method(isZoomable)]
        pub unsafe fn isZoomable(&self) -> bool;

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

        #[method(setOrderedIndex:)]
        pub unsafe fn setOrderedIndex(&self, ordered_index: NSInteger);

        #[method(setIsMiniaturized:)]
        pub unsafe fn setIsMiniaturized(&self, flag: bool);

        #[method(setIsVisible:)]
        pub unsafe fn setIsVisible(&self, flag: bool);

        #[method(setIsZoomed:)]
        pub unsafe fn setIsZoomed(&self, flag: bool);

        #[method_id(@__retain_semantics Other handleCloseScriptCommand:)]
        pub unsafe fn handleCloseScriptCommand(
            &self,
            command: &NSCloseCommand,
        ) -> Option<Retained<AnyObject>>;

        #[method_id(@__retain_semantics Other handlePrintScriptCommand:)]
        pub unsafe fn handlePrintScriptCommand(
            &self,
            command: &NSScriptCommand,
        ) -> Option<Retained<AnyObject>>;

        #[method_id(@__retain_semantics Other handleSaveScriptCommand:)]
        pub unsafe fn handleSaveScriptCommand(
            &self,
            command: &NSScriptCommand,
        ) -> Option<Retained<AnyObject>>;
    }
);