-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNSBezierPath_AMShading.h
27 lines (19 loc) · 1.04 KB
/
NSBezierPath_AMShading.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
//
// NSBezierPath_AMShading.h
// ShadingTest
//
// Created by Andreas on 2005-06-01.
// Copyright 2005 Andreas Mayer. All rights reserved.
//
// based on http://www.cocoadev.com/index.pl?GradientFill
// 2005-12-05 Andreas Mayer
// - for some reason the method for drawing a vertical shading was called customHorizontalFillWith...
// fixed this. It's -customVerticalFillWithCallbacks:firstColor:secondColor: now.
#import <Cocoa/Cocoa.h>
@interface NSBezierPath (AMShading)
- (void)linearGradientFillWithStartColor:(NSColor *)startColor endColor:(NSColor *)endColor;
- (void)bilinearGradientFillWithOuterColor:(NSColor *)outerColor innerColor:(NSColor *)innerColor;
- (void)sweptGradientFillWithStartColor:(NSColor *)startColor endColor:(NSColor *)endColor;
- (void)customVerticalFillWithCallbacks:(CGFunctionCallbacks)functionCallbacks firstColor:(NSColor *)firstColor secondColor:(NSColor *)secondColor;
- (void)customSweptFillWithCallbacks:(CGFunctionCallbacks)functionCallbacks firstColor:(NSColor *)firstColor secondColor:(NSColor *)secondColor;
@end