2011-01-19 23:19:43 +03:00
|
|
|
//
|
|
|
|
// NSBezierPath_AMShading.h
|
|
|
|
// ------------------------
|
|
|
|
//
|
|
|
|
// Created by Andreas on 2005-06-01.
|
|
|
|
// Copyright 2005 Andreas Mayer. All rights reserved.
|
|
|
|
//
|
|
|
|
// based on http://www.cocoadev.com/index.pl?GradientFill
|
|
|
|
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
@interface NSBezierPath (AMShading)
|
|
|
|
|
2011-01-26 13:52:13 +03:00
|
|
|
- (void)customHorizontalFillWithCallbacks:(CGFunctionCallbacks) functionCallbacks firstColor:(NSColor *)firstColor secondColor:(NSColor *)secondColor;
|
|
|
|
- (void)customVerticalFillWithCallbacks:(CGFunctionCallbacks) functionCallbacks firstColor:(NSColor *)firstColor secondColor:(NSColor *)secondColor;
|
2011-01-19 23:19:43 +03:00
|
|
|
|
|
|
|
- (void)linearGradientFillWithStartColor:(NSColor *)startColor endColor:(NSColor *)endColor;
|
|
|
|
- (void)linearVerticalGradientFillWithStartColor:(NSColor *)startColor endColor:(NSColor *)endColor;
|
|
|
|
|
|
|
|
- (void)bilinearGradientFillWithOuterColor:(NSColor *)outerColor innerColor:(NSColor *)innerColor;
|
|
|
|
|
|
|
|
@end
|