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:(nonnull CGContextRef)context;Swift
func onDraw(at point: CGPoint, in context: CGContext)Parameters
pointThe coordinates of point to draw in pixels.
contextThe
CGContextto 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) -> BoolParameters
hitPointThe hit test point in pixels.
drawnPointThe point where resizing grip was drawn.
Return Value
YES - if hit test point is within resizing grip, otherwise NO;
-
Draw this resizing custom grip at specified point.
Declaration
Objective-C
- (void)onDrawCustomGripAt:(CGContextRef _Nonnull)context imgGrip:(UIImage *_Nonnull)imgGrip isHorizontal:(BOOL)isHorizontal drawRect:(CGRect)drawRect;Swift
func onDrawCustomGrip(at context: CGContext, imgGrip: UIImage, isHorizontal: Bool, draw drawRect: CGRect)Parameters
contextThe
CGContextto draw resizing grip on.imgGripThe custom
UIImageto draw.isHorizontalBOOL flag to determine chart is horizontal or vertical
drawRectThe
CGRectto draw grip. -
Checks whether this reising grip is hit.
Declaration
Objective-C
- (BOOL)customGripIsHitAtPoint:(CGPoint)hitPoint andDrawnFrame:(CGRect)drawnFrame;Swift
func customGripIsHit(at hitPoint: CGPoint, andDrawnFrame drawnFrame: CGRect) -> BoolParameters
hitPointThe hit test point in pixels.
drawnFrameThe frame where resizing grip was drawn.
Return Value
YES - if hit test point is within resizing grip, otherwise NO;
-
Draws the grip helper when the window gap is too small for standard grips.
Declaration
Objective-C
- (void)onDrawGripHelper:(CGContextRef _Nonnull)context pointX1:(CGFloat)pointX1 pointX2:(CGFloat)pointX2 size:(CGSize)size isHorizontal:(BOOL)isHorizontal;Swift
func onDrawHelper(_ context: CGContext, pointX1: CGFloat, pointX2: CGFloat, size: CGSize, isHorizontal: Bool)Parameters
contextThe
CGContextto draw resizing grip on.pointX1The X1 coordinate of point to draw in pixels.
pointX2The X2 coordinate of point to draw in pixels.
sizeThe size of the helper grip to draw in pixels.
isHorizontalBOOL flag to determine chart is horizontal or vertical
View on GitHub