From 5c3779cf79616539840baae000797a731ed43127 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Wed, 23 Apr 2014 23:39:12 +0200 Subject: Added gwinProgressbarReset() --- src/gwin/progressbar.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gwin') 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 * -- cgit v1.2.3