From 25f769ba09bef54e5cccf40bb7ed9d7f3dcca8a1 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Mon, 21 Oct 2013 00:28:50 +0200 Subject: doxygen fix --- include/gwin/list.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/gwin/list.h') diff --git a/include/gwin/list.h b/include/gwin/list.h index b01dbf3f..fc189658 100644 --- a/include/gwin/list.h +++ b/include/gwin/list.h @@ -205,10 +205,12 @@ bool_t gwinListItemIsSelected(GHandle gh, int item); */ int gwinListGetSelected(GHandle gh); -#if GWIN_NEED_LIST_IMAGES +#if GWIN_NEED_LIST_IMAGES || defined(__DOXYGEN__) /** * @brief Set the image for a list item * + * @pre GWIN_NEED_LIST_IMAGES must be set to true in your gfxconf.h + * * @param[in] gh The widget handle (must be a list handle) * @param[in] item The item ID * @param[in] pimg The image to be displayed or NULL to turn off the image for this list item. -- cgit v1.2.3 From 6cc80926f00ce8d6533298cbb5ea061c1446287b Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Wed, 23 Oct 2013 00:18:03 +0200 Subject: Added gwinListGetSelectedText() --- include/gwin/list.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/gwin/list.h') diff --git a/include/gwin/list.h b/include/gwin/list.h index fc189658..05433e87 100644 --- a/include/gwin/list.h +++ b/include/gwin/list.h @@ -205,6 +205,19 @@ bool_t gwinListItemIsSelected(GHandle gh, int item); */ int gwinListGetSelected(GHandle gh); +/** + * @brief Get the text of the selected item + * + * @param[in] gh The widget handle (must be a list handle) + * + * @return The test of the selected list item for a single-select list. + * + * @note It always returns NULL (nothing selected) for a multi-select list. + * + * @api + */ +const char* gwinListGetSelectedText(GHandle gh); + #if GWIN_NEED_LIST_IMAGES || defined(__DOXYGEN__) /** * @brief Set the image for a list item -- cgit v1.2.3 From 8fce1a6fcef51f171d5fd9ed381583507b361210 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/gwin/list.h') 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 From 03a863f2924d4c89b91b5379f020aaa3f419b7e5 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Wed, 23 Oct 2013 16:28:45 +0200 Subject: docs --- include/gwin/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/gwin/list.h') diff --git a/include/gwin/list.h b/include/gwin/list.h index cba5b137..b45e7767 100644 --- a/include/gwin/list.h +++ b/include/gwin/list.h @@ -57,7 +57,7 @@ typedef struct GListObject { } GListObject; /** - * @brief Enum to change the behaviour of the scroll area + * @brief Enum to change the behaviour of the scroll bar * * @note This might be used with @p gwinListSetScroll() */ @@ -93,7 +93,7 @@ extern "C" { GHandle gwinListCreate(GListObject *widget, GWidgetInit *pInit, bool_t multiselect); /** - * @brief Change the behaviour of the scroll area + * @brief Change the behaviour of the scroll bar * * @note Current possible values: @p scrollAlways and @p scrollAuto * -- cgit v1.2.3 From 7a7e223d152b42553f7e6ce0220dd5d736b89c56 Mon Sep 17 00:00:00 2001 From: inmarket Date: Thu, 24 Oct 2013 18:36:11 +1000 Subject: Add multiple display support to GWIN. You can now create windows on multiple displays. --- include/gwin/list.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/gwin/list.h') diff --git a/include/gwin/list.h b/include/gwin/list.h index b45e7767..4052f53f 100644 --- a/include/gwin/list.h +++ b/include/gwin/list.h @@ -82,6 +82,7 @@ extern "C" { * one toggle to a role, it will forget the previous toggle. Two roles are supported: * Role 0 = toggle for down, role 1 = toggle for up * + * @param[in] g The GDisplay to display this window on * @param[in] widget The GListObject structure to initialize. If this is NULL, the structure is dynamically allocated. * @param[in] pInit The initialization parameters to use * @param[in] multiselect If TRUE the list is multi-select instead of single-select. @@ -90,7 +91,8 @@ extern "C" { * * @api */ -GHandle gwinListCreate(GListObject *widget, GWidgetInit *pInit, bool_t multiselect); +GHandle gwinGListCreate(GDisplay *g, GListObject *widget, GWidgetInit *pInit, bool_t multiselect); +#define gwinListCreate(w, pInit, m) gwinGListCreate(GDISP, w, pInit, m) /** * @brief Change the behaviour of the scroll bar -- cgit v1.2.3