22 #ifndef _GWIN_PROGRESSBAR_H
23 #define _GWIN_PROGRESSBAR_H
27 typedef struct GProgressbarObject {
34 #if GWIN_PROGRESSBAR_AUTO
59 #define gwinProgressbarCreate(w, pInit) gwinGProgressbarCreate(GDISP, w, pInit)
135 #define gwinProgressbarGetPosition(gh) (((GProgressbarObject *)(gh))->pos)
144 #define gwinProgressbarReset(gh) gwinProgressbarSetPosition(gh, ((GProgressbarObject *)(gh))->min)
146 #if GWIN_PROGRESSBAR_AUTO || defined(__DOXYGEN__)
199 #if GDISP_NEED_IMAGE || defined(__DOXYGEN__)
gI16 gCoord
The type for a coordinate or length on the screen.
#define gt(str)
A wrapper macro to make writing and reading translatable applications easier.
void gwinProgressbarSetRange(GHandle gh, int min, int max)
Set the progressbar range.
void gwinProgressbarStop(GHandle gh)
Stop the timer which is started by gwinProgressbarStart()
GHandle gwinGProgressbarCreate(GDisplay *g, GProgressbarObject *gb, const GWidgetInit *pInit)
Create a progressbar window.
void gwinProgressbarSetResolution(GHandle gh, int res)
Set the resolution for the incrementation and decrementation of the progressbar.
void gwinProgressbarSetPosition(GHandle gh, int pos)
Set the progressbar position.
void gwinProgressbarIncrement(GHandle gh)
Increment the progressbar value.
void gwinProgressbarDecrement(GHandle gh)
Decrement the progressbar value.
void gwinProgressbarStart(GHandle gh, gDelay delay)
Automatically increments the progress bar.
void gwinProgressbarDraw_Std(GWidgetObject *gw, void *param)
The default rendering function for the progressbar widget.
void gwinProgressbarDraw_Image(GWidgetObject *gw, void *param)
Renders a progressbar using an image.
A window object structure.