This repository has been archived by the owner on Apr 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 614
/
CAFilter.h
68 lines (64 loc) · 2.33 KB
/
CAFilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**
* This header is generated by class-dump-z 0.2-1.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: /System/Library/Frameworks/QuartzCore.framework/QuartzCore
*/
#import "QuartzCore-Structs.h"
#import "NSMutableCopying.h"
#import <Foundation/NSObject.h>
#import "NSCopying.h"
@class NSString;
@interface CAFilter : NSObject <NSCopying, NSMutableCopying> {
@private
unsigned _type;
NSString* _name;
unsigned _flags;
CAAttrListRef _attr;
void* _cache;
}
@property(assign) BOOL cachesInputImage;
@property(assign, getter=isEnabled) BOOL enabled;
@property(copy) NSString* name;
@property(readonly, assign) NSString* type;
// ["multiplyColor","multiplyGradient","gaussianBlur","pageCurl","fog","lighting","clear","copy",
// "sourceOver","sourceIn","sourceOut","sourceAtop","destOver","destIn","destOut","destAtop","xor","plusL","multiply"]
+(NSArray*)filterTypes;
+(CAFilter*)filterWithType:(NSString*)type;
+(CAFilter*)filterWithName:(NSString*)name;
-(id)initWithType:(NSString*)type;
-(id)initWithName:(NSString*)name;
-(BOOL)enabled;
-(void)setValue:(id)value forKey:(id)key;
-(id)valueForKey:(id)key;
-(void)setDefaults;
// inherited: -(void)dealloc;
-(Object*)CA_copyRenderValue;
// in a protocol: -(id)copyWithZone:(NSZone*)zone;
// in a protocol: -(id)mutableCopyWithZone:(NSZone*)zone;
-(void)willChangeValueForKey:(id)key;
-(void)didChangeValueForKey:(id)key;
@end
extern NSString* const kCAFilterClear;
extern NSString* const kCAFilterCopy;
extern NSString* const kCAFilterDestAtop;
extern NSString* const kCAFilterDestIn;
extern NSString* const kCAFilterDestOut;
extern NSString* const kCAFilterDestOver;
extern NSString* const kCAFilterFog;
extern NSString* const kCAFilterGaussianBlur;
extern NSString* const kCAFilterLanczos;
extern NSString* const kCAFilterLighting;
extern NSString* const kCAFilterLinear;
extern NSString* const kCAFilterMultiply;
extern NSString* const kCAFilterMultiplyColor;
extern NSString* const kCAFilterMultiplyGradient;
extern NSString* const kCAFilterNearest;
extern NSString* const kCAFilterPageCurl;
extern NSString* const kCAFilterPlusL;
extern NSString* const kCAFilterSourceAtop;
extern NSString* const kCAFilterSourceIn;
extern NSString* const kCAFilterSourceOut;
extern NSString* const kCAFilterSourceOver;
extern NSString* const kCAFilterTrilinear;
extern NSString* const kCAFilterXor;