iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIHitTestable
@protocol ISCIHitTestable <NSObject>
Defines the base interface for a type which can be hit-tested.
-
Translates the point relative to the other
ISCIHitTestableelement.Declaration
Objective-C
- (CGPoint)translatePoint:(CGPoint)point hitTestable:(nonnull id<ISCIHitTestable>)hitTestable;Swift
func translate(_ point: CGPoint, hitTestable: any ISCIHitTestable) -> CGPointParameters
pointThe point which should be transformed.
hitTestableThe other
ISCIHitTestableto use when transforming the point.Return Value
The translated
CGPoint. -
Checks if the point is within the bound of the current
ISCIHitTestableelement.Declaration
Objective-C
- (BOOL)isPointWithinBounds:(CGPoint)point;Swift
func isPoint(withinBounds point: CGPoint) -> BoolParameters
pointThe point to test.
Return Value
YES - if the point is within bounds.
-
Checks if the point specified relative to another
ISCIHitTestableelement is within the bound of the currentISCIHitTestableelement.Declaration
Objective-C
- (BOOL)isPointWithinBounds:(CGPoint)point hitTestable:(nonnull id<ISCIHitTestable>)hitTestable;Swift
func isPoint(withinBounds point: CGPoint, hitTestable: any ISCIHitTestable) -> BoolParameters
pointThe point to test.
hitTestableThe other
ISCIHitTestableto use when checking the point.Return Value
YES if the point is within bounds.
-
Gets the bounds of the current
ISCIHitTestablerelative to the otherISCIHitTestableelement.Declaration
Objective-C
- (CGRect)getBoundsRelativeTo:(nonnull id<ISCIHitTestable>)hitTestable;Swift
func getBoundsRelative(to hitTestable: any ISCIHitTestable) -> CGRectParameters
hitTestableThe other
ISCIHitTestableto use when transforming the point.Return Value
The translated
CGRectbounds. -
Gets the
Viewinstance associated with thisISCIHitTestableelement.Declaration
Objective-C
@property (nonatomic, readonly, nonnull) UIView *view;Swift
var view: UIView { get }
View on GitHub