2 // NSBezierPath_AMShading.h
3 // ------------------------
5 // Created by Andreas on 2005-06-01.
6 // Copyright 2005 Andreas Mayer. All rights reserved.
8 // based on http://www.cocoadev.com/index.pl?GradientFill
11 #import <Cocoa/Cocoa.h>
14 @interface
NSBezierPath (AMShading
)
16 - (void)customHorizontalFillWithCallbacks
:(CGFunctionCallbacks
)functionCallbacks firstColor
:(NSColor
*)firstColor secondColor
:(NSColor
*)secondColor
;
18 - (void)linearGradientFillWithStartColor
:(NSColor
*)startColor endColor
:(NSColor
*)endColor
;
20 - (void)bilinearGradientFillWithOuterColor
:(NSColor
*)outerColor innerColor
:(NSColor
*)innerColor
;