Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/XPixmapOutputDev.h
blob: 8b8316741182f683f3e8619c7690bbff54a998c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//========================================================================
//
// XPixmapOutputDev.h
//
// Copyright 2002-2003 Glyph & Cog, LLC
//
//========================================================================

#ifndef XPIXMAPOUTPUTDEV_H
#define XPIXMAPOUTPUTDEV_H

#include <aconf.h>

#ifdef USE_GCC_PRAGMAS
#pragma interface
#endif

#include <X11/Xlib.h>
#include "XOutputDev.h"

//------------------------------------------------------------------------

class XPixmapOutputDev: public XOutputDev {
public:

  XPixmapOutputDev(Display *displayA, int screenNumA,
		   Visual *visualA, Colormap colormapA,
		   GBool reverseVideoA, Gulong paperColorA,
		   GBool installCmapA, int rgbCubeSizeA,
		   GBool incrementalUpdateA,
		   void (*redrawCbkA)(void *data),
		   void *redrawCbkDataA);

  ~XPixmapOutputDev();

  //----- initialization and control

  // Start a page.
  virtual void startPage(int pageNum, GfxState *state);

  // End a page.
  virtual void endPage();

  // Dump page contents to display.
  virtual void dump();

  //----- special access

  // Set the window - this is used only to create a compatible pixmap.
  void setWindow(Window winA) { win = winA; }

  // Clear out the document (used when displaying an empty window).
  void clear();

private:

  GBool incrementalUpdate;	// incrementally update the display?
  void (*redrawCbk)(void *data);
  void *redrawCbkData;
  Window win;
};

#endif