/src/poppler/splash/SplashPattern.cc
Line | Count | Source |
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, 2025 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 "SplashPattern.h" |
25 | | |
26 | | //------------------------------------------------------------------------ |
27 | | // SplashPattern |
28 | | //------------------------------------------------------------------------ |
29 | | |
30 | 48.8M | SplashPattern::SplashPattern() = default; |
31 | | |
32 | 48.8M | SplashPattern::~SplashPattern() = default; |
33 | | |
34 | | //------------------------------------------------------------------------ |
35 | | // SplashSolidColor |
36 | | //------------------------------------------------------------------------ |
37 | | |
38 | | SplashSolidColor::SplashSolidColor(SplashColorConstPtr colorA) |
39 | 48.8M | { |
40 | 48.8M | splashColorCopy(color, colorA); |
41 | 48.8M | } |
42 | | |
43 | | SplashSolidColor::~SplashSolidColor() = default; |
44 | | |
45 | | bool SplashSolidColor::getColor(int /*x*/, int /*y*/, SplashColorPtr c) const |
46 | 63.8M | { |
47 | 63.8M | splashColorCopy(c, color); |
48 | 63.8M | return true; |
49 | 63.8M | } |
50 | | |
51 | | //------------------------------------------------------------------------ |
52 | | // SplashGouraudColor |
53 | | //------------------------------------------------------------------------ |
54 | | |
55 | | SplashGouraudColor::~SplashGouraudColor() = default; |