From 6a0e79903d03caa42c595aafd892193982cbcb7c Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sun, 11 May 2014 13:58:21 +0200 Subject: Added gwinShow() and gwinHide() macro wrappers --- src/gwin/sys_defs.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/gwin/sys_defs.h') 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 @@ -341,6 +341,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 -- cgit v1.2.3