aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/progressbar.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-04-23 23:58:38 +0200
committerJoel Bodenmann <joel@unormal.org>2014-04-23 23:58:38 +0200
commit43a143588c8c62ab1474b896d5afd6c2bf11a8f3 (patch)
treed59054811f896ba6c9e9d34bd08c16bfa685ea21 /src/gwin/progressbar.h
parentc88e25b84fa8d18942df56592cec68f8371a8d41 (diff)
parenta34c0ded1873121431eed41210b7f44c8271ac0a (diff)
downloaduGFX-43a143588c8c62ab1474b896d5afd6c2bf11a8f3.tar.gz
uGFX-43a143588c8c62ab1474b896d5afd6c2bf11a8f3.tar.bz2
uGFX-43a143588c8c62ab1474b896d5afd6c2bf11a8f3.zip
Merge branch 'master' into gwin
Diffstat (limited to 'src/gwin/progressbar.h')
-rw-r--r--src/gwin/progressbar.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gwin/progressbar.h b/src/gwin/progressbar.h
index de10783f..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
*
@@ -156,6 +165,15 @@ void gwinProgressbarDecrement(GHandle gh);
void gwinProgressbarStart(GHandle gh, delaytime_t delay);
/**
+ * @brief Stop the timer which is started by @p gwinProgressbarStart()
+ *
+ * @param[in] gh The window handle (must be a progressbar window)
+ *
+ * @api
+ */
+void gwinProgressbarStop(GHandle gh);
+
+/**
* @brief Some custom progressbar drawing routines
* @details These function may be passed to @p gwinSetCustomDraw() to get different progressbar drawing styles
*