ITKit for Menutunes
[ITKit.git] / ITCoreGraphicsHacks.h
1
2 /*************************************************************************/
3 #pragma mark -
4 #pragma mark CoreGraphics HACKS
5 /*************************************************************************/
6
7 typedef void * CGSGenericObj;
8 typedef CGSGenericObj CGSValueObj;
9 typedef void * CGSConnectionID;
10 typedef void * CGSWindowID;
11 typedef struct CGStyle *CGStyleRef;
12 typedef struct CGShadowStyle {
13     unsigned int version;
14     float elevation;
15     float azimuth;
16     float ambient;
17     float height;
18     float radius;
19     float saturation;
20 } CGShadowStyle;
21 typedef unsigned char CGSBoolean;
22 enum {
23     kCGSFalse = 0,
24     kCGSTrue  = 1
25 };
26
27 extern void        CGStyleRelease(CGStyleRef style);
28 extern void        CGSReleaseObj(void *obj);
29 extern void        CGContextSetStyle(CGContextRef c, CGStyleRef style);
30 extern void        CGStyleRelease(CGStyleRef style);
31 extern CGStyleRef  CGStyleCreateShadow(const CGShadowStyle *shadow);
32 extern CGSValueObj CGSCreateCString(const char *string);
33 extern CGSValueObj CGSCreateBoolean(CGSBoolean boolean);
34 extern CGError     CGSSetWindowProperty(const CGSConnectionID cid,
35                                         CGSWindowID wid, const CGSValueObj key, const CGSValueObj value);