summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-06-30 15:48:07 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-06-30 15:48:07 +0000
commiteddae6af0663243a2677674d501f9a87d55798f5 (patch)
tree08562171f870a6b592d624adfbfd0d6fa11fcdcb /utils
parenta5dc6b9e6637c85d18510ac6446ee4a8a7955e7b (diff)
downloadnetsurf-eddae6af0663243a2677674d501f9a87d55798f5.tar.gz
netsurf-eddae6af0663243a2677674d501f9a87d55798f5.tar.bz2
Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
svn path=/trunk/netsurf/; revision=12543
Diffstat (limited to 'utils')
-rw-r--r--utils/types.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/types.h b/utils/types.h
index 40427b658..2e77cade4 100644
--- a/utils/types.h
+++ b/utils/types.h
@@ -23,10 +23,23 @@
#ifndef _NETSURF_UTILS_TYPES_H_
#define _NETSURF_UTILS_TYPES_H_
+struct plotter_table;
+
/* Rectangle coordinates */
struct rect {
int x0, y0; /* Top left */
int x1, y1; /* Bottom right */
};
+
+/* Redraw context */
+struct redraw_context {
+ /** Redraw to show interactive features, such as active selections
+ * etc. Should be off for printing. */
+ bool interactive;
+
+ /** Current plotters, must be assigned before use. */
+ const struct plotter_table *plot;
+};
+
#endif