diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-10-23 16:26:34 +0200 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-10-24 09:14:27 +1000 |
commit | 8fce1a6fcef51f171d5fd9ed381583507b361210 (patch) | |
tree | d2bf04fe2692c438d047a99c0561bbed565f6edb /include/gwin | |
parent | 6cc80926f00ce8d6533298cbb5ea061c1446287b (diff) | |
download | uGFX-8fce1a6fcef51f171d5fd9ed381583507b361210.tar.gz uGFX-8fce1a6fcef51f171d5fd9ed381583507b361210.tar.bz2 uGFX-8fce1a6fcef51f171d5fd9ed381583507b361210.zip |
Added gwinListSetScroll
Diffstat (limited to 'include/gwin')
-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 |