QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskGraphicPaintEngine.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_PAINT_ENGINE_H
7#define QSK_PAINT_ENGINE_H
8
9#include "QskGlobal.h"
10#include <qpaintengine.h>
11
12class QSK_EXPORT QskGraphicPaintEngine final : public QPaintEngine
13{
14 public:
16 ~QskGraphicPaintEngine() override;
17
18 bool begin( QPaintDevice* ) override;
19 bool end() override;
20
21 Type type() const override;
22
23 void updateState( const QPaintEngineState& state ) override;
24
25 void drawPath( const QPainterPath& path ) override;
26
27 void drawPolygon( const QPointF* points,
28 int pointCount, PolygonDrawMode mode ) override;
29
30 void drawPolygon( const QPoint* points,
31 int pointCount, PolygonDrawMode mode ) override;
32
33 void drawPixmap( const QRectF& rect,
34 const QPixmap& pixmap, const QRectF& subRect ) override;
35
36 void drawImage( const QRectF& rect,
37 const QImage& image, const QRectF& subRect,
38 Qt::ImageConversionFlags flags ) override;
39
40 void drawTextItem( const QPointF&, const QTextItem& ) override;
41};
42
43#endif