CGGradient.h
1 #import <CoreGraphics/CGColorSpace.h> 2 #import <CoreGraphics/CGGeometry.h> 3 #import <CoreGraphics/CoreGraphicsExport.h> 4 5 typedef struct CGGradient *CGGradientRef; 6 7 typedef CF_ENUM(uint32_t, CGGradientDrawingOptions) 8 { 9 kCGGradientDrawsBeforeStartLocation = 0x01, 10 kCGGradientDrawsAfterEndLocation = 0x02 11 }; 12 13 CGGradientRef CGGradientCreateWithColorComponents(CGColorSpaceRef colorSpace, 14 const CGFloat components[], 15 const CGFloat locations[], 16 size_t count); 17 CGGradientRef CGGradientCreateWithColors(CGColorSpaceRef colorSpace, 18 CFArrayRef colors, 19 const CGFloat locations[]); 20 21 void CGGradientRelease(CGGradientRef self); 22 CGGradientRef CGGradientRetain(CGGradientRef self);