aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-10-23 16:26:34 +0200
committerinmarket <andrewh@inmarket.com.au>2013-10-24 09:14:27 +1000
commit8fce1a6fcef51f171d5fd9ed381583507b361210 (patch)
treed2bf04fe2692c438d047a99c0561bbed565f6edb /include/gwin
parent6cc80926f00ce8d6533298cbb5ea061c1446287b (diff)
downloaduGFX-8fce1a6fcef51f171d5fd9ed381583507b361210.tar.gz
uGFX-8fce1a6fcef51f171d5fd9ed381583507b361210.tar.bz2
uGFX-8fce1a6fcef51f171d5fd9ed381583507b361210.zip
Added gwinListSetScroll
Diffstat (limited to 'include/gwin')
-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