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

    rect

    The rectangle, specified in user space coordinates.

    context

    The 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

    rect

    The rectangle that defines the area for the ellipse to fit in.

    context

    The graphics context to draw on.

  • Paints a CGPathRef fill on the passed in CGContextRef.

    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

    path

    The CGPathRef instange to be drawn on the context

    context

    The graphics context to draw on.