Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/splash/SplashPattern.h
diff options
context:
space:
mode:
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>2004-05-17 18:12:38 (GMT)
committer Martin Kretzschmar <mkretzschmar@src.gnome.org>2004-05-17 18:12:38 (GMT)
commitbace4ea18c03bfcaadab55300bc15290f87540c7 (patch)
tree48c9c670e4dde608d50fe68e00e783f18af8697b /pdf/splash/SplashPattern.h
parentad63666daeeda50acc7630132d61fe044634fddd (diff)
Initial revision
Diffstat (limited to 'pdf/splash/SplashPattern.h')
-rw-r--r--pdf/splash/SplashPattern.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/pdf/splash/SplashPattern.h b/pdf/splash/SplashPattern.h
new file mode 100644
index 0000000..4bf4477
--- /dev/null
+++ b/pdf/splash/SplashPattern.h
@@ -0,0 +1,81 @@
+//========================================================================
+//
+// SplashPattern.h
+//
+//========================================================================
+
+#ifndef SPLASHPATTERN_H
+#define SPLASHPATTERN_H
+
+#include <aconf.h>
+
+#ifdef USE_GCC_PRAGMAS
+#pragma interface
+#endif
+
+#include "SplashTypes.h"
+
+class SplashScreen;
+
+//------------------------------------------------------------------------
+// SplashPattern
+//------------------------------------------------------------------------
+
+class SplashPattern {
+public:
+
+ SplashPattern();
+
+ virtual SplashPattern *copy() = 0;
+
+ virtual ~SplashPattern();
+
+ virtual SplashColor getColor(int x, int y) = 0;
+
+private:
+};
+
+//------------------------------------------------------------------------
+// SplashSolidColor
+//------------------------------------------------------------------------
+
+class SplashSolidColor: public SplashPattern {
+public:
+
+ SplashSolidColor(SplashColor colorA);
+
+ virtual SplashPattern *copy() { return new SplashSolidColor(color); }
+
+ virtual ~SplashSolidColor();
+
+ virtual SplashColor getColor(int x, int y);
+
+private:
+
+ SplashColor color;
+};
+
+//------------------------------------------------------------------------
+// SplashHalftone
+//------------------------------------------------------------------------
+
+class SplashHalftone: public SplashPattern {
+public:
+
+ SplashHalftone(SplashColor color0A, SplashColor color1A,
+ SplashScreen *screenA, SplashCoord valueA);
+
+ virtual SplashPattern *copy();
+
+ virtual ~SplashHalftone();
+
+ virtual SplashColor getColor(int x, int y);
+
+private:
+
+ SplashColor color0, color1;
+ SplashScreen *screen;
+ SplashCoord value;
+};
+
+#endif