aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/sys_options.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/sys_options.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/sys_options.h')
-rw-r--r--src/gwin/sys_options.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/gwin/sys_options.h b/src/gwin/sys_options.h
index 262484ee..b1b58a68 100644
--- a/src/gwin/sys_options.h
+++ b/src/gwin/sys_options.h
@@ -137,6 +137,33 @@
#define GWIN_FLAT_STYLING FALSE
#endif
/**
+ * @brief Don't use a timer for redrawing windows
+ * @details Defaults to FALSE
+ * @note Normally windows and widgets are redrawn on a timer. Setting this
+ * option causes them to be redrawn immediately. Note that this can
+ * cause extended blocking times on events and saves little code.
+ * @note If GWIN_NEED_WINDOWMANAGER is FALSE then this setting is ignored
+ * as redrawing always occurs immediately.
+ */
+ #ifndef GWIN_REDRAW_IMMEDIATE
+ #define GWIN_REDRAW_IMMEDIATE FALSE
+ #endif
+ /**
+ * @brief Redraw all windows in a single operation
+ * @details Defaults to FALSE
+ * @note Windows are normally redraw one per gtimer cycle.
+ * Setting this option causes all windows to be redrawn in
+ * a single gtimer cycle. Note that this can
+ * cause extended blocking times on the timer thread but may
+ * speed up redraw slightly.
+ * @note This is only relevant if GWIN_REDRAW_IMMEDIATE is FALSE.
+ * Everything always gets redrawn in a single operation if
+ * GWIN_REDRAW_IMMEDIATE is TRUE.
+ */
+ #ifndef GWIN_REDRAW_SINGLEOP
+ #define GWIN_REDRAW_SINGLEOP FALSE
+ #endif
+ /**
* @brief Buttons should not insist the mouse is over the button on mouse release
* @details Defaults to FALSE
*/