1 /* 2 * KDiff3 - Text Diff And Merge Tool 3 * 4 * SPDX-FileCopyrightText: 2002-2011 Joachim Eibl, joachim.eibl at gmx.de 5 * SPDX-FileCopyrightText: 2018-2020 Michael Reeves reeves.87@gmail.com 6 * SPDX-License-Identifier: GPL-2.0-or-later 7 */ 8 #ifndef PIXMAPUTILSH 9 #define PIXMAPUTILSH 10 11 #include "MergeFileInfos.h" 12 13 class QPixmap; 14 class QColor; 15 16 namespace PixMapUtils 17 { 18 QPixmap colorToPixmap(const QColor &inColor); 19 // Copy pm2 onto pm1, but preserve the alpha value from pm1 where pm2 is transparent. 20 QPixmap pixCombiner(const QPixmap* pm1, const QPixmap* pm2); 21 22 // like pixCombiner but let the pm1 color shine through 23 QPixmap pixCombiner2(const QPixmap* pm1, const QPixmap* pm2); 24 void initPixmaps(const QColor& newest, const QColor& oldest, const QColor& middle, const QColor& notThere); 25 26 QPixmap getOnePixmap(e_Age eAge, bool bLink, bool bDir); 27 28 } // namespace PixMapUtils 29 30 #endif 31