iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIFillPaint
@protocol ISCIFillPaint <NSObject>
Defines a protocol which provides a way to fill rect, ellipse or CGPathRef on CGContextRef.
-
Paints a rectangle fill on the
CGContextRef.Declaration
Objective-C
- (void)fillRect:(CGRect)rect inContext:(nonnull CGContextRef)context;Swift
func fill(_ rect: CGRect, in context: CGContext)Parameters
rectThe rectangle, specified in user space coordinates.
contextThe graphics context to draw on.
-
Paints the ellipse fill that fits inside the specified
rect.Declaration
Objective-C
- (void)fillEllipseInRect:(CGRect)rect inContext:(nonnull CGContextRef)context;Swift
func fillEllipse(in rect: CGRect, in context: CGContext)Parameters
rectThe rectangle that defines the area for the ellipse to fit in.
contextThe graphics context to draw on.
-
Paints a
CGPathReffill on the passed inCGContextRef.Declaration
Objective-C
- (void)fillPath:(nonnull CGPathRef)path insideRect:(CGRect)rect inContext:(nonnull CGContextRef)context;Swift
func fill(_ path: CGPath, inside rect: CGRect, in context: CGContext)Parameters
pathThe
CGPathRefinstange to be drawn on thecontextcontextThe graphics context to draw on.
View on GitHub