8#include <private/qdebug_p.h>
798 if (
p.x() <= l ||
p.x() >=
r)
801 if (
p.x() < l ||
p.x() >
r)
813 if (
p.y() <=
t ||
p.y() >=
b)
816 if (
p.y() <
t ||
p.y() >
b)
853 if (isNull() ||
r.isNull())
871 if (l2 <= l1 || r2 >=
r1)
874 if (l2 < l1 || r2 >
r1)
893 if (t2 <= t1 || b2 >= b1)
896 if (t2 < t1 || b2 > b1)
965 tmp.x1 =
qMin(l1, l2);
968 tmp.y2 =
qMax(b1, b2);
995 if (isNull() ||
r.isNull())
1007 if (
r.x2 <
r.x1 - 1) {
1012 if (l1 >
r2 || l2 >
r1)
1024 if (
r.y2 <
r.y1 - 1) {
1029 if (
t1 > b2 ||
t2 > b1)
1033 tmp.x1 =
qMax(l1, l2);
1036 tmp.y2 =
qMin(b1, b2);
1067 if (isNull() ||
r.isNull())
1079 if (
r.x2 <
r.x1 - 1) {
1084 if (l1 >
r2 || l2 >
r1)
1096 if (
r.y2 <
r.y1 - 1) {
1101 if (
t1 > b2 ||
t2 > b1)
1214#ifndef QT_NO_DATASTREAM
1227 if (
s.version() == 1)
1248 if (
s.version() == 1) {
1264#ifndef QT_NO_DEBUG_STREAM
1269 dbg <<
"QRect" <<
'(';
1950 if (
p.x() < l ||
p.x() >
r)
1962 if (
p.y() <
t ||
p.y() >
b)
2005 if (l2 < l1 || r2 >
r1)
2026 if (t2 < t1 || b2 > b1)
2205 if (l1 >=
r2 || l2 >=
r1)
2226 if (
t1 >= b2 ||
t2 >= b1)
2230 tmp.xp =
qMax(l1, l2);
2233 tmp.h =
qMin(b1, b2) - tmp.yp;
2283 if (l1 >=
r2 || l2 >=
r1)
2304 if (
t1 >= b2 ||
t2 >= b1)
2332 int xmin = int(
qFloor(xp));
2333 int xmax = int(
qCeil(xp +
w));
2334 int ymin = int(
qFloor(yp));
2335 int ymax = int(
qCeil(yp +
h));
2336 return QRect(xmin, ymin, xmax - xmin, ymax - ymin);
2435#ifndef QT_NO_DATASTREAM
2449 s << double(
r.x()) << double(
r.y()) << double(
r.width()) << double(
r.height());
2478#ifndef QT_NO_DEBUG_STREAM
2483 dbg <<
"QRectF" <<
'(';
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
QRectF operator|(const QRectF &r) const noexcept
Returns the bounding rectangle of this rectangle and the given rectangle.
QRect toAlignedRect() const noexcept
bool contains(const QRectF &r) const noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool intersects(const QRectF &r) const noexcept
Returns true if this rectangle intersects with the given rectangle (i.e.
QRectF normalized() const noexcept
Returns a normalized rectangle; i.e., a rectangle that has a non-negative width and height.
QRectF operator&(const QRectF &r) const noexcept
Returns the intersection of this rectangle and the given rectangle.
\inmodule QtCore\reentrant
bool intersects(const QRect &r) const noexcept
Returns true if this rectangle intersects with the given rectangle (i.e., there is at least one pixel...
QRect normalized() const noexcept
Returns a normalized rectangle; i.e., a rectangle that has a non-negative width and height.
QRect operator&(const QRect &r) const noexcept
Returns the intersection of this rectangle and the given rectangle.
bool contains(const QRect &r, bool proper=false) const noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
QRect operator|(const QRect &r) const noexcept
Returns the bounding rectangle of this rectangle and the given rectangle.
Combined button and popup list for selecting options.
static void formatQRect(QDebug &debug, const Rect &rect)
constexpr const T & qMin(const T &a, const T &b)
constexpr const T & qMax(const T &a, const T &b)
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLuint GLfloat GLfloat GLfloat GLfloat y1
GLuint GLfloat GLfloat GLfloat x1
GLdouble GLdouble GLdouble GLdouble top
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t1
[4]
GLfloat GLfloat GLfloat GLfloat h
GLfixed GLfixed GLfixed y2
QDataStream & operator<<(QDataStream &s, const QRect &r)
QDataStream & operator>>(QDataStream &s, QRect &r)