Added gwinShow() and gwinHide() macro wrappers

ugfx_release_2.6
Joel Bodenmann 2014-05-11 13:58:21 +02:00
parent 10917910e7
commit 6a0e79903d
2 changed files with 21 additions and 1 deletions

View File

@ -37,7 +37,9 @@ FEATURE: Added gwinEnable() and gwinDisable()
FIX: Progressbar widget bug fix that could gwinProgressbarStop() to crash
FIX: Imagebox widget bug fix that could cause gwinImageOpenFile() to crash
FEATURE: GWIN containers such as "container" and "frame" which provides parent/children widget management
FEATURE: Add gdispContrastColor()
FEATURE: Added gdispContrastColor()
FEATURE: Added gwinShow() and gwinHide()
*** Release 2.0 ***
FEATURE: GDISP Streaming API and demos.

View File

@ -341,6 +341,24 @@ extern "C" {
*/
void gwinSetVisible(GHandle gh, bool_t visible);
/**
* @brief Makes a widget become visible
*
* @param[in] gh The window handle
*
* @api
*/
#define gwinShow(gh) gwinSetVisible(gh, TRUE);
/**
* @brief Makes a widget become invisible
*
* @param[in] gh The window handle
*
* @api
*/
#define gwinHide(gh) gwinSetVisible(gh, FALSE);
/**
* @brief Gets the visibility of a window
* @return TRUE if visible