diff options
Diffstat (limited to 'include/gwin/list.h')
-rw-r--r-- | include/gwin/list.h | 19 |
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 |