aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/sys_defs.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-05-04 17:55:17 +0200
committerJoel Bodenmann <joel@unormal.org>2014-05-04 17:55:17 +0200
commit7e791910246677f9e09c0957f1805409e790f57e (patch)
treea3e31469a99323eb6e14f928c32fd070bffb1324 /src/gwin/sys_defs.h
parent1a0d1f1d1097ade825cdabbd693ebf7f48dcee77 (diff)
parent9698f0a74319fa4a843783a1aa72dfca2c3fc90f (diff)
downloaduGFX-7e791910246677f9e09c0957f1805409e790f57e.tar.gz
uGFX-7e791910246677f9e09c0957f1805409e790f57e.tar.bz2
uGFX-7e791910246677f9e09c0957f1805409e790f57e.zip
Merge branch 'master' into freertos
Diffstat (limited to 'src/gwin/sys_defs.h')
-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 ac2c98c7..f4e1c2f7 100644
--- a/src/gwin/sys_defs.h
+++ b/src/gwin/sys_defs.h
@@ -337,6 +337,24 @@ extern "C" {
void gwinSetEnabled(GHandle gh, bool_t enabled);
/**
+ * @brief Enables a widget
+ *
+ * @param[in] gh The window handle
+ *
+ * @api
+ */
+ #define gwinEnable(gh) gwinSetEnabled(gh, TRUE);
+
+ /**
+ * @brief Disables a widget
+ *
+ * @param[in] gh The window handle
+ *
+ * @api
+ */
+ #define gwinDisable(gh) gwinSetEnabled(gh, FALSE);
+
+ /**
* @brief Gets the enabled state of a window
* @return TRUE if enabled
*