~ubuntu-branches/ubuntu/wily/luatex/wily

« back to all changes in this revision

Viewing changes to source/libs/xpdf/xpdf-3.02/splash/SplashPattern.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2010-04-29 00:47:19 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100429004719-o42etkqe90n97b9e
Tags: 0.60.1-1
* new upstream release, adapt build-script patch
* disable patch: upstream-epstopdf_cc_no_xpdf_patching, included upstream
* disable patch: libpoppler-0.12, not needed anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//========================================================================
 
2
//
 
3
// SplashPattern.h
 
4
//
 
5
//========================================================================
 
6
 
 
7
#ifndef SPLASHPATTERN_H
 
8
#define SPLASHPATTERN_H
 
9
 
 
10
#include <aconf.h>
 
11
 
 
12
#ifdef USE_GCC_PRAGMAS
 
13
#pragma interface
 
14
#endif
 
15
 
 
16
#include "SplashTypes.h"
 
17
 
 
18
class SplashScreen;
 
19
 
 
20
//------------------------------------------------------------------------
 
21
// SplashPattern
 
22
//------------------------------------------------------------------------
 
23
 
 
24
class SplashPattern {
 
25
public:
 
26
 
 
27
  SplashPattern();
 
28
 
 
29
  virtual SplashPattern *copy() = 0;
 
30
 
 
31
  virtual ~SplashPattern();
 
32
 
 
33
  // Return the color value for a specific pixel.
 
34
  virtual void getColor(int x, int y, SplashColorPtr c) = 0;
 
35
 
 
36
  // Returns true if this pattern object will return the same color
 
37
  // value for all pixels.
 
38
  virtual GBool isStatic() = 0;
 
39
 
 
40
private:
 
41
};
 
42
 
 
43
//------------------------------------------------------------------------
 
44
// SplashSolidColor
 
45
//------------------------------------------------------------------------
 
46
 
 
47
class SplashSolidColor: public SplashPattern {
 
48
public:
 
49
 
 
50
  SplashSolidColor(SplashColorPtr colorA);
 
51
 
 
52
  virtual SplashPattern *copy() { return new SplashSolidColor(color); }
 
53
 
 
54
  virtual ~SplashSolidColor();
 
55
 
 
56
  virtual void getColor(int x, int y, SplashColorPtr c);
 
57
 
 
58
  virtual GBool isStatic() { return gTrue; }
 
59
 
 
60
private:
 
61
 
 
62
  SplashColor color;
 
63
};
 
64
 
 
65
#endif