Making ITAboutWindowController header public.
[ITKit.git] / ITCoreGraphicsHacks.h
old mode 100755 (executable)
new mode 100644 (file)
index c9041c9..c77185d
@@ -1,8 +1,15 @@
-
-/*************************************************************************/
-#pragma mark -
-#pragma mark CoreGraphics HACKS
-/*************************************************************************/
+/*
+ *     ITKit
+ *     ITCoreGraphicsHacks.h
+ *
+ *     Header to import to work with private CoreGraphics API.
+ *
+ *     Copyright (c) 2005 by iThink Software.
+ *     All Rights Reserved.
+ *
+ *     $Id$
+ *
+ */
 
 typedef void * CGSGenericObj;
 typedef CGSGenericObj CGSValueObj;
@@ -10,26 +17,32 @@ 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);
+
+@interface NSApplication (ITCoreGraphicsHacks)
+- (CGSConnectionID)contextID;
+@end
\ No newline at end of file