KVIrc  4.9.2
DeveloperAPIs
KviPixmapUtils.h
Go to the documentation of this file.
1 #ifndef _KVIPIXMAPUTILS_H_
2 #define _KVIPIXMAPUTILS_H_
3 
4 //=============================================================================
5 //
6 // File : KviPixmapUtils.h
7 // Creation date : Wed Dec 29 2010 01:10:05 CEST by Elvio Basello
8 //
9 // This file is part of the KVIrc IRC client distribution
10 // Copyright (C) 2010 Elvio Basello (hellvis69 at gmail dot com)
11 //
12 // This program is FREE software. You can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the HOPE that it will be USEFUL,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 // See the GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program. If not, write to the Free Software Foundation,
24 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 //
26 //=============================================================================
27 
28 // this file was originally part of KviPixmap.h
29 
30 #include "kvi_settings.h"
31 
32 #include <QPainter>
33 
34 namespace KviPixmapUtils
35 {
36  extern KVILIB_API void drawPixmapWithPainter(QPainter * p, QPixmap * pix, int flags, const QRect & paintRect, int iWidgetWidth, int iWidgetHeight, int dx, int dy);
37  inline void drawPixmapWithPainter(QPainter * p, QPixmap * pix, int flags, const QRect & paintRect, int iWidgetWidth, int iWidgetHeight) { KviPixmapUtils::drawPixmapWithPainter(p, pix, flags, paintRect, iWidgetWidth, iWidgetHeight, paintRect.left(), paintRect.top()); }
38 }
39 
40 #endif // _KVIPIXMAPUTILS_H_
void drawPixmapWithPainter(QPainter *p, QPixmap *pix, int flags, const QRect &paintRect, int iWidgetWidth, int iWidgetHeight, int dx, int dy)
Definition: KviPixmapUtils.cpp:29
This file contains compile time settings.
#define p
Definition: detector.cpp:80
#define KVILIB_API
Definition: kvi_settings.h:125