File indexing completed on 2024-04-14 05:35:50

0001 // clang-format off
0002 /*
0003  * KDiff3 - Text Diff And Merge Tool
0004  *
0005  * SPDX-FileCopyrightText: 2002-2011 Joachim Eibl, joachim.eibl at gmx.de
0006  * SPDX-FileCopyrightText: 2018-2020 Michael Reeves reeves.87@gmail.com
0007  * SPDX-License-Identifier: GPL-2.0-or-later
0008  */
0009 // clang-format on
0010 #ifndef PIXMAPUTILSH
0011 #define PIXMAPUTILSH
0012 
0013 #include "MergeFileInfos.h"
0014 
0015 class QPixmap;
0016 class QColor;
0017 
0018 namespace PixMapUtils
0019 {
0020 QPixmap colorToPixmap(const QColor &inColor);
0021 /*
0022     Copy pm2 onto pm1, but preserve the alpha value from pm1 where pm2 is transparent.
0023     Opactiy controls wheather or not pm1 will show through.
0024 */
0025 QPixmap pixCombiner(const QPixmap* pm1, const QPixmap* pm2, const qreal inOpacity = 1);
0026 
0027 void initPixmaps(const QColor& newest, const QColor& oldest, const QColor& middle, const QColor& notThere);
0028 
0029 QPixmap getOnePixmap(e_Age eAge, bool bLink, bool bDir);
0030 
0031 } // namespace PixMapUtils
0032 
0033 #endif