aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin/list.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-10-23 16:26:34 +0200
committerJoel Bodenmann <joel@unormal.org>2013-10-23 16:26:34 +0200
commit1244fd9e8593eaa84c537ea7749a7c4493bf1513 (patch)
treeb03e03ae37fe889235cc4cf041c547d2d0ae6c77 /include/gwin/list.h
parent2e64bddee588c4a3ee7ba89e7257b8828b399cc4 (diff)
downloaduGFX-1244fd9e8593eaa84c537ea7749a7c4493bf1513.tar.gz
uGFX-1244fd9e8593eaa84c537ea7749a7c4493bf1513.tar.bz2
uGFX-1244fd9e8593eaa84c537ea7749a7c4493bf1513.zip
Added gwinListSetScroll()
Diffstat (limited to 'include/gwin/list.h')
-rw-r--r--include/gwin/list.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/gwin/list.h b/include/gwin/list.h
index 05433e87..cba5b137 100644
--- a/include/gwin/list.h
+++ b/include/gwin/list.h
@@ -56,6 +56,13 @@ typedef struct GListObject {
gfxQueueASync list_head; // The list of items
} GListObject;
+/**
+ * @brief Enum to change the behaviour of the scroll area
+ *
+ * @note This might be used with @p gwinListSetScroll()
+ */
+typedef enum scroll_t { scrollAlways, scrollAuto } scroll_t;
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -86,6 +93,18 @@ extern "C" {
GHandle gwinListCreate(GListObject *widget, GWidgetInit *pInit, bool_t multiselect);
/**
+ * @brief Change the behaviour of the scroll area
+ *
+ * @note Current possible values: @p scrollAlways and @p scrollAuto
+ *
+ * @param[in] gh The widget handle (must be a list handle)
+ * @param[in] flag The behaviour to be set
+ *
+ * @api
+ */
+void gwinListSetScroll(GHandle gh, scroll_t flag);
+
+/**
* @brief Add an item to the list
*
* @note The ID you get returned is not static. If items get removed from the list, the list items get