Qt 4.8
Classes | Functions
qregion.h File Reference
#include <QtCore/qatomic.h>
#include <QtCore/qrect.h>
#include <QtGui/qwindowdefs.h>
#include <QtCore/qdatastream.h>

Go to the source code of this file.

Classes

class  QRegion
 The QRegion class specifies a clip region for a painter. More...
 
struct  QRegion::QRegionData
 
class  QVector< T >
 The QVector class is a template class that provides a dynamic array. More...
 

Functions

Q_GUI_EXPORT QDataStreamoperator<< (QDataStream &, const QRegion &)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QRegion &)
 
Q_GUI_EXPORT QDataStreamoperator>> (QDataStream &, QRegion &)
 

Function Documentation

◆ operator<<() [1/2]

Q_GUI_EXPORT QDataStream& operator<< ( QDataStream ,
const QRegion  
)

Referenced by QRegion::operator!=().

◆ operator<<() [2/2]

Q_GUI_EXPORT QDebug operator<< ( QDebug  ,
const QRegion  
)

Definition at line 492 of file qregion.cpp.

493 {
494  QVector<QRect> rects = r.rects();
495  s.nospace() << "QRegion(size=" << rects.size() << "), "
496  << "bounds = " << r.boundingRect() << '\n';
497  for (int i=0; i<rects.size(); ++i)
498  s << "- " << i << rects.at(i) << '\n';
499  return s;
500 }
const T & at(int i) const
Returns the item at index position i in the vector.
Definition: qvector.h:350
int size() const
Returns the number of items in the vector.
Definition: qvector.h:137

◆ operator>>()

Q_GUI_EXPORT QDataStream& operator>> ( QDataStream ,
QRegion  
)

Referenced by QRegion::operator!=().