4 * Header to import to work with private CoreGraphics API
6 * Original Author : Matthew Judy <mjudy@ithinksw.com>
7 * Responsibility : Matthew Judy <mjudy@ithinksw.com>
9 * Copyright (c) 2002 - 2003 iThink Software.
15 /*************************************************************************/
17 #pragma mark CoreGraphics HACK HACK HACK
18 /*************************************************************************/
20 typedef void * CGSGenericObj;
21 typedef CGSGenericObj CGSValueObj;
22 typedef void * CGSConnectionID;
23 typedef void * CGSWindowID;
24 typedef struct CGStyle *CGStyleRef;
25 typedef struct CGShadowStyle {
34 typedef unsigned char CGSBoolean;
40 extern void CGStyleRelease(CGStyleRef style);
41 extern void CGSReleaseObj(void *obj);
42 extern void CGContextSetStyle(CGContextRef c, CGStyleRef style);
43 extern void CGStyleRelease(CGStyleRef style);
44 extern CGStyleRef CGStyleCreateShadow(const CGShadowStyle *shadow);
45 extern CGSValueObj CGSCreateCString(const char *string);
46 extern CGSValueObj CGSCreateBoolean(CGSBoolean boolean);
47 extern CGError CGSSetWindowProperty(const CGSConnectionID cid, CGSWindowID wid, const CGSValueObj key, const CGSValueObj value);
49 extern CGError CGSSetWindowWarp(const CGSConnectionID cid, CGSWindowID wid, int w,int h, float *mesh);
50 extern CGError CGSSetWindowTransform(const CGSConnectionID cid, CGSWindowID wid, CGAffineTransform transform);
53 /*************************************************************************/
55 #pragma mark NSApplication HACK HACK HACK
56 /*************************************************************************/
58 @interface NSApplication (HACKHACKHACKHACK)
59 - (CGSConnectionID)contextID;