-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathPrompterView.h
More file actions
44 lines (37 loc) · 1.01 KB
/
PrompterView.h
File metadata and controls
44 lines (37 loc) · 1.01 KB
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
//
// PrompterView.h
// GreatTeleprompter
//
// Created by Scott Means on 6/11/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PrompterView : UIView {
NSString *theSpeech;
float speechOffset;
CGSize baseSize;
NSTimer *tickTimer;
bool paused;
CGPoint lastTouchPos;
float baseTouchGap;
CFTimeInterval lastTouchTime;
float scrollVelocity;
NSMutableSet *currentTouches;
bool blackOnWhite;
}
@property (nonatomic, retain) NSString *theSpeech;
@property (nonatomic, assign) bool paused;
@property (nonatomic, retain) NSMutableSet *currentTouches;
@property (nonatomic, readonly) float touchGap;
@property (nonatomic, readonly) UIFont *currentFont;
@property (nonatomic, assign) float speechOffset;
- (void)timerTick:(NSTimer*)theTimer;
- (void)initTouchInfo;
- (void)recalcMetrics;
#define TICK_INTERVAL .05
#define DEFAULT_FONT_SIZE 36.0
#define MIN_FONT_SIZE 8.0
#define MAX_FONT_SIZE 100.0
#define FONT_SIZE_KEY @"FontSize"
#define BOW_KEY @"BlackOnWhite"
@end