-
Notifications
You must be signed in to change notification settings - Fork 0
/
SWGradientFillAdditions.h
41 lines (28 loc) · 1.11 KB
/
SWGradientFillAdditions.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
//
// NSBezierPath (SWGradientAdditions).h
// This file is part of the "SWApplicationSupport" project, and is distributed under the MIT License.
//
// Created by Samuel Williams on 18/06/06.
// Copyright 2006 Samuel Williams. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
@interface CIVector (SWConstructorsAddition)
+ (CIVector*) vectorWithSize: (NSSize)size;
+ (CIVector*) vectorWithPoint: (NSPoint)point;
- (float) lesserX: (CIVector*)other;
- (float) lesserY: (CIVector*)other;
- (float) lesserZ: (CIVector*)other;
- (float) lesserW: (CIVector*)other;
- (CIVector*) bottomLeft: (CIVector*)other;
@property (nonatomic, readonly) CGPoint toCGPoint;
@end
@interface NSBezierPath (SWGradientAdditions)
- (void)fillGradientFrom: (CIVector*)startVector color:(NSColor*)inStartColor to: (CIVector*)endVector color:(NSColor*)inEndColor;
- (void) fillVerticalGradientTop: (NSColor*)top bottom: (NSColor*)bottom;
- (void) fillHorizontalGradientLeft: (NSColor*)left right: (NSColor*)right;
@end
/* An example of how to draw a gradient in a view */
@interface SWGradientView : NSView {
}
@end