forked from mapbox/Fingertips
-
Notifications
You must be signed in to change notification settings - Fork 1
/
DSFingerTipWindow.h
30 lines (22 loc) · 1.43 KB
/
DSFingerTipWindow.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
//
// DSFingerTipWindow.h
//
// Created by Justin R. Miller on 3/29/11.
// Copyright 2011-2013 Development Seed. All rights reserved.
//
#import <UIKit/UIKit.h>
/** A DSFingerTipWindow gives you automatic presentation mode in your iOS app. Note that currently, this is only designed for the iPad 2 and iPhone 4S (or later), which feature hardware video mirroring support. This library does not do the mirroring for you!
*
* Use DSFingerTipWindow in place of UIWindow and your app will automatically determine when an external screen is available. It will show every touch on-screen with a nice partially-transparent graphic that automatically fades out when the touch ends. */
@interface DSFingerTipWindow : UIWindow
/** A custom image to use to show touches on screen. If unset, defaults to a partially-transparent stroked circle. */
@property (nonatomic, strong) UIImage *touchImage;
/** The alpha transparency value to use for the touch image. Defaults to 0.5. */
@property (nonatomic, assign) CGFloat touchAlpha;
/** The time over which to fade out touch images. Defaults to 0.3. */
@property (nonatomic, assign) NSTimeInterval fadeDuration;
/** If using the default touchImage, the color with which to stroke the shape. Defaults to black. */
@property (nonatomic, strong) UIColor *strokeColor;
/** If using the default touchImage, the color with whicih to fill the shape. Defaults to white. */
@property (nonatomic, strong) UIColor *fillColor;
@end