X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/676d1feebedb6b04b4da4bb58b3ca1282d7740f5..7a218424c6a92eb4979564a7260f862edd46052d:/ITCoreGraphicsHacks.h diff --git a/ITCoreGraphicsHacks.h b/ITCoreGraphicsHacks.h old mode 100755 new mode 100644 index a07942b..c77185d --- a/ITCoreGraphicsHacks.h +++ b/ITCoreGraphicsHacks.h @@ -1,62 +1,48 @@ /* * ITKit - * ITCoreGraphicsHacks - * Header to import to work with private CoreGraphics API + * ITCoreGraphicsHacks.h * - * Original Author : Matthew Judy - * Responsibility : Matthew Judy + * Header to import to work with private CoreGraphics API. * - * Copyright (c) 2002 - 2003 iThink Software. - * All Rights Reserved + * Copyright (c) 2005 by iThink Software. + * All Rights Reserved. + * + * $Id$ * */ - -/*************************************************************************/ -#pragma mark - -#pragma mark CoreGraphics HACK HACK HACK -/*************************************************************************/ - 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; + 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 + 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 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); - +extern CGError CGSSetWindowProperty(const CGSConnectionID cid, CGSWindowID wid, const CGSValueObj key, const CGSValueObj value); + extern CGError CGSSetWindowWarp(const CGSConnectionID cid, CGSWindowID wid, int w,int h, float *mesh); extern CGError CGSSetWindowTransform(const CGSConnectionID cid, CGSWindowID wid, CGAffineTransform transform); - -/*************************************************************************/ -#pragma mark - -#pragma mark NSApplication HACK HACK HACK -/*************************************************************************/ - -@interface NSApplication (HACKHACKHACKHACK) +@interface NSApplication (ITCoreGraphicsHacks) - (CGSConnectionID)contextID; -@end - - +@end \ No newline at end of file