1 //========================================================================
5 // Copyright 2002-2003 Glyph & Cog, LLC
7 //========================================================================
9 #ifndef XPIXMAPOUTPUTDEV_H
10 #define XPIXMAPOUTPUTDEV_H
14 #ifdef USE_GCC_PRAGMAS
19 #include "XOutputDev.h"
21 //------------------------------------------------------------------------
23 class XPixmapOutputDev: public XOutputDev {
26 XPixmapOutputDev(Display *displayA, int screenNumA,
27 Visual *visualA, Colormap colormapA,
28 GBool reverseVideoA, Gulong paperColorA,
29 GBool installCmapA, int rgbCubeSizeA,
30 GBool incrementalUpdateA,
31 void (*redrawCbkA)(void *data),
32 void *redrawCbkDataA);
36 //----- initialization and control
39 virtual void startPage(int pageNum, GfxState *state);
42 virtual void endPage();
44 // Dump page contents to display.
47 //----- special access
49 // Set the window - this is used only to create a compatible pixmap.
50 void setWindow(Window winA) { win = winA; }
52 // Clear out the document (used when displaying an empty window).
57 GBool incrementalUpdate; // incrementally update the display?
58 void (*redrawCbk)(void *data);