From ad343eccb18454bab2f4e9464b88564c9da69649 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 2 Nov 2014 20:10:32 +0000 Subject: remove unecessary utils/types.h This cleans up this header and moves the functionality into more useful places while reducing the include complexity but only pulling in whats required. --- desktop/plotters.h | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'desktop/plotters.h') diff --git a/desktop/plotters.h b/desktop/plotters.h index c34692433..d764de2d2 100644 --- a/desktop/plotters.h +++ b/desktop/plotters.h @@ -26,16 +26,22 @@ #include #include -#include "utils/types.h" #include "desktop/plot_style.h" struct bitmap; +struct rect; typedef unsigned long bitmap_flags_t; #define BITMAPF_NONE 0 #define BITMAPF_REPEAT_X 1 #define BITMAPF_REPEAT_Y 2 +enum path_command { + PLOTTER_PATH_MOVE, + PLOTTER_PATH_CLOSE, + PLOTTER_PATH_LINE, + PLOTTER_PATH_BEZIER, +}; /** Set of target specific plotting functions. * @@ -137,12 +143,18 @@ struct plotter_table { bool option_knockout; /**< set if knockout rendering is required */ }; -enum path_command { - PLOTTER_PATH_MOVE, - PLOTTER_PATH_CLOSE, - PLOTTER_PATH_LINE, - PLOTTER_PATH_BEZIER, -}; +/* Redraw context */ +struct redraw_context { + /** Redraw to show interactive features, such as active selections + * etc. Should be off for printing. */ + bool interactive; + + /** Render background images. May want it off for printing. */ + bool background_images; + + /** Current plotters, must be assigned before use. */ + const struct plotter_table *plot; +}; #endif -- cgit v1.2.3