356 targetRect = q->state()->matrix.mapRect(rect);
367 for (
int i = 0; i < rects.
size(); ++i) {
369 if (!intersectRect.
isEmpty()) {
379 if (targetRect.
x() >= 0 && targetRect.
y() >= 0
380 && targetRect.
width() <= q->paintDevice()->width()
381 && targetRect.
height() <= q->paintDevice()->height()) {
388 QRectF deviceRect(0, 0, q->paintDevice()->width(), q->paintDevice()->height());
virtual void fillRect(const QRectF &rect, const QColor &color)=0
qreal y() const
Returns the y-coordinate of the rectangle's top edge.
QRect intersected(const QRect &other) const
Returns the intersection of this rectangle and the given rectangle.
The QRectF class defines a rectangle in the plane using floating point precision. ...
qreal height() const
Returns the height of the rectangle.
qreal width() const
Returns the width of the rectangle.
QRect toRect() const
Returns a QRect based on the values of this rectangle.
QBlittablePixmapData * pmData
const T & at(int i) const
Returns the item at index position i in the vector.
bool isEmpty() const
Returns true if the rectangle is empty, otherwise returns false.
virtual void alphaFillRect(const QRectF &rect, const QColor &color, QPainter::CompositionMode cmode)
qreal x() const
Returns the x-coordinate of the rectangle's left edge.
QVector< QRect > rects() const
Returns an array of non-overlapping rectangles that make up the region.
The QRect class defines a rectangle in the plane using integer precision.
const QClipData * clip() const
QBlittable * blittable() const
int size() const
Returns the number of items in the vector.
void unmarkRasterOverlay(const QRectF &)