forked from jgallen23/MilkMaid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
YRKSpinningProgressIndicator.h
56 lines (41 loc) · 1.13 KB
/
YRKSpinningProgressIndicator.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
//
// YRKSpinningProgressIndicator.h
//
// Copyright 2009 Kelan Champagne. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface YRKSpinningProgressIndicator : NSView {
int _position;
int _numFins;
BOOL _isAnimating;
NSTimer *_animationTimer;
NSThread *_animationThread;
NSColor *_foreColor;
NSColor *_backColor;
BOOL _drawBackground;
NSTimer *_fadeOutAnimationTimer;
BOOL _isFadingOut;
// For determinate mode
BOOL _isIndeterminate;
double _currentValue;
double _maxValue;
BOOL _usesThreadedAnimation;
}
- (void)stopAnimation:(id)sender;
- (void)startAnimation:(id)sender;
// Accessors
- (NSColor *)foreColor;
- (void)setForeColor:(NSColor *)value;
- (NSColor *)backColor;
- (void)setBackColor:(NSColor *)value;
- (BOOL)drawBackground;
- (void)setDrawBackground:(BOOL)value;
- (BOOL)isIndeterminate;
- (void)setIndeterminate:(BOOL)isIndeterminate;
- (double)doubleValue;
- (void)setDoubleValue:(double)doubleValue;
- (double)maxValue;
- (void)setMaxValue:(double)maxValue;
- (void)setUsesThreadedAnimation:(BOOL)useThreaded;
- (BOOL)usesThreadedAnimation;
@end