-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathobjc-runtime-types.lisp
31 lines (24 loc) · 1.17 KB
/
objc-runtime-types.lisp
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
(in-package :objc-runtime)
(include "Foundation/NSGeometry.h")
(include "AppKit/NSWindow.h")
(include "AppKit/NSGraphics.h")
(cc-flags "-x objective-c -framework Foundation -framework AppKit -ObjC")
(cstruct ns-point "NSPoint"
(ns-point-x "x" :type :double)
(ns-point-y "y" :type :double))
(cstruct ns-size "NSSize"
(ns-size-width "width" :type :double)
(ns-size-height "height" :type :double))
(cstruct ns-rect "NSRect"
(ns-rect-origin "origin" :type (:struct ns-point))
(ns-rect-size "size" :type (:struct ns-size)))
(cenum (ns-window-style-mask)
((:ns-window-style-mask-borderless "NSWindowStyleMaskBorderless"))
((:ns-window-style-mask-titled "NSWindowStyleMaskTitled"))
((:ns-window-style-mask-closable "NSWindowStyleMaskClosable"))
((:ns-window-style-mask-miniaturizable "NSWindowStyleMaskMiniaturizable"))
((:ns-window-style-mask-resizable "NSWindowStyleMaskResizable")))
(cenum (ns-backing-store-type)
((:ns-backing-store-retained "NSBackingStoreRetained"))
((:ns-backing-store-Nonretained "NSBackingStoreNonretained"))
((:ns-backing-store-buffered "NSBackingStoreBuffered")))