diff options
-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 * |