8#include <private/qdebug_p.h>
802 if (
p.x() <= l ||
p.x() >=
r)
805 if (
p.x() < l ||
p.x() >
r)
817 if (
p.y() <=
t ||
p.y() >=
b)
820 if (
p.y() <
t ||
p.y() >
b)
857 if (isNull() ||
r.isNull())
875 if (l2 <= l1 || r2 >=
r1)
878 if (l2 < l1 || r2 >
r1)
897 if (t2 <= t1 || b2 >= b1)
900 if (t2 < t1 || b2 > b1)
969 tmp.x1 =
qMin(l1, l2);
972 tmp.y2 =
qMax(b1, b2);
999 if (isNull() ||
r.isNull())
1011 if (
r.x2 <
r.x1 - 1) {
1016 if (l1 >
r2 || l2 >
r1)
1028 if (
r.y2 <
r.y1 - 1) {
1033 if (
t1 > b2 ||
t2 > b1)
1037 tmp.x1 =
qMax(l1, l2);
1040 tmp.y2 =
qMin(b1, b2);
1071 if (isNull() ||
r.isNull())
1083 if (
r.x2 <
r.x1 - 1) {
1088 if (l1 >
r2 || l2 >
r1)
1100 if (
r.y2 <
r.y1 - 1) {
1105 if (
t1 > b2 ||
t2 > b1)
1218#ifndef QT_NO_DATASTREAM
1231 if (
s.version() == 1)
1252 if (
s.version() == 1) {
1268#ifndef QT_NO_DEBUG_STREAM
1273 dbg <<
"QRect" <<
'(';
1958 if (
p.x() < l ||
p.x() >
r)
1970 if (
p.y() <
t ||
p.y() >
b)
2013 if (l2 < l1 || r2 >
r1)
2034 if (t2 < t1 || b2 > b1)
2213 if (l1 >=
r2 || l2 >=
r1)
2234 if (
t1 >= b2 ||
t2 >= b1)
2238 tmp.xp =
qMax(l1, l2);
2241 tmp.h =
qMin(b1, b2) - tmp.yp;
2291 if (l1 >=
r2 || l2 >=
r1)
2312 if (
t1 >= b2 ||
t2 >= b1)
2340 int xmin = int(
qFloor(xp));
2341 int xmax = int(
qCeil(xp +
w));
2342 int ymin = int(
qFloor(yp));
2343 int ymax = int(
qCeil(yp +
h));
2344 return QRect(xmin, ymin, xmax - xmin, ymax - ymin);
2459#ifndef QT_NO_DATASTREAM
2473 s << double(
r.x()) << double(
r.y()) << double(
r.width()) << double(
r.height());
2502#ifndef QT_NO_DEBUG_STREAM
2507 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)