diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-04-30 20:55:45 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-04-30 20:55:45 +0200 |
commit | eae98a50d9f6f5c94c918ea77c4adde146c790c1 (patch) | |
tree | 01d39eb42918ade51039926a175c6a4c8c135a95 /src | |
parent | 04307da6b7ca4fdc330c9f1cf8570d8f07ea1e5f (diff) | |
download | uGFX-eae98a50d9f6f5c94c918ea77c4adde146c790c1.tar.gz uGFX-eae98a50d9f6f5c94c918ea77c4adde146c790c1.tar.bz2 uGFX-eae98a50d9f6f5c94c918ea77c4adde146c790c1.zip |
Added gwinEnable() and gwinDisable()
Diffstat (limited to 'src')
-rw-r--r-- | src/gwin/sys_defs.h | 18 |
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 * |