/
DCFrameView.h
executable file
·55 lines (38 loc) · 1.05 KB
/
DCFrameView.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
44
45
46
47
48
49
50
51
52
53
54
55
//
// DCFrameView.h
//
// Created by Domestic Cat on 29/04/11.
//
#import <QuartzCore/QuartzCore.h>
#import "DCCrossHairView.h"
@protocol DCFrameViewDelegate <NSObject>
@required
- (void)touchAtPoint:(CGPoint)point;
@end
@interface DCFrameView : UIView
{
}
@property (nonatomic, assign) id<DCFrameViewDelegate> delegate;
@property (nonatomic) CGRect mainRect;
@property (nonatomic) CGRect superRect;
@property (nonatomic, retain) UILabel *touchPointLabel;
@property (nonatomic, retain) NSMutableArray *rectsToOutline;
@property (nonatomic, retain) DCCrossHairView *touchPointView;
///////////
// Setup //
///////////
- (id)initWithFrame:(CGRect)frame delegate:(id)aDelegate;
////////////////////
// Custom Setters //
////////////////////
- (void)setMainRect:(CGRect)newMainRect;
- (void)setSuperRect:(CGRect)newSuperRect;
/////////////////////
// Drawing/Display //
/////////////////////
- (void)drawRect:(CGRect)rect;
////////////////////
// Touch Handling //
////////////////////
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
@end