forked from undees/brominet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTouchSynthesis.h
43 lines (36 loc) · 1.05 KB
/
TouchSynthesis.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// TouchSynthesis.h
// SelfTesting
//
// Created by Matt Gallagher on 23/11/08.
// Copyright 2008 Matt Gallagher. All rights reserved.
//
// Permission is given to use this source code file, free of charge, in any
// project, commercial or otherwise, entirely at your risk, with the condition
// that any redistribution (in part or whole) of source code must retain
// this copyright and permission notice. Attribution in compiled projects is
// appreciated but not required.
//
#import <UIKit/UIKit.h>
//
// UITouch (Synthesize)
//
// Category to allow creation and modification of UITouch objects.
//
@interface UITouch (Synthesize)
- (id)initInView:(UIView *)view;
- (id)initInView:(UIView *)view hitTest:(BOOL)hitTest;
- (void)setPhase:(UITouchPhase)phase;
- (void)setLocationInWindow:(CGPoint)location;
- (void)moveLocationInWindow;
- (void)moveLocationInWindowLeft;
@end
//
// UIEvent (Synthesize)
//
// A category to allow creation of a touch event.
//
@interface UIEvent (Synthesize)
- (id)initWithTouch:(UITouch *)touch;
- (void)moveLocation;
@end