dirty redraw and SDL framebuffer example
[windtk] / src / widget.h
index c174f43..e7c44dc 100644 (file)
@@ -16,6 +16,8 @@ struct wt_widget {
        wt_callback_func cb[WT_NUM_CALLBACKS];
        void *cbcls[WT_NUM_CALLBACKS];
 
+       int dirty;      /* redraw pending */
+
        wt_draw_func draw;
        void (*click)(struct wt_widget *w);
        void (*keypress)(struct wt_widget *w, int key);