diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-05-01 18:10:31 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-05-01 18:10:31 +1000 |
commit | cb99e4ab091fafbee0389a30b6fbe8ee0ffc778e (patch) | |
tree | ae2dd49581767de13bcef903bcc8e0a7a76fc898 /src/gwin/sys_defs.h | |
parent | 2bef66a6875171942a1d71e40669247d26ce505b (diff) | |
parent | 763fd061ecd6c9bb4877b5b6f5a01ce363ef09a4 (diff) | |
download | uGFX-cb99e4ab091fafbee0389a30b6fbe8ee0ffc778e.tar.gz uGFX-cb99e4ab091fafbee0389a30b6fbe8ee0ffc778e.tar.bz2 uGFX-cb99e4ab091fafbee0389a30b6fbe8ee0ffc778e.zip |
Merge branch 'master' into gwin
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 6302f28f..be99be1e 100644 --- a/src/gwin/sys_defs.h +++ b/src/gwin/sys_defs.h @@ -345,6 +345,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 * |