1 //======================================================================== 2 // 3 // SplashPattern.cc 4 // 5 //======================================================================== 6 7 //======================================================================== 8 // 9 // Modified under the Poppler project - http://poppler.freedesktop.org 10 // 11 // All changes made under the Poppler project to this file are licensed 12 // under GPL version 2 or later 13 // 14 // Copyright (C) 2010, 2011 Thomas Freitag <Thomas.Freitag@alfa.de> 15 // Copyright (C) 2020, 2021 Albert Astals Cid <aacid@kde.org> 16 // 17 // To see a description of the changes please see the Changelog file that 18 // came with your tarball or type make ChangeLog if you are building from git 19 // 20 //======================================================================== 21 22 #include <config.h> 23 24 #include "SplashMath.h" 25 #include "SplashScreen.h" 26 #include "SplashPattern.h" 27 28 //------------------------------------------------------------------------ 29 // SplashPattern 30 //------------------------------------------------------------------------ 31 SplashPattern()32SplashPattern::SplashPattern() { } 33 ~SplashPattern()34SplashPattern::~SplashPattern() { } 35 36 //------------------------------------------------------------------------ 37 // SplashSolidColor 38 //------------------------------------------------------------------------ 39 SplashSolidColor(SplashColorConstPtr colorA)40SplashSolidColor::SplashSolidColor(SplashColorConstPtr colorA) 41 { 42 splashColorCopy(color, colorA); 43 } 44 ~SplashSolidColor()45SplashSolidColor::~SplashSolidColor() { } 46 getColor(int x,int y,SplashColorPtr c)47bool SplashSolidColor::getColor(int x, int y, SplashColorPtr c) 48 { 49 splashColorCopy(c, color); 50 return true; 51 } 52 53 //------------------------------------------------------------------------ 54 // SplashGouraudColor 55 //------------------------------------------------------------------------ 56 57 SplashGouraudColor::~SplashGouraudColor() = default; 58