Macaw OS C reference

Function ui_progress

#include <macawui.h>
void ui_progress(double fraction, const char *label);

Shows a progress bar, for how far through something you are.

Parameters

fractiondouble
How full the bar is, from 0 (empty) to 1 (full).
labelconst char *
Text in the middle of the bar, like "50%". NULL for none.

In Widgets, with ui_label, ui_heading, ui_separator, ui_button, ui_checkbox, ui_radio, ui_slider, ui_textbox, ui_textboxex, ui_listbox, ui_dropdown, ui_tabs, ui_swatches, ui_image.