Fixed a possible crasher where an ITMultilineTextFieldCell is treated as
[ITKit.git] / ITCoreGraphicsHacks.h
1 /*
2  *      ITKit
3  *  ITCoreGraphicsHacks
4  *    Header to import to work with private CoreGraphics API
5  *
6  *  Original Author : Matthew Judy <mjudy@ithinksw.com>
7  *   Responsibility : Matthew Judy <mjudy@ithinksw.com>
8  *
9  *  Copyright (c) 2002 - 2003 iThink Software.
10  *  All Rights Reserved
11  *
12  */
13
14
15 /*************************************************************************/
16 #pragma mark -
17 #pragma mark CoreGraphics HACK HACK HACK
18 /*************************************************************************/
19
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 {
26     unsigned int version;
27     float elevation;
28     float azimuth;
29     float ambient;
30     float height;
31     float radius;
32     float saturation;
33 } CGShadowStyle;
34 typedef unsigned char CGSBoolean;
35 enum {
36     kCGSFalse = 0,
37     kCGSTrue  = 1
38 };
39
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);
48                                         
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);
51
52
53 /*************************************************************************/
54 #pragma mark -
55 #pragma mark NSApplication HACK HACK HACK
56 /*************************************************************************/
57
58 @interface NSApplication (HACKHACKHACKHACK)
59 - (CGSConnectionID)contextID;
60 @end
61
62