diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-04-23 23:39:12 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-04-23 23:39:12 +0200 |
commit | 5c3779cf79616539840baae000797a731ed43127 (patch) | |
tree | 859f39c249ca888205792c8c721534e817ee88f4 /src | |
parent | 8169a0453b77364a0ef804f43762cc5675f450bf (diff) | |
download | uGFX-5c3779cf79616539840baae000797a731ed43127.tar.gz uGFX-5c3779cf79616539840baae000797a731ed43127.tar.bz2 uGFX-5c3779cf79616539840baae000797a731ed43127.zip |
Added gwinProgressbarReset()
Diffstat (limited to 'src')
-rw-r--r-- | src/gwin/progressbar.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gwin/progressbar.h b/src/gwin/progressbar.h index 1b7e4424..fcf76b12 100644 --- a/src/gwin/progressbar.h +++ b/src/gwin/progressbar.h @@ -138,6 +138,15 @@ void gwinProgressbarDecrement(GHandle gh); */ #define gwinProgressbarGetPosition(gh) (((GProgressbarObject *)(gh))->pos) + /** + * @brief Reset the progressbar to the minimum position + * + * @param[in] gh The window handle (must be a progressbar window) + * + * @api + */ +#define gwinProgressbarReset(gh) gwinProgressbarSetPosition(gh, ((GProgressbarObject *)(gh))->min) + /** * @brief Automatically increments the progress bar * |