/*!
\internal
*/
-QSize QRasterPaintEngine::size() const
-{
- Q_D(const QRasterPaintEngine);
- return QSize(d->rasterBuffer->width(), d->rasterBuffer->height());
-}
-
-/*!
- \internal
-*/
#ifndef QT_NO_DEBUG
void QRasterPaintEngine::saveBuffer(const QString &s) const
{
{
if (!state()->WxF)
return false;
- const QTransform &m = state()->matrix;
- return supportsTransformations(fontEngine->fontDef.pixelSize, m);
+ return supportsTransformations(fontEngine->fontDef.pixelSize, state()->matrix);
}
bool QRasterPaintEngine::supportsTransformations(const qreal pixelSize, const QTransform &m) const
}
}
-/*!
- \enum QRasterPaintEngine::ClipType
- \internal
-
- \value RectClip Indicates that the currently set clip is a single rectangle.
- \value ComplexClip Indicates that the currently set clip is a combination of several shapes.
-*/
-
-/*!
- \internal
- Returns the type of the clip currently set.
-*/
-QRasterPaintEngine::ClipType QRasterPaintEngine::clipType() const
-{
- Q_D(const QRasterPaintEngine);
-
- const QClipData *clip = d->clip();
- if (!clip || clip->hasRectClip)
- return RectClip;
- else
- return ComplexClip;
-}
-
-/*!
- \internal
- Returns the bounding rect of the currently set clip.
-*/
-QRect QRasterPaintEngine::clipBoundingRect() const
-{
- Q_D(const QRasterPaintEngine);
-
- const QClipData *clip = d->clip();
-
- if (!clip)
- return d->deviceRect;
-
- if (clip->hasRectClip)
- return clip->clipRect;
-
- return QRect(clip->xmin, clip->ymin, clip->xmax - clip->xmin, clip->ymax - clip->ymin);
-}
-
static void qt_merge_clip(const QClipData *c1, const QClipData *c2, QClipData *result)
{
Q_ASSERT(c1->clipSpanHeight == c2->clipSpanHeight && c1->clipSpanHeight == result->clipSpanHeight);
void drawStaticTextItem(QStaticTextItem *textItem);
- enum ClipType {
- RectClip,
- ComplexClip
- };
- ClipType clipType() const;
- QRect clipBoundingRect() const;
-
#ifdef Q_NO_USING_KEYWORD
inline void drawEllipse(const QRect &rect) { QPaintEngineEx::drawEllipse(rect); }
#else
using QPaintEngineEx::drawEllipse;
#endif
- QSize size() const;
-
#ifndef QT_NO_DEBUG
void saveBuffer(const QString &s) const;
#endif