File tree 2 files changed +25
-38
lines changed
2 files changed +25
-38
lines changed Original file line number Diff line number Diff line change 1
1
package cocoa
2
2
3
- /*
4
- #cgo CFLAGS: -x objective-c
5
- #cgo LDFLAGS: -lobjc -framework Foundation
6
- #define OBJC_OLD_DISPATCH_PROTOTYPES 1
7
- #include <objc/runtime.h>
8
- #include <objc/message.h>
9
-
10
-
11
- */
12
- import "C"
13
-
14
3
import (
15
4
"github.com/progrium/macdriver/core"
16
5
"github.com/progrium/macdriver/objc"
17
6
)
18
7
19
- const (
20
- NSBorderlessWindowMask = 0
21
- NSTitledWindowMask = 1 << 0
22
- NSClosableWindowMask = 1 << 1
23
- NSMiniaturizableWindowMask = 1 << 2
24
- NSResizableWindowMask = 1 << 3
25
- NSTexturedBackgroundWindowMask = 1 << 8
26
- NSWindowStyleMaskFullScreen = 1 << 14
27
- NSFullSizeContentViewWindowMask = 32768
28
-
29
- NSWindowTitleVisible = 0
30
- NSWindowTitleHidden = 1
31
-
32
- NSWindowAbove = 1
33
- NSWindowBelow = - 1
34
- NSWindowOut = 0
35
-
36
- NSBackingStoreRetained = 0
37
- NSBackingStoreNonretained = 1
38
- NSBackingStoreBuffered = 2
39
-
40
- NSFloatingWindowLevel = 3
41
- NSMainMenuWindowLevel = 24
42
- )
43
-
44
- type NSBackingStoreType uintptr
45
-
46
8
type NSWindow struct {
47
9
objc.Object
48
10
}
Original file line number Diff line number Diff line change 1
1
package cocoa
2
2
3
+ type NSBackingStoreType uintptr
4
+
3
5
const (
6
+ NSBorderlessWindowMask = 0
7
+ NSTitledWindowMask = 1 << 0
8
+ NSClosableWindowMask = 1 << 1
9
+ NSMiniaturizableWindowMask = 1 << 2
10
+ NSResizableWindowMask = 1 << 3
11
+ NSTexturedBackgroundWindowMask = 1 << 8
12
+ NSWindowStyleMaskFullScreen = 1 << 14
13
+ NSFullSizeContentViewWindowMask = 32768
14
+
15
+ NSWindowTitleVisible = 0
16
+ NSWindowTitleHidden = 1
17
+
18
+ NSWindowAbove = 1
19
+ NSWindowBelow = - 1
20
+ NSWindowOut = 0
21
+
22
+ NSBackingStoreRetained NSBackingStoreType = 0
23
+ NSBackingStoreNonretained NSBackingStoreType = 1
24
+ NSBackingStoreBuffered NSBackingStoreType = 2
25
+
26
+ NSFloatingWindowLevel = 3
27
+ NSMainMenuWindowLevel = 24
28
+
4
29
NSWindowCollectionBehaviorDefault = 0
5
30
NSWindowCollectionBehaviorCanJoinAllSpaces = 1 << 0
6
31
NSWindowCollectionBehaviorMoveToActiveSpace = 1 << 1
You can’t perform that action at this time.
0 commit comments