JubeatPlus 3.9.11
Loading...
Searching...
No Matches
PieChartView.h
Go to the documentation of this file.
1
8
9#import <UIKit/UIKit.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
13@class PieChartView;
14
18@protocol PieChartViewDelegate <NSObject>
19@optional
22@end
23
28@interface PieChartView : UIView
29
34@property(nonatomic, weak, nullable) id<PieChartViewDelegate> aDelegate;
35
42- (instancetype)initWithFrame:(CGRect)frame;
43
51- (void)setChartColor:(nullable UIColor *)chartColor
52 baseColor:(nullable UIColor *)baseColor
53 borderColor:(nullable UIColor *)borderColor;
54
60- (void)setBgColor:(nullable UIColor *)bgColor;
61
69- (void)setLineWidth:(float)lineWidth_
70 borderInside:(float)borderInside
71 borderOutsize:(float)borderOutsize;
72
78- (void)setPercent:(float)percent;
79
85- (void)startNextPercent:(float)percent;
86
91- (void)refreshDisplay;
92
93@end
94
95NS_ASSUME_NONNULL_END
96
97// code: language=Objective-C
98// kate: hl Objective-C;
99// vim: set ft=objc :
A ring that fills clockwise from the top to a percentage, over an optional base ring and inner/outer ...
Definition PieChartView.h:29
id< PieChartViewDelegate > aDelegate
The delegate told when the fill animation ends.
Definition PieChartView.h:34
void refreshDisplay()
Requests a redraw.
Definition PieChartView.m:137
void chartAnimationEnd()
The fill animation reached its target percentage.