44 #include <private/qdebug_p.h>
834 if (
p.x() <=
l ||
p.x() >=
r)
837 if (
p.x() <
l ||
p.x() >
r)
849 if (
p.y() <=
t ||
p.y() >=
b)
852 if (
p.y() <
t ||
p.y() >
b)
889 if (isNull() ||
r.isNull())
907 if (l2 <= l1 || r2 >=
r1)
910 if (l2 < l1 || r2 >
r1)
929 if (t2 <= t1 || b2 >= b1)
932 if (t2 < t1 || b2 > b1)
1001 tmp.x1 = qMin(l1, l2);
1002 tmp.x2 = qMax(
r1,
r2);
1003 tmp.y1 = qMin(
t1,
t2);
1004 tmp.y2 = qMax(b1, b2);
1031 if (isNull() ||
r.isNull())
1043 if (
r.x2 <
r.x1 - 1) {
1048 if (l1 >
r2 || l2 >
r1)
1060 if (
r.y2 <
r.y1 - 1) {
1065 if (
t1 > b2 ||
t2 > b1)
1069 tmp.x1 = qMax(l1, l2);
1070 tmp.x2 = qMin(
r1,
r2);
1071 tmp.y1 = qMax(
t1,
t2);
1072 tmp.y2 = qMin(b1, b2);
1103 if (isNull() ||
r.isNull())
1115 if (
r.x2 <
r.x1 - 1) {
1120 if (l1 >
r2 || l2 >
r1)
1132 if (
r.y2 <
r.y1 - 1) {
1137 if (
t1 > b2 ||
t2 > b1)
1238 #ifndef QT_NO_DATASTREAM
1251 if (
s.version() == 1)
1272 if (
s.version() == 1) {
1288 #ifndef QT_NO_DEBUG_STREAM
1293 dbg <<
"QRect" <<
'(';
1294 QtDebugUtils::formatQRect(dbg,
r);
1971 if (
p.x() <
l ||
p.x() >
r)
1983 if (
p.y() <
t ||
p.y() >
b)
2026 if (l2 < l1 || r2 >
r1)
2047 if (t2 < t1 || b2 > b1)
2226 if (l1 >=
r2 || l2 >=
r1)
2247 if (
t1 >= b2 ||
t2 >= b1)
2251 tmp.xp = qMax(l1, l2);
2252 tmp.yp = qMax(
t1,
t2);
2253 tmp.w = qMin(
r1,
r2) - tmp.xp;
2254 tmp.h = qMin(b1, b2) - tmp.yp;
2304 if (l1 >=
r2 || l2 >=
r1)
2325 if (
t1 >= b2 ||
t2 >= b1)
2353 int xmin = int(
qFloor(xp));
2354 int xmax = int(
qCeil(xp +
w));
2355 int ymin = int(
qFloor(yp));
2356 int ymax = int(
qCeil(yp +
h));
2357 return QRect(xmin, ymin, xmax - xmin, ymax - ymin);
2456 #ifndef QT_NO_DATASTREAM
2470 s << double(
r.x()) << double(
r.y()) << double(
r.width()) << double(
r.height());
2499 #ifndef QT_NO_DEBUG_STREAM
2504 dbg <<
"QRectF" <<
'(';
2505 QtDebugUtils::formatQRect(dbg,
r);
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.
Convenience class for custom QDebug operators.
The QPointF class defines a point in the plane using floating point precision.
The QPoint class defines a point in the plane using integer precision.
The QRectF class defines a finite rectangle in the plane using floating point precision.
QRectF operator|(const QRectF &r) const noexcept
QRect toAlignedRect() const noexcept
bool contains(const QRectF &r) const noexcept
bool intersects(const QRectF &r) const noexcept
QRectF normalized() const noexcept
QRectF operator&(const QRectF &r) const noexcept
The QRect class defines a rectangle in the plane using integer precision.
bool intersects(const QRect &r) const noexcept
QRect normalized() const noexcept
QRect operator&(const QRect &r) const noexcept
bool contains(const QRect &r, bool proper=false) const noexcept
QRect operator|(const QRect &r) const noexcept
auto it unsigned count const
QT_END_INCLUDE_NAMESPACE typedef double qreal
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