![]() |
µGFX
2.9
version 2.9
|
ProgressBar widget.
Modules | |
Renderings | |
Built-in rendering functions for the progressbar widget. | |
Functions | |
GHandle | gwinGProgressbarCreate (GDisplay *g, GProgressbarObject *gb, const GWidgetInit *pInit) |
Create a progressbar window. More... | |
void | gwinProgressbarSetRange (GHandle gh, int min, int max) |
Set the progressbar range. More... | |
void | gwinProgressbarSetPosition (GHandle gh, int pos) |
Set the progressbar position. More... | |
void | gwinProgressbarSetResolution (GHandle gh, int res) |
Set the resolution for the incrementation and decrementation of the progressbar. More... | |
void | gwinProgressbarIncrement (GHandle gh) |
Increment the progressbar value. More... | |
void | gwinProgressbarDecrement (GHandle gh) |
Decrement the progressbar value. More... | |
void | gwinProgressbarStart (GHandle gh, gDelay delay) |
Automatically increments the progress bar. More... | |
void | gwinProgressbarStop (GHandle gh) |
Stop the timer which is started by gwinProgressbarStart() More... | |
Macros | |
#define | gwinProgressbarGetPosition(gh) (((GProgressbarObject *)(gh))->pos) |
Get the current progressbar position. More... | |
#define | gwinProgressbarReset(gh) gwinProgressbarSetPosition(gh, ((GProgressbarObject *)(gh))->min) |
Reset the progressbar to the minimum position. More... | |
GHandle gwinGProgressbarCreate | ( | GDisplay * | g, |
GProgressbarObject * | gb, | ||
const GWidgetInit * | pInit | ||
) |
Create a progressbar window.
[in] | g | The GDisplay to display this window on |
[in] | gb | The GProgressbarObject structure to initialise. If this is NULL the structure is dynamically allocated. |
[in] | pInit | The initialization parameters to use |
gwinSetDefaultColor()
or gwinSetDefaultBgColor()
then these are GFX_WHITE and GFX_BLACK respectively. gwinSetDefaultFont()
then there is no default font and text drawing operations will no nothing. Definition at line 78 of file gwin_progressbar.c.
void gwinProgressbarDecrement | ( | GHandle | gh | ) |
Decrement the progressbar value.
Decrements by the resolution set through gwinProgressbarSetResolution()
[in] | gh | The window handle (must be a progressbar window) |
Definition at line 165 of file gwin_progressbar.c.
References GWindowObject::vmt.
void gwinProgressbarIncrement | ( | GHandle | gh | ) |
Increment the progressbar value.
Increments by the resolution set through gwinProgressbarSetResolution()
[in] | gh | The window handle (must be a progressbar window) |
Definition at line 149 of file gwin_progressbar.c.
References GWindowObject::vmt.
void gwinProgressbarSetPosition | ( | GHandle | gh, |
int | pos | ||
) |
Set the progressbar position.
[in] | gh | The window handle (must be a progressbar window) |
[in] | pos | The new position |
Definition at line 122 of file gwin_progressbar.c.
References GWindowObject::vmt.
void gwinProgressbarSetRange | ( | GHandle | gh, |
int | min, | ||
int | max | ||
) |
Set the progressbar range.
[in] | gh | The window handle (must be a progressbar window) |
[in] | min | The minimum value |
[in] | max | The maximum value |
Definition at line 97 of file gwin_progressbar.c.
References GWindowObject::vmt.
void gwinProgressbarSetResolution | ( | GHandle | gh, |
int | res | ||
) |
Set the resolution for the incrementation and decrementation of the progressbar.
[in] | gh | The window handle (must be a progressbar window) |
[in] | res | The resolution to be set |
Definition at line 138 of file gwin_progressbar.c.
References GWindowObject::vmt.
void gwinProgressbarStart | ( | GHandle | gh, |
gDelay | delay | ||
) |
Automatically increments the progress bar.
[in] | gh | The window handle (must be a progressbar window) |
[in] | delay | The incrementation delay (in milliseconds) |
void gwinProgressbarStop | ( | GHandle | gh | ) |
Stop the timer which is started by gwinProgressbarStart()
[in] | gh | The window handle (must be a progressbar window) |
#define gwinProgressbarGetPosition | ( | gh | ) | (((GProgressbarObject *)(gh))->pos) |
Get the current progressbar position.
[in] | gh | The window handle (must be a progressbar window) |
Definition at line 135 of file gwin_progressbar.h.
#define gwinProgressbarReset | ( | gh | ) | gwinProgressbarSetPosition(gh, ((GProgressbarObject *)(gh))->min) |
Reset the progressbar to the minimum position.
[in] | gh | The window handle (must be a progressbar window) |
Definition at line 144 of file gwin_progressbar.h.