darling-cocotron/CoreGraphics/CGGradient.h
2015-05-23 20:15:45 -04:00

17 lines
626 B
Objective-C

#import <CoreGraphics/CoreGraphicsExport.h>
#import <CoreGraphics/CGGeometry.h>
#import <CoreGraphics/CGColorSpace.h>
typedef struct CGGradient *CGGradientRef;
enum {
kCGGradientDrawsBeforeStartLocation = 0x01,
kCGGradientDrawsAfterEndLocation = 0x02
};
CGGradientRef CGGradientCreateWithColorComponents(CGColorSpaceRef colorSpace, const CGFloat components[], const CGFloat locations[], size_t count);
CGGradientRef CGGradientCreateWithColors(CGColorSpaceRef colorSpace, CFArrayRef colors, const CGFloat locations[]);
void CGGradientRelease(CGGradientRef self);
CGGradientRef CGGradientRetain(CGGradientRef self);