diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-05-11 13:58:21 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-05-11 13:58:21 +0200 |
commit | 6a0e79903d03caa42c595aafd892193982cbcb7c (patch) | |
tree | 89b491c0623d8a3635fc28d152b8096f4a8abf57 | |
parent | 10917910e79179cf249aa196c0bb6812f8caf0c6 (diff) | |
download | uGFX-6a0e79903d03caa42c595aafd892193982cbcb7c.tar.gz uGFX-6a0e79903d03caa42c595aafd892193982cbcb7c.tar.bz2 uGFX-6a0e79903d03caa42c595aafd892193982cbcb7c.zip |
Added gwinShow() and gwinHide() macro wrappers
-rw-r--r-- | docs/releases.txt | 4 | ||||
-rw-r--r-- | src/gwin/sys_defs.h | 18 |
2 files changed, 21 insertions, 1 deletions
diff --git a/docs/releases.txt b/docs/releases.txt index 005b9246..b7c019aa 100644 --- a/docs/releases.txt +++ b/docs/releases.txt @@ -37,7 +37,9 @@ FEATURE: Added gwinEnable() and gwinDisable() FIX: Progressbar widget bug fix that could gwinProgressbarStop() to crash FIX: Imagebox widget bug fix that could cause gwinImageOpenFile() to crash FEATURE: GWIN containers such as "container" and "frame" which provides parent/children widget management -FEATURE: Add gdispContrastColor() +FEATURE: Added gdispContrastColor() +FEATURE: Added gwinShow() and gwinHide() + *** Release 2.0 *** FEATURE: GDISP Streaming API and demos. diff --git a/src/gwin/sys_defs.h b/src/gwin/sys_defs.h index 91831cba..426b2c02 100644 --- a/src/gwin/sys_defs.h +++ b/src/gwin/sys_defs.h @@ -342,6 +342,24 @@ extern "C" { void gwinSetVisible(GHandle gh, bool_t visible); /** + * @brief Makes a widget become visible + * + * @param[in] gh The window handle + * + * @api + */ + #define gwinShow(gh) gwinSetVisible(gh, TRUE); + + /** + * @brief Makes a widget become invisible + * + * @param[in] gh The window handle + * + * @api + */ + #define gwinHide(gh) gwinSetVisible(gh, FALSE); + + /** * @brief Gets the visibility of a window * @return TRUE if visible * |