Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qrect.h File Reference

(9d4e1b9f8d36821ee7a38ca6485c7a9ad57cb27b)

#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
 \inmodule QtCore\reentrant More...
 
class  QRectF
 \inmodule QtCore\reentrant 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 436 of file qrect.h.

◆ operator+() [2/4]

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

Definition at line 877 of file qrect.h.

◆ operator+() [3/4]

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

Definition at line 430 of file qrect.h.

◆ operator+() [4/4]

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

Definition at line 871 of file qrect.h.

◆ operator-() [1/2]

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

Definition at line 442 of file qrect.h.

◆ operator-() [2/2]

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

Definition at line 883 of file qrect.h.

◆ operator<<() [1/4]

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

Definition at line 1229 of file qrect.cpp.

◆ operator<<() [2/4]

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

Definition at line 2471 of file qrect.cpp.

◆ operator<<() [3/4]

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

Definition at line 1269 of file qrect.cpp.

References QtDebugUtils::formatQRect().

+ Here is the call graph for this function:

◆ operator<<() [4/4]

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

Definition at line 2503 of file qrect.cpp.

References QtDebugUtils::formatQRect().

+ Here is the call graph for this function:

◆ operator>>() [1/2]

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

Definition at line 1250 of file qrect.cpp.

◆ operator>>() [2/2]

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

Definition at line 2488 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 425 of file qrect.h.