aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/class_gwin.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-05-22 09:35:36 +1000
committerinmarket <andrewh@inmarket.com.au>2014-05-22 09:35:36 +1000
commitbc3ebd6ae9ce8c8a08064e60929f1196248a8a03 (patch)
tree8fb761f4affca62f692159ae9ac9cc4c276e4d3e /src/gwin/class_gwin.h
parent1edc0a2d5a43047f1f7634bef2881b3bf520f069 (diff)
downloaduGFX-bc3ebd6ae9ce8c8a08064e60929f1196248a8a03.tar.gz
uGFX-bc3ebd6ae9ce8c8a08064e60929f1196248a8a03.tar.bz2
uGFX-bc3ebd6ae9ce8c8a08064e60929f1196248a8a03.zip
GWIN: Make sure invisible windows are redrawn before visible windows.
Redrawing compile options made visible for the user project.
Diffstat (limited to 'src/gwin/class_gwin.h')
-rw-r--r--src/gwin/class_gwin.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gwin/class_gwin.h b/src/gwin/class_gwin.h
index 0aee1ae8..61a27447 100644
--- a/src/gwin/class_gwin.h
+++ b/src/gwin/class_gwin.h
@@ -195,6 +195,14 @@ GHandle _gwindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pInit
void _gwinUpdate(GHandle gh);
/**
+ * @brief How to flush the redraws
+ * @notes REDRAW_WAIT - Wait for a drawing session to be available
+ * @notes REDRAW_NOWAIT - Do nothing if the drawing session is not available
+ * @note REDRAW_INSESSION - We are already in a drawing session
+ */
+typedef enum GRedrawMethod { REDRAW_WAIT, REDRAW_NOWAIT, REDRAW_INSESSION } GRedrawMethod;
+
+/**
* @brief Flush any pending redraws in the system.
*
* @param[in] doWait Do we wait for the lock?
@@ -209,7 +217,7 @@ void _gwinUpdate(GHandle gh);
*
* @notapi
*/
-void _gwinFlushRedraws(bool_t doWait);
+void _gwinFlushRedraws(GRedrawMethod how);
/**
* @brief Obtain a drawing session