-
Notifications
You must be signed in to change notification settings - Fork 2
/
SpeedometerView.h
62 lines (46 loc) · 1.35 KB
/
SpeedometerView.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
56
57
58
59
60
61
62
//
// SpeedometerView.h
// CycleAnalyst
//
// Created by Frank Schmitt on 2010-12-04.
// Copyright 2010 Laika Systems. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@interface SpeedometerNeedle : NSObject {
UIColor *tintColor_;
float length;
float width;
}
@property (nonatomic, retain) UIColor *tintColor;
@property (nonatomic, assign) float length;
@property (nonatomic, assign) float width;
- (void)drawLayer:(CALayer*)layer inContext:(CGContextRef)ctx;
@end
@interface SpeedometerView : UIView {
float minNumber;
float maxNumber;
double startAngle;
double arcLength;
CGFloat lineWidth;
float tickIncrement;
float minorTickIncrement;
float value;
UILabel *textLabel;
CALayer *needleLayer;
UILabel *label;
SpeedometerNeedle *needle_;
}
@property (nonatomic, assign) float minNumber;
@property (nonatomic, assign) float maxNumber;
@property (nonatomic, assign) double startAngle;
@property (nonatomic, assign) double arcLength;
@property (nonatomic, assign) CGFloat lineWidth;
@property (nonatomic, assign) float tickInset;
@property (nonatomic, assign) float tickLength;
@property (nonatomic, assign) float minorTickLength;
@property (nonatomic, assign) float value;
@property (nonatomic, readonly) UILabel *textLabel;
@property (nonatomic, readonly) SpeedometerNeedle *needle;
-(void)initialize;
@end