diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-11-02 20:10:32 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-11-02 20:10:32 +0000 |
commit | ad343eccb18454bab2f4e9464b88564c9da69649 (patch) | |
tree | a4d775a8e99e7d98dcfabdcdde7e6ad0dfd7368b /desktop/plotters.h | |
parent | f2cda2e1a707033ac582e791c45eeb3d0feaa70d (diff) | |
download | netsurf-ad343eccb18454bab2f4e9464b88564c9da69649.tar.gz netsurf-ad343eccb18454bab2f4e9464b88564c9da69649.tar.bz2 |
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.
Diffstat (limited to 'desktop/plotters.h')
-rw-r--r-- | desktop/plotters.h | 26 |
1 files changed, 19 insertions, 7 deletions
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 <stdbool.h> #include <stdio.h> -#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 |