qskinny/src/graphic/QskGraphicPaintEngine.h

44 lines
1.3 KiB
C
Raw Normal View History

2017-07-21 18:21:34 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_PAINT_ENGINE_H
#define QSK_PAINT_ENGINE_H
#include "QskGlobal.h"
2018-07-19 14:10:48 +02:00
#include <qpaintengine.h>
2017-07-21 18:21:34 +02:00
2018-07-31 17:32:25 +02:00
class QSK_EXPORT QskGraphicPaintEngine final : public QPaintEngine
2017-07-21 18:21:34 +02:00
{
2018-08-03 08:15:28 +02:00
public:
2017-07-21 18:21:34 +02:00
QskGraphicPaintEngine();
2018-07-31 17:32:25 +02:00
~QskGraphicPaintEngine() override;
2017-07-21 18:21:34 +02:00
2018-07-31 17:32:25 +02:00
bool begin( QPaintDevice* ) override;
bool end() override;
2017-07-21 18:21:34 +02:00
2018-08-03 08:15:28 +02:00
Type type() const override;
2017-07-21 18:21:34 +02:00
2018-07-31 17:32:25 +02:00
void updateState( const QPaintEngineState& state ) override;
2017-07-21 18:21:34 +02:00
2018-07-31 17:32:25 +02:00
void drawPath( const QPainterPath& path ) override;
2017-07-21 18:21:34 +02:00
2018-07-31 17:32:25 +02:00
void drawPolygon( const QPointF* points,
int pointCount, PolygonDrawMode mode ) override;
2017-07-21 18:21:34 +02:00
2018-07-31 17:32:25 +02:00
void drawPolygon( const QPoint* points,
int pointCount, PolygonDrawMode mode ) override;
2017-07-21 18:21:34 +02:00
2018-07-31 17:32:25 +02:00
void drawPixmap( const QRectF& rect,
const QPixmap& pixmap, const QRectF& subRect ) override;
2017-07-21 18:21:34 +02:00
2018-07-31 17:32:25 +02:00
void drawImage( const QRectF& rect,
2017-07-21 18:21:34 +02:00
const QImage& image, const QRectF& subRect,
2018-07-31 17:32:25 +02:00
Qt::ImageConversionFlags flags ) override;
void drawTextItem( const QPointF&, const QTextItem& ) override;
2017-07-21 18:21:34 +02:00
};
#endif