Removing the use of private CoreGraphics APIs to draw shadows, and replacing with...
[ITKit.git] / ITCoreImageWindowEffect.h
1 /*
2  *      ITKit
3  *      ITCoreImageWindowEffect.h
4  *
5  *      Effect subclass which performs a Core Image ripple effect on a window.
6  *
7  *      Copyright (c) 2005 iThink Software
8  *
9  */
10
11 #import <Cocoa/Cocoa.h>
12 #import <ITKit/ITWindowEffect.h>
13 #import "ITCoreGraphicsHacks.h"
14 #import <QuartzCore/QuartzCore.h>
15
16 @interface CICGSFilter : NSObject
17 {
18     void *_cid;
19     unsigned int _filter_id;
20 }
21
22 + (id)filterWithFilter:(CIFilter *)filter connectionID:(CGSConnectionID)cid;
23 - (id)initWithFilter:(CIFilter *)filter connectionID:(CGSConnectionID)cid;
24 - (void)dealloc;
25 - (void)setValue:(id)value forKey:(NSString *)key;
26 - (void)setValuesForKeysWithDictionary:(NSDictionary *)dict;
27 - (int)addToWindow:(CGSWindowID)windowID flags:(unsigned int)flags;
28 - (int)removeFromWindow:(CGSWindowID)windowID;
29 - (id)description;
30 @end
31
32 @interface ITCoreImageWindowEffect : ITWindowEffect {
33         NSWindow *_effectWindow;
34         CIFilter *_effectFilter;
35         CICGSFilter *_windowFilter;
36         BOOL _ripple;
37 }
38
39 @end