From 1244fd9e8593eaa84c537ea7749a7c4493bf1513 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Wed, 23 Oct 2013 16:26:34 +0200 Subject: Added gwinListSetScroll() --- include/gwin/list.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'include') 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 @@ -85,6 +92,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 * -- cgit v1.2.3