1 //========================================================================
2 //
3 // SplashPattern.cc
4 //
5 // Copyright 2003-2013 Glyph & Cog, LLC
6 //
7 //========================================================================
8 
9 #include <aconf.h>
10 
11 #ifdef USE_GCC_PRAGMAS
12 #pragma implementation
13 #endif
14 
15 #include "SplashMath.h"
16 #include "SplashScreen.h"
17 #include "SplashPattern.h"
18 
19 //------------------------------------------------------------------------
20 // SplashPattern
21 //------------------------------------------------------------------------
22 
SplashPattern()23 SplashPattern::SplashPattern() {
24 }
25 
~SplashPattern()26 SplashPattern::~SplashPattern() {
27 }
28 
29 //------------------------------------------------------------------------
30 // SplashSolidColor
31 //------------------------------------------------------------------------
32 
SplashSolidColor(SplashColorPtr colorA)33 SplashSolidColor::SplashSolidColor(SplashColorPtr colorA) {
34   splashColorCopy(color, colorA);
35 }
36 
~SplashSolidColor()37 SplashSolidColor::~SplashSolidColor() {
38 }
39 
getColor(int x,int y,SplashColorPtr c)40 void SplashSolidColor::getColor(int x, int y, SplashColorPtr c) {
41   splashColorCopy(c, color);
42 }
43