summaryrefslogtreecommitdiff
path: root/platform/ios/test/MGLMockGestureRecognizers.h
blob: 29889e39f4e43e2d000566657713f5cf67dbfe96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

#import <UIKit/UIKit.h>

@interface UIPinchGestureRecognizerMock : UIPinchGestureRecognizer
@property (nonatomic, readwrite) CGFloat velocity;
@property (nonatomic) CGPoint locationInViewOverride;
@property(nonatomic, readwrite) UIGestureRecognizerState state;
@end

@interface UIRotationGestureRecognizerMock : UIRotationGestureRecognizer
@property(nonatomic, readwrite) UIGestureRecognizerState state;
@end

@interface UITapGestureRecognizerMock : UITapGestureRecognizer
@property (strong, nonatomic) UIView *mockTappedView;
@property (assign) CGPoint mockTappedPoint;
@end

@interface UILongPressGestureRecognizerMock : UILongPressGestureRecognizer
@property(nonatomic, readwrite) UIGestureRecognizerState state;
@property (assign) CGPoint mockTappedPoint;
@end

@interface UIPanGestureRecognizerMock : UIPanGestureRecognizer
@property(nonatomic, readwrite) UIGestureRecognizerState state;
@property (assign) CGPoint firstFingerPoint;
@property (assign) CGPoint secondFingerPoint;
@property(nonatomic, readwrite) NSUInteger numberOfTouches;
@end