diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2009-09-29 15:08:41 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2009-10-02 15:57:17 (GMT) |
commit | 385176ad28b3a79bcd196d2d529c4bf7abd4fcc0 (patch) | |
tree | e50e39712472bc672308dac1770261587b3f98b6 /src/gui/painting/qdrawutil.h | |
parent | 4f7d94ca73556f3a40631ad07f565995f6f85176 (diff) | |
download | Qt-385176ad28b3a79bcd196d2d529c4bf7abd4fcc0.zip Qt-385176ad28b3a79bcd196d2d529c4bf7abd4fcc0.tar.gz Qt-385176ad28b3a79bcd196d2d529c4bf7abd4fcc0.tar.bz2 |
Added support for drawing a pixmap multiple times in one call.
This is internal API.
It's possible to specify a horizontal and vertical scale, rotation,
opacity and source rectangle for each pixmap item.
Useful for particle effects.
Reviewed-by: Trond
Diffstat (limited to 'src/gui/painting/qdrawutil.h')
-rw-r--r-- | src/gui/painting/qdrawutil.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/painting/qdrawutil.h b/src/gui/painting/qdrawutil.h index 22a57e9..98a36a7 100644 --- a/src/gui/painting/qdrawutil.h +++ b/src/gui/painting/qdrawutil.h @@ -158,6 +158,18 @@ inline void qDrawBorderPixmap(QPainter *painter, qDrawBorderPixmap(painter, target, margins, pixmap, pixmap.rect(), margins); } +struct QDrawPixmapsData +{ + QPointF point; + QRectF source; + qreal scaleX; + qreal scaleY; + qreal rotation; + qreal opacity; +}; + +Q_GUI_EXPORT void qDrawPixmaps(QPainter *painter, const QDrawPixmapsData *drawingData, int dataCount, const QPixmap &pixmap); + QT_END_NAMESPACE QT_END_HEADER |