-
Notifications
You must be signed in to change notification settings - Fork 17
/
progressIndicator.h
29 lines (15 loc) · 1.12 KB
/
progressIndicator.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
#import <Cocoa/Cocoa.h>
// typedef void (*callback)(void);
typedef void* ProgressIndicatorPtr;
ProgressIndicatorPtr ProgressIndicator_New(int x, int y, int width, int height);
void ProgressIndicator_StartAnimation(ProgressIndicatorPtr progressIndicatorPtr);
void ProgressIndicator_StopAnimation(ProgressIndicatorPtr progressIndicatorPtr);
void ProgressIndicator_SetLimits(ProgressIndicatorPtr progressIndicatorPtr, double minValue, double maxValue);
void ProgressIndicator_SetValue(ProgressIndicatorPtr progressIndicatorPtr, double value);
void ProgressIndicator_IncrementBy(ProgressIndicatorPtr progressIndicatorPtr, double value);
void ProgressIndicator_SetIsIndeterminate(ProgressIndicatorPtr progressIndicatorPtr, int value);
int ProgressIndicator_IsIndeterminate(ProgressIndicatorPtr progressIndicatorPtr);
void ProgressIndicator_SetDisplayedWhenStopped(ProgressIndicatorPtr progressIndicatorPtr, int value);
void ProgressIndicator_Show(ProgressIndicatorPtr progressIndicatorPtr);
void ProgressIndicator_Hide(ProgressIndicatorPtr progressIndicatorPtr);
void ProgressIndicator_Remove(ProgressIndicatorPtr progressIndicatorPtr);