diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-11-16 02:01:16 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-11-16 02:01:16 +1000 |
commit | d35bf6cda6a6842b244069e2673acea8778381f7 (patch) | |
tree | 030502af247e66775e1c706ff8c54032174f52ea /include/gwin/gwin.h | |
parent | 3c3bab5d8275a93e12d8b37526811f73a2283195 (diff) | |
download | uGFX-d35bf6cda6a6842b244069e2673acea8778381f7.tar.gz uGFX-d35bf6cda6a6842b244069e2673acea8778381f7.tar.bz2 uGFX-d35bf6cda6a6842b244069e2673acea8778381f7.zip |
Add support to GWIN for a routine that can redraw an entire display (subject to the controls being able to redraw).
This also removes a few change of visibility bugs in gwin and simplifies code.
Diffstat (limited to 'include/gwin/gwin.h')
-rw-r--r-- | include/gwin/gwin.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/gwin/gwin.h b/include/gwin/gwin.h index fa5ba613..1a2c2c07 100644 --- a/include/gwin/gwin.h +++ b/include/gwin/gwin.h @@ -379,6 +379,22 @@ extern "C" { #if GWIN_NEED_WINDOWMANAGER /** + * @brief Redraw a window + * + * @param[in] g The display to redraw. Passing NULL will redraw all displays. + * @param[in] preserve Should the redraw try to preserve existing screen data for those + * windows that can't redraw themselves? + * + * @note This is normally never required as windows and widgets will redraw as required. + * @note Some windows are incapable of redrawing themselves as they don't save + * their drawing state. + * @note This does not clear the background - just redraws the gwin windows (where possible) + * + * @api + */ + void gwinRedrawDisplay(GDisplay *g, bool_t preserve); + + /** * @brief Minimize, Maximize or Restore a window * @pre GWIN_NEED_WINDOWMANAGER must be TRUE * |