aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--releases.txt2
-rw-r--r--src/gwin/progressbar.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/releases.txt b/releases.txt
index 9d2aa386..d13d8bc4 100644
--- a/releases.txt
+++ b/releases.txt
@@ -21,7 +21,7 @@ DEPRECTATE: Old image opening functions deprecated.
FEATURE: Restructure and simplify the include path for GFX
FEATURE: Added LGDP4532 driver by user shilow
FEATURE: Support for ChibiOS/RT 3.x
-FEATURE: Added gwinProgressbarStop()
+FEATURE: Added gwinProgressbarStop() and gwinProgressbarReset()
*** changes after 1.9 ***
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
*