7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qatomic.h>
9#include <QtCore/qrect.h>
10#include <QtGui/qwindowdefs.h>
11#include <QtCore/qcontainerfwd.h>
13#ifndef QT_NO_DATASTREAM
14#include <QtCore/qdatastream.h>
37 :
d(std::exchange(
other.d,
const_cast<QRegionData*
>(&shared_empty))) {}
41 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QRegion)
63 [[nodiscard]]
QRegion translated(
int dx,
int dy)
const;
73 bool intersects(
const QRegion &
r)
const;
78 int rectCount() const noexcept;
101#if defined(Q_OS_WIN) || defined(Q_QDOC)
103 static QRegion fromHRGN(HRGN hrgn);
106#ifndef QT_NO_DATASTREAM
116 friend struct QRegionPrivate;
118#ifndef QT_NO_DATASTREAM
123 QRegionPrivate *qt_rgn;
125 struct QRegionData *
d;
126 static const struct QRegionData shared_empty;
127 static void cleanUp(QRegionData *
x);
135#ifndef QT_NO_DATASTREAM
140#ifndef QT_NO_DEBUG_STREAM
\inmodule QtCore\reentrant
ByteOrder
The byte order used for reading/writing the data.
\inmodule QtCore\reentrant
The QPolygon class provides a list of points using integer precision.
\inmodule QtCore\reentrant
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)
Constructs a new region which is equal to region r.
QRegion united(const QRegion &r) const
QRegion(const QRect &r, RegionType t=Rectangle)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QRect boundingRect() const noexcept
Returns the bounding rectangle of this region.
bool contains(const QRect &r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
QRegion & operator=(const QRegion &)
Assigns r to this region and returns a reference to the region.
void translate(int dx, int dy)
Translates (moves) the region dx along the X axis and dy along the Y axis.
QRegion(const QPolygon &pa, Qt::FillRule fillRule=Qt::OddEvenFill)
Constructs a polygon region from the point array a with the fill rule specified by fillRule.
bool contains(const QPoint &p) const
Returns true if the region contains the point p; otherwise returns false.
const_iterator end() const noexcept
QRegion(QRegion &&other) noexcept
QRegion()
Constructs an empty region.
QRegion intersected(const QRect &r) const
bool isEmpty() const
Returns true if the region is empty; otherwise returns false.
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)
This is an overloaded member function, provided for convenience. It differs from the above function o...
RegionType
Specifies the shape of the region to be created.
QRegion subtracted(const QRegion &r) const
QRegion(const QBitmap &bitmap)
Constructs a region from the bitmap bm.
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
This is an overloaded member function, provided for convenience. It differs from the above function o...
Combined button and popup list for selecting options.
static jboolean copy(JNIEnv *, jobject)
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
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
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QRegion &)
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QRegion &)
QtPrivate::QRegularExpressionMatchIteratorRangeBasedForIterator begin(const QRegularExpressionMatchIterator &iterator)
constexpr void qt_ptr_swap(T *&lhs, T *&rhs) noexcept