iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

ISCIResizingGrip

@protocol ISCIResizingGrip <NSObject>

Defines the protocol for Resizing Grip which is used to resize ISCIAnnotation instance.

  • Draw this resizing grip at specified point.

    Declaration

    Objective-C

    - (void)onDrawGripAt:(CGPoint)point inCGContext:(CGContextRef)context;

    Swift

    func onDraw(at point: CGPoint, in context: CGContext!)

    Parameters

    point

    The coordinates of point to draw in pixels.

    context

    The CGContext to draw resizing grip on.

  • Checks whether this reising grip is hit.

    Declaration

    Objective-C

    - (BOOL)isHitAtPoint:(CGPoint)hitPoint andDrawnPoint:(CGPoint)drawnPoint;

    Swift

    func isHit(at hitPoint: CGPoint, andDrawnPoint drawnPoint: CGPoint) -> Bool

    Parameters

    hitPoint

    The hit test point in pixels.

    drawnPoint

    The point where resizing grip was drawn.

    Return Value

    YES - if hit test point is within resizing grip, otherwise NO;