aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-05-11 13:58:21 +0200
committerJoel Bodenmann <joel@unormal.org>2014-05-11 13:58:21 +0200
commit6a0e79903d03caa42c595aafd892193982cbcb7c (patch)
tree89b491c0623d8a3635fc28d152b8096f4a8abf57 /src
parent10917910e79179cf249aa196c0bb6812f8caf0c6 (diff)
downloaduGFX-6a0e79903d03caa42c595aafd892193982cbcb7c.tar.gz
uGFX-6a0e79903d03caa42c595aafd892193982cbcb7c.tar.bz2
uGFX-6a0e79903d03caa42c595aafd892193982cbcb7c.zip
Added gwinShow() and gwinHide() macro wrappers
Diffstat (limited to 'src')
-rw-r--r--src/gwin/sys_defs.h18
1 files changed, 18 insertions, 0 deletions
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
*