comparison src/video/quartz/CGS.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents d910939febfa
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
47 #define kCGSWindowLevelMBarShadow -20 47 #define kCGSWindowLevelMBarShadow -20
48 #define kCGSWindowLevelDesktopPicture -2147483647 48 #define kCGSWindowLevelDesktopPicture -2147483647
49 #define kCGSWindowLevelDesktop -2147483648 49 #define kCGSWindowLevelDesktop -2147483648
50 */ 50 */
51 51
52 typedef CGError CGSError; 52 typedef CGError CGSError;
53 typedef long CGSWindowCount; 53 typedef long CGSWindowCount;
54 typedef void * CGSConnectionID; 54 typedef void *CGSConnectionID;
55 typedef int CGSWindowID; 55 typedef int CGSWindowID;
56 typedef CGSWindowID* CGSWindowIDList; 56 typedef CGSWindowID *CGSWindowIDList;
57 typedef CGWindowLevel CGSWindowLevel; 57 typedef CGWindowLevel CGSWindowLevel;
58 typedef NSRect CGSRect; 58 typedef NSRect CGSRect;
59 59
60 extern CGSConnectionID _CGSDefaultConnection (); 60 extern CGSConnectionID _CGSDefaultConnection ();
61 61
62 extern CGSError CGSGetOnScreenWindowList (CGSConnectionID cid, 62 extern CGSError CGSGetOnScreenWindowList (CGSConnectionID cid,
63 CGSConnectionID owner, 63 CGSConnectionID owner,
64 CGSWindowCount listCapacity, 64 CGSWindowCount listCapacity,
65 CGSWindowIDList list, 65 CGSWindowIDList list,
66 CGSWindowCount *listCount); 66 CGSWindowCount * listCount);
67 67
68 extern CGSError CGSGetScreenRectForWindow (CGSConnectionID cid, 68 extern CGSError CGSGetScreenRectForWindow (CGSConnectionID cid,
69 CGSWindowID wid, 69 CGSWindowID wid, CGSRect * rect);
70 CGSRect *rect);
71 70
72 extern CGWindowLevel CGSGetWindowLevel (CGSConnectionID cid, 71 extern CGWindowLevel CGSGetWindowLevel (CGSConnectionID cid,
73 CGSWindowID wid, 72 CGSWindowID wid,
74 CGSWindowLevel *level); 73 CGSWindowLevel * level);
75 74
76 extern CGSError CGSDisplayHWFill (CGDirectDisplayID id, unsigned int x, unsigned int y, 75 extern CGSError CGSDisplayHWFill (CGDirectDisplayID id, unsigned int x,
77 unsigned int w, unsigned int h, unsigned int color); 76 unsigned int y, unsigned int w,
77 unsigned int h, unsigned int color);
78 78
79 extern CGSError CGSDisplayCanHWFill (CGDirectDisplayID id); 79 extern CGSError CGSDisplayCanHWFill (CGDirectDisplayID id);
80 80
81 extern CGSError CGSGetMouseEnabledFlags (CGSConnectionID cid, CGSWindowID wid, int *flags); 81 extern CGSError CGSGetMouseEnabledFlags (CGSConnectionID cid, CGSWindowID wid,
82 int *flags);
82 83
83 int CGSDisplayHWSync (CGDirectDisplayID id); 84 int CGSDisplayHWSync (CGDirectDisplayID id);
84 85 /* vi: set ts=4 sw=4 expandtab: */