aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/list.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-04-27 16:24:13 +0200
committerJoel Bodenmann <joel@unormal.org>2014-04-27 16:24:13 +0200
commit85dd732c2b78dabfe4edf4f74c3a82fccd42275c (patch)
tree9144492b57a281855cf721faf03e41ae6f5e9392 /src/gwin/list.h
parent43a143588c8c62ab1474b896d5afd6c2bf11a8f3 (diff)
parent8b4ca720369d790ea330bc2189efa05cc557c2f7 (diff)
downloaduGFX-85dd732c2b78dabfe4edf4f74c3a82fccd42275c.tar.gz
uGFX-85dd732c2b78dabfe4edf4f74c3a82fccd42275c.tar.bz2
uGFX-85dd732c2b78dabfe4edf4f74c3a82fccd42275c.zip
Merge branch 'master' into gwin
Diffstat (limited to 'src/gwin/list.h')
-rw-r--r--src/gwin/list.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gwin/list.h b/src/gwin/list.h
index eb800439..2cc525a2 100644
--- a/src/gwin/list.h
+++ b/src/gwin/list.h
@@ -103,6 +103,20 @@ GHandle gwinGListCreate(GDisplay *g, GListObject *widget, GWidgetInit *pInit, bo
#define gwinListCreate(w, pInit, m) gwinGListCreate(GDISP, w, pInit, m)
/**
+ * @brief Enable or disable the rendering of the list
+ *
+ * @details Usually the list is being re-rendered when an item is added to the list. This can cause
+ * flickering and performance issues when many items are added at once. This can be prevented
+ * by temporarely disabling the render using this function.
+ *
+ * @param[in] gh The widget handle (must be a list handle)
+ * @param[in] ena TRUE or FALSE
+ *
+ * @api
+ */
+void gwinListEnableRender(GHandle gh, bool_t ena);
+
+/**
* @brief Change the behaviour of the scroll bar
*
* @note Current possible values: @p scrollAlways, @p scrollAuto and @p scrollSmooth