diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-05-01 07:25:22 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-05-01 07:25:22 +1000 |
commit | 3409fd29c9647546bc15af7602cbab4e3a34f54c (patch) | |
tree | fa3cf0bc64dfc335530b1e42404066ae3448a1de /src/gwin/sys_defs.h | |
parent | 87c2016e41ee0600dd69695cd42f0b9bca29f30d (diff) | |
parent | 2c57363efc343ae521857cddbcfbcaec50eaedab (diff) | |
download | uGFX-3409fd29c9647546bc15af7602cbab4e3a34f54c.tar.gz uGFX-3409fd29c9647546bc15af7602cbab4e3a34f54c.tar.bz2 uGFX-3409fd29c9647546bc15af7602cbab4e3a34f54c.zip |
Merge remote-tracking branch 'origin/master'
abled"
This reverts commit 2c57363efc343ae521857cddbcfbcaec50eaedab.
Diffstat (limited to 'src/gwin/sys_defs.h')
-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 * |