Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qregion.cpp File Reference

(4f3142bfce0c64d023299f142d14e60ec577b698)

#include "qregion.h"
#include "qpainterpath.h"
#include "qpolygon.h"
#include "qbuffer.h"
#include "qdatastream.h"
#include "qvariant.h"
#include "qvarlengtharray.h"
#include "qimage.h"
#include "qbitmap.h"
#include "qtransform.h"
#include <memory>
#include <private/qdebug_p.h>
+ Include dependency graph for qregion.cpp:

Go to the source code of this file.

Macros

#define QRGN_SETRECT   1
 
#define QRGN_SETELLIPSE   2
 
#define QRGN_SETPTARRAY_ALT   3
 
#define QRGN_SETPTARRAY_WIND   4
 
#define QRGN_TRANSLATE   5
 
#define QRGN_OR   6
 
#define QRGN_AND   7
 
#define QRGN_SUB   8
 
#define QRGN_XOR   9
 
#define QRGN_RECTS   10
 

Functions

QDebug operator<< (QDebug s, const QRegion &r)
 
bool rect_intersects (const QRect &r1, const QRect &r2)
 
 Q_DECLARE_TYPEINFO (Segment, Q_PRIMITIVE_TYPE)
 
Q_GUI_EXPORT QPainterPath qt_regionToPath (const QRegion &region)
 

Macro Definition Documentation

◆ QRGN_AND

#define QRGN_AND   7

Definition at line 187 of file qregion.cpp.

◆ QRGN_OR

#define QRGN_OR   6

Definition at line 186 of file qregion.cpp.

◆ QRGN_RECTS

#define QRGN_RECTS   10

Definition at line 190 of file qregion.cpp.

◆ QRGN_SETELLIPSE

#define QRGN_SETELLIPSE   2

Definition at line 182 of file qregion.cpp.

◆ QRGN_SETPTARRAY_ALT

#define QRGN_SETPTARRAY_ALT   3

Definition at line 183 of file qregion.cpp.

◆ QRGN_SETPTARRAY_WIND

#define QRGN_SETPTARRAY_WIND   4

Definition at line 184 of file qregion.cpp.

◆ QRGN_SETRECT

#define QRGN_SETRECT   1

Definition at line 181 of file qregion.cpp.

◆ QRGN_SUB

#define QRGN_SUB   8

Definition at line 188 of file qregion.cpp.

◆ QRGN_TRANSLATE

#define QRGN_TRANSLATE   5

Definition at line 185 of file qregion.cpp.

◆ QRGN_XOR

#define QRGN_XOR   9

Definition at line 189 of file qregion.cpp.

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug s,
const QRegion & r )

Definition at line 357 of file qregion.cpp.

References QtDebugUtils::formatQRect(), and rect.

+ Here is the call graph for this function:

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( Segment ,
Q_PRIMITIVE_TYPE  )

◆ qt_regionToPath()

Q_GUI_EXPORT QPainterPath qt_regionToPath ( const QRegion & region)

Definition at line 1007 of file qregion.cpp.

References QPainterPath::addRect(), QRegion::begin(), QRegion::boundingRect(), connect(), QRegion::end(), i, j, rect, QRegion::rectCount(), and QRect::y().

Referenced by QPainter::clipPath(), QGraphicsViewPrivate::findItems(), QTransform::map(), QWin32PrintEngine::updateClipPath(), QGraphicsPixmapItemPrivate::updateShape(), QX11PaintEngine::updateState(), and QWin32PrintEngine::updateState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rect_intersects()

bool rect_intersects ( const QRect & r1,
const QRect & r2 )
inline

Definition at line 601 of file qregion.cpp.

References QRect::bottom(), QRect::left(), r1, r2, QRect::right(), and QRect::top().

Referenced by QRegion::intersects().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: