KVIrc 5.2.6
Developer APIs
KvsObject_painter.h
Go to the documentation of this file.
1#ifndef _CLASS_PAINTER_H_
2#define _CLASS_PAINTER_H_
3//=============================================================================
4//
5// File : KvsObject_painter.h
6// Creation date : Fri Mar 18 14:30:48 CEST 2005
7// by Tonino Imbesi(Grifisx) and Alessandro Carbone(Noldor)
8//
9// This file is part of the KVIrc IRC client distribution
10// Copyright (C) 2005-2008 Alessandro Carbone (elfonol 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#include "object_macros.h"
29#include <QPrinter>
30
31#include <QPainter>
32#include <QPaintDevice>
33#include "KviCString.h"
34#include <QPainterPath>
35
37{
38 Q_OBJECT
39public:
41protected:
42 QPrinter * m_pPrinter;
44 QPainter * m_pPainter;
45 QLinearGradient * m_pGradient;
46 QPainterPath * m_pPainterPath;
47
48public:
49 void setInternalPainter(QPainter * p);
52
61
71
74
79
88
89 // QT4
99
113
119
120protected:
121 void attachDevice(KviKvsObject * o, QPaintDevice * p);
122protected slots:
123 void detachDevice();
124
125private:
127};
128#endif // !_CLASS_PAINTER_H_
Definition KviKvsObjectFunctionCall.h:34
Definition KviKvsObject.h:51
Definition KvsObject_painter.h:37
bool pathLineTo(KviKvsObjectFunctionCall *c)
bool bDonotdeleteinternalqpainter
Definition KvsObject_painter.h:43
bool pathAddText(KviKvsObjectFunctionCall *c)
bool drawHtmlText(KviKvsObjectFunctionCall *c)
bool setPen(KviKvsObjectFunctionCall *c)
bool drawRect(KviKvsObjectFunctionCall *c)
bool setPenStyle(KviKvsObjectFunctionCall *c)
bool restore(KviKvsObjectFunctionCall *c)
bool fillRect(KviKvsObjectFunctionCall *c)
bool setFont(KviKvsObjectFunctionCall *c)
bool colorNames(KviKvsObjectFunctionCall *c)
bool setTextAntialiasing(KviKvsObjectFunctionCall *c)
QPrinter * m_pPrinter
Definition KvsObject_painter.h:42
bool setOpacity(KviKvsObjectFunctionCall *c)
bool pathMoveTo(KviKvsObjectFunctionCall *c)
void detachDevice()
Definition KvsObject_painter.cpp:1258
bool pen(KviKvsObjectFunctionCall *c)
bool setFontSize(KviKvsObjectFunctionCall *c)
void attachDevice(KviKvsObject *o, QPaintDevice *p)
Definition KvsObject_painter.cpp:1246
bool clearGradient(KviKvsObjectFunctionCall *c)
bool fontMetricsWidth(KviKvsObjectFunctionCall *c)
bool drawPoint(KviKvsObjectFunctionCall *c)
bool save(KviKvsObjectFunctionCall *c)
bool painterDeviceWidth(KviKvsObjectFunctionCall *c)
bool rotate(KviKvsObjectFunctionCall *c)
bool drawPie(KviKvsObjectFunctionCall *c)
bool drawPath(KviKvsObjectFunctionCall *c)
bool shear(KviKvsObjectFunctionCall *c)
bool drawText(KviKvsObjectFunctionCall *c)
bool setGradientStart(KviKvsObjectFunctionCall *c)
bool begin(KviKvsObjectFunctionCall *c)
bool translate(KviKvsObjectFunctionCall *c)
bool setGradientStop(KviKvsObjectFunctionCall *c)
void setInternalPainter(QPainter *p)
Definition KvsObject_painter.cpp:2155
QLinearGradient * m_pGradient
Definition KvsObject_painter.h:45
bool fontAscent(KviKvsObjectFunctionCall *c)
bool fontMetricsHeight(KviKvsObjectFunctionCall *c)
bool drawPixmapMirrored(KviKvsObjectFunctionCall *c)
bool setBrush(KviKvsObjectFunctionCall *c)
bool htmlTextSize(KviKvsObjectFunctionCall *c)
bool setPenWidth(KviKvsObjectFunctionCall *c)
bool drawChord(KviKvsObjectFunctionCall *c)
bool setBrushStyle(KviKvsObjectFunctionCall *c)
QPainter * m_pPainter
Definition KvsObject_painter.h:44
bool scale(KviKvsObjectFunctionCall *c)
bool setGradientAsBrush(KviKvsObjectFunctionCall *c)
bool end(KviKvsObjectFunctionCall *c)
bool setCompositionMode(KviKvsObjectFunctionCall *c)
bool drawEllipse(KviKvsObjectFunctionCall *c)
bool setGradientColor(KviKvsObjectFunctionCall *c)
bool painterDeviceHeight(KviKvsObjectFunctionCall *c)
bool reset(KviKvsObjectFunctionCall *c)
bool drawPixmap(KviKvsObjectFunctionCall *c)
bool beginPdf(KviKvsObjectFunctionCall *c)
bool fontDescent(KviKvsObjectFunctionCall *c)
bool drawRoundRect(KviKvsObjectFunctionCall *c)
bool drawPixmapWithColorEffect(KviKvsObjectFunctionCall *c)
bool resetPath(KviKvsObjectFunctionCall *c)
bool drawWinFocusRect(KviKvsObjectFunctionCall *c)
bool setPenCapStyle(KviKvsObjectFunctionCall *c)
QPainterPath * m_pPainterPath
Definition KvsObject_painter.h:46
bool drawArc(KviKvsObjectFunctionCall *c)
bool drawIcon(KviKvsObjectFunctionCall *c)
bool setPenJoinStyle(KviKvsObjectFunctionCall *c)
bool setSmoothPixmapTransform(KviKvsObjectFunctionCall *c)
KviKvsObject * m_pDeviceObject
Definition KvsObject_painter.h:126
bool setAntialiasing(KviKvsObjectFunctionCall *c)
bool setBackGroundMode(KviKvsObjectFunctionCall *c)
bool drawLine(KviKvsObjectFunctionCall *c)
#define o
Definition detector.cpp:80
#define p
Definition detector.cpp:81
#define KVSO_DECLARE_OBJECT(__className)
Definition object_macros.h:33