43 #include <QtGui/qtguiglobal.h>
44 #include <QtCore/qatomic.h>
45 #include <QtCore/qrect.h>
46 #include <QtGui/qwindowdefs.h>
47 #include <QtCore/qcontainerfwd.h>
49 #ifndef QT_NO_DATASTREAM
50 #include <QtCore/qdatastream.h>
58 struct QRegionPrivate;
73 :
d(qExchange(
other.d,
const_cast<QRegionData*
>(&shared_empty))) {}
99 [[nodiscard]]
QRegion translated(
int dx,
int dy)
const;
109 bool intersects(
const QRegion &
r)
const;
137 #if defined(Q_OS_WIN) || defined(Q_QDOC)
139 static QRegion fromHRGN(HRGN hrgn);
142 #ifndef QT_NO_DATASTREAM
152 friend struct QRegionPrivate;
154 #ifndef QT_NO_DATASTREAM
159 QRegionPrivate *qt_rgn;
161 struct QRegionData *
d;
162 static const struct QRegionData shared_empty;
163 static void cleanUp(QRegionData *
x);
171 #ifndef QT_NO_DATASTREAM
176 #ifndef QT_NO_DEBUG_STREAM
The QBitmap class provides monochrome (1-bit depth) pixmaps.
The QByteArray class provides an array of bytes.
The QDataStream class provides serialization of binary data to a QIODevice.
operator>>(QDataStream &ds, qfloat16 &f)
operator<<(QDataStream &ds, qfloat16 f)
The QDebug class provides an output stream for debugging information.
The QPoint class defines a point in the plane using integer precision.
The QPolygon class provides a list of points using integer precision. \inmodule QtGui.
The QRect class defines a rectangle in the plane using integer precision.
The QRegion class specifies a clip region for a painter.
const QRect * const_iterator
Q_GUI_EXPORT friend bool qt_region_strictContains(const QRegion ®ion, const QRect &rect)
QRegion(const QRegion ®ion)
QRegion united(const QRegion &r) const
QRegion(const QRect &r, RegionType t=Rectangle)
QRect boundingRect() const noexcept
bool contains(const QRect &r) const
QRegion & operator=(const QRegion &)
void translate(int dx, int dy)
QRegion(const QPolygon &pa, Qt::FillRule fillRule=Qt::OddEvenFill)
bool contains(const QPoint &p) const
const_iterator end() const noexcept
QRegion(QRegion &&other) noexcept
QRegion intersected(const QRect &r) const
const_iterator begin() const noexcept
const_reverse_iterator rbegin() const noexcept
const_reverse_iterator crbegin() const noexcept
bool intersects(const QRect &r) const
QRegion xored(const QRegion &r) const
QRegion intersected(const QRegion &r) const
void translate(const QPoint &p)
QRegion subtracted(const QRegion &r) const
QRegion(const QBitmap &bitmap)
std::reverse_iterator< const_iterator > const_reverse_iterator
QRegion united(const QRect &r) const
const_reverse_iterator rend() const noexcept
const_reverse_iterator crend() const noexcept
QRegion translated(const QPoint &p) const
The QVariant class acts like a union for the most common Qt data types.
auto it unsigned count const
const PluginKeyMapConstIterator cend
decltype(auto) cbegin(const T &t)
#define QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(Class)
bool operator==(const QMakeBaseKey &one, const QMakeBaseKey &two)
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLfixed GLfixed GLfixed GLfixed const GLubyte * bitmap
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QRegion &)
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QRegion &)
QtPrivate::QRegularExpressionMatchIteratorRangeBasedForIterator begin(const QRegularExpressionMatchIterator &iterator)
#define Q_DECLARE_SHARED(TYPE)