projects
/
windtk
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dirty redraw and SDL framebuffer example
[windtk]
/
src
/
widget.h
diff --git
a/src/widget.h
b/src/widget.h
index
c174f43
..
e7c44dc
100644
(file)
--- a/
src/widget.h
+++ b/
src/widget.h
@@
-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);