X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/35167b10d151b0ae09f0f807670c318bc4d3de53..22a86e1af594d77fde7f056cf5152478f14dafbf:/ITCoreGraphicsHacks.h diff --git a/ITCoreGraphicsHacks.h b/ITCoreGraphicsHacks.h new file mode 100755 index 0000000..c9041c9 --- /dev/null +++ b/ITCoreGraphicsHacks.h @@ -0,0 +1,35 @@ + +/*************************************************************************/ +#pragma mark - +#pragma mark CoreGraphics HACKS +/*************************************************************************/ + +typedef void * CGSGenericObj; +typedef CGSGenericObj CGSValueObj; +typedef void * CGSConnectionID; +typedef void * CGSWindowID; +typedef struct CGStyle *CGStyleRef; +typedef struct CGShadowStyle { + unsigned int version; + float elevation; + float azimuth; + float ambient; + float height; + float radius; + float saturation; +} CGShadowStyle; +typedef unsigned char CGSBoolean; +enum { + kCGSFalse = 0, + kCGSTrue = 1 +}; + +extern void CGStyleRelease(CGStyleRef style); +extern void CGSReleaseObj(void *obj); +extern void CGContextSetStyle(CGContextRef c, CGStyleRef style); +extern void CGStyleRelease(CGStyleRef style); +extern CGStyleRef CGStyleCreateShadow(const CGShadowStyle *shadow); +extern CGSValueObj CGSCreateCString(const char *string); +extern CGSValueObj CGSCreateBoolean(CGSBoolean boolean); +extern CGError CGSSetWindowProperty(const CGSConnectionID cid, + CGSWindowID wid, const CGSValueObj key, const CGSValueObj value);