Files
panopainter/libs/libSonarPen/include/WTSonarPenTouchesHandler.h
2018-08-15 02:20:23 +02:00

29 lines
648 B
Objective-C
Executable File

//
// WTSonarPenTouchesHandler.h
//
// Created by Water Lou on 3/7/15.
// Copyright (c) 2015 First Water Tech Ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WTSonarPenTouchesHandler : NSObject
- (void)handleTouches:(UIEvent * _Nullable)event
view:(UIView * _Nonnull)view
penDown:(BOOL)penDownStatus;
// check if pen is down
- (BOOL)isPenDown;
// check if touch with large size touch
- (BOOL)isPalmTouchedBySize;
// get pen location if pen is down
- (CGPoint)penLocation;
// touch object that detect as pen
@property(readonly, nullable) UITouch *penTouch;
- (NSInteger)numberOfTouches;
@end