Added gwinEnable() and gwinDisable()

ugfx_release_2.6
Joel Bodenmann 2014-04-30 20:55:45 +02:00
parent 04307da6b7
commit eae98a50d9
2 changed files with 19 additions and 0 deletions

View File

@ -32,6 +32,7 @@ FEATURE: Update GADC audio recording driver to new GAUDIO format
FEATURE: Added vs1053 audio play driver
FEATURE: Added GAUDIO wave-play demo
FEATURE: Added many GWIN simple demo's and updated the combined widget demo
FEATURE: Added gwinEnable() and gwinDisable()
*** changes after 1.9 ***

View File

@ -336,6 +336,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