diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-10-23 00:18:03 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2013-10-23 00:18:03 +0200 |
commit | 2e64bddee588c4a3ee7ba89e7257b8828b399cc4 (patch) | |
tree | f2b96e93ed849485598c39d43ae6d6a7f74d7a1e /include/gwin | |
parent | 4401d335a517196ea634dcc309d56130a594c621 (diff) | |
download | uGFX-2e64bddee588c4a3ee7ba89e7257b8828b399cc4.tar.gz uGFX-2e64bddee588c4a3ee7ba89e7257b8828b399cc4.tar.bz2 uGFX-2e64bddee588c4a3ee7ba89e7257b8828b399cc4.zip |
Added gwinListGetSelectedText()
Diffstat (limited to 'include/gwin')
-rw-r--r-- | include/gwin/list.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 |