summaryrefslogtreecommitdiff
path: root/src/c_fl_progress.h
blob: d701806d8b58f977750a16e156078775d956288c (plain)
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


//  Programmed by Jedidiah Barber
//  Released into the public domain


#ifndef FL_PROGRESS_GUARD
#define FL_PROGRESS_GUARD




typedef void* PROGRESS;




extern "C" void progress_set_draw_hook(PROGRESS p, void * d);
extern "C" void fl_progress_draw(PROGRESS p);
extern "C" void progress_set_handle_hook(PROGRESS p, void * h);
extern "C" int fl_progress_handle(PROGRESS p, int e);




extern "C" PROGRESS new_fl_progress(int x, int y, int w, int h, char* label);
extern "C" void free_fl_progress(PROGRESS p);




extern "C" float fl_progress_get_minimum(PROGRESS p);
extern "C" void fl_progress_set_minimum(PROGRESS p, float t);
extern "C" float fl_progress_get_maximum(PROGRESS p);
extern "C" void fl_progress_set_maximum(PROGRESS p, float t);
extern "C" float fl_progress_get_value(PROGRESS p);
extern "C" void fl_progress_set_value(PROGRESS p, float t);


#endif