-
Notifications
You must be signed in to change notification settings - Fork 9
/
SSPieProgressView.h
executable file
·84 lines (62 loc) · 1.65 KB
/
SSPieProgressView.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//
// SSPieProgressView.h
// SSToolkit
//
// Created by Sam Soffes on 4/22/10.
// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
/**
Pie chart style progress pie chart similar to the one in Xcode 3's status bar.
*/
@interface SSPieProgressView : UIView
///---------------------------
///@name Managing the Progress
///---------------------------
/**
The current progress shown by the receiver.
The current progress is represented by a floating-point value between `0.0` and `1.0`, inclusive, where `1.0` indicates
the completion of the task. Values less than `0.0` and greater than `1.0` are pinned to those limits.
The default value is `0.0`.
*/
@property (nonatomic, assign) CGFloat progress;
///-------------------------------------
/// @name Configuring the Pie Appearance
///-------------------------------------
/**
The outer border width.
The default is `2.0`.
*/
@property (nonatomic, assign) CGFloat pieBorderWidth;
/**
The outer border color.
@see defaultPieColor
*/
@property (nonatomic, strong) UIColor *pieBorderColor;
/**
The inner border width.
The default is `2.0`.
*/
@property (nonatomic, assign) CGFloat pieInnerBorderWidth;
/**
The inner border color.
@see defaultPieColor
*/
@property (nonatomic, strong) UIColor *pieInnerBorderColor;
/**
The fill color.
@see defaultPieColor
*/
@property (nonatomic, strong) UIColor *pieFillColor;
/**
The background color.
The default is white.
*/
@property (nonatomic, strong) UIColor *pieBackgroundColor;
///---------------
/// @name Defaults
///---------------
/**
The default value of `pieBorderColor` and `pieFillColor`.
*/
+ (UIColor *)defaultPieColor;
@end