00001
00005
00006
00007
00008
00009
00010
00011
00012
00013 typedef struct progress_bar {
00014 char *pblabel;
00015 float x1;
00016 float y1;
00017 float x2;
00018 float y2;
00019 float line_thickness;
00020 float width;
00021 float height;
00022 float rx;
00023 float ry;
00024 float bar_width;
00025 float increment;
00026 int counter;
00027 _Bool done;
00028 ALLEGRO_COLOR out_color;
00029 ALLEGRO_COLOR in_color;
00030 struct progress_bar *nextbar;
00031 struct progress_bar *prevbar;
00032 } PROGRESSBAR, *PROGRESSBARPTR;
00033
00034
00035
00036 PROGRESSBARPTR get_first_element_from_progress_bar_list(void);
00037
00038
00039
00040 PROGRESSBARPTR set_first_element_in_progress_bar_list(PROGRESSBARPTR *newfirst);
00041
00042
00043
00044 PROGRESSBARPTR create_new_progress_bar(char *label, float x, float y, float width, float height, float rx,
00045 float ry, ALLEGRO_COLOR out_color, ALLEGRO_COLOR in_color,
00046 float thickness, _Bool add_to_list);
00047
00048
00049
00050 PROGRESSBARPTR add_element_to_progress_bar_list(PROGRESSBARPTR *progbar);
00051
00052
00053
00054 PROGRESSBARPTR remove_element_from_progress_bar_list(char *label);
00055
00056
00057
00058 PROGRESSBARPTR search_progress_bar_list_for_element(char *label);
00059
00060
00061
00062 void render_progress_bars(void);
00063
00064
00065
00066 _Bool empty_progress_bar_list(PROGRESSBARPTR firstptr);
00067
00068
00069
00070
00071
00072