QtBase  v6.3.1
Classes | Functions
qrect.h File Reference
#include <QtCore/qhashfunctions.h>
#include <QtCore/qmargins.h>
#include <QtCore/qsize.h>
#include <QtCore/qpoint.h>
Include dependency graph for qrect.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QRect
 The QRect class defines a rectangle in the plane using integer precision. More...
 
class  QRectF
 The QRectF class defines a finite rectangle in the plane using floating point precision. More...
 

Functions

 Q_DECLARE_TYPEINFO (QRect, Q_RELOCATABLE_TYPE)
 
Q_CORE_EXPORT QDataStreamoperator<< (QDataStream &, const QRect &)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &, QRect &)
 
constexpr size_t qHash (const QRect &r, size_t seed=0) noexcept
 
constexpr QRect operator+ (const QRect &rectangle, const QMargins &margins) noexcept
 
constexpr QRect operator+ (const QMargins &margins, const QRect &rectangle) noexcept
 
constexpr QRect operator- (const QRect &lhs, const QMargins &rhs) noexcept
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QRect &)
 
 Q_DECLARE_TYPEINFO (QRectF, Q_RELOCATABLE_TYPE)
 
Q_CORE_EXPORT QDataStreamoperator<< (QDataStream &, const QRectF &)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &, QRectF &)
 
constexpr QRectF operator+ (const QRectF &lhs, const QMarginsF &rhs) noexcept
 
constexpr QRectF operator+ (const QMarginsF &lhs, const QRectF &rhs) noexcept
 
constexpr QRectF operator- (const QRectF &lhs, const QMarginsF &rhs) noexcept
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QRectF &)
 

Function Documentation

◆ operator+() [1/4]

constexpr QRect operator+ ( const QMargins margins,
const QRect rectangle 
)
related

Definition at line 463 of file qrect.h.

◆ operator+() [2/4]

constexpr QRectF operator+ ( const QMarginsF lhs,
const QRectF rhs 
)
related

Definition at line 884 of file qrect.h.

◆ operator+() [3/4]

constexpr QRect operator+ ( const QRect rectangle,
const QMargins margins 
)
related

Definition at line 457 of file qrect.h.

◆ operator+() [4/4]

constexpr QRectF operator+ ( const QRectF lhs,
const QMarginsF rhs 
)
related

Definition at line 878 of file qrect.h.

◆ operator-() [1/2]

constexpr QRect operator- ( const QRect lhs,
const QMargins rhs 
)
related

Definition at line 469 of file qrect.h.

◆ operator-() [2/2]

constexpr QRectF operator- ( const QRectF lhs,
const QMarginsF rhs 
)
related

Definition at line 890 of file qrect.h.

◆ operator<<() [1/4]

Q_CORE_EXPORT QDataStream& operator<< ( QDataStream s,
const QRect r 
)
related

Definition at line 1249 of file qrect.cpp.

◆ operator<<() [2/4]

Q_CORE_EXPORT QDataStream& operator<< ( QDataStream s,
const QRectF r 
)
related

Definition at line 2468 of file qrect.cpp.

◆ operator<<() [3/4]

Q_CORE_EXPORT QDebug operator<< ( QDebug  dbg,
const QRect r 
)

Definition at line 1289 of file qrect.cpp.

Here is the call graph for this function:

◆ operator<<() [4/4]

Q_CORE_EXPORT QDebug operator<< ( QDebug  dbg,
const QRectF r 
)

Definition at line 2500 of file qrect.cpp.

Here is the call graph for this function:

◆ operator>>() [1/2]

Q_CORE_EXPORT QDataStream& operator>> ( QDataStream s,
QRect r 
)
related

Definition at line 1270 of file qrect.cpp.

◆ operator>>() [2/2]

Q_CORE_EXPORT QDataStream& operator>> ( QDataStream s,
QRectF r 
)
related

Definition at line 2485 of file qrect.cpp.

◆ Q_DECLARE_TYPEINFO() [1/2]

Q_DECLARE_TYPEINFO ( QRect  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [2/2]

Q_DECLARE_TYPEINFO ( QRectF  ,
Q_RELOCATABLE_TYPE   
)

◆ qHash()

constexpr size_t qHash ( const QRect r,
size_t  seed = 0 
)
inlineconstexprnoexcept

Definition at line 452 of file qrect.h.