From eddae6af0663243a2677674d501f9a87d55798f5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 30 Jun 2011 15:48:07 +0000 Subject: 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 --- utils/types.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'utils/types.h') 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 -- cgit v1.2.3