QtCore/qsize.h File Reference

qsize.h File Reference

Classes

class  QSize
 
class  QSizeF
 

Functions

 Q_DECLARE_TYPEINFO (QSize, Q_MOVABLE_TYPE)
 
Q_CORE_EXPORT QDataStreamoperator<< (QDataStream &, const QSize &)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &, QSize &)
 
bool operator== (const QSize &s1, const QSize &s2)
 
bool operator!= (const QSize &s1, const QSize &s2)
 
const QSize operator+ (const QSize &s1, const QSize &s2)
 
const QSize operator- (const QSize &s1, const QSize &s2)
 
const QSize operator* (const QSize &s, qreal c)
 
const QSize operator* (qreal c, const QSize &s)
 
const QSize operator/ (const QSize &s, qreal c)
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QSize &)
 
 Q_DECLARE_TYPEINFO (QSizeF, Q_MOVABLE_TYPE)
 
Q_CORE_EXPORT QDataStreamoperator<< (QDataStream &, const QSizeF &)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &, QSizeF &)
 
bool operator== (const QSizeF &s1, const QSizeF &s2)
 
bool operator!= (const QSizeF &s1, const QSizeF &s2)
 
const QSizeF operator+ (const QSizeF &s1, const QSizeF &s2)
 
const QSizeF operator- (const QSizeF &s1, const QSizeF &s2)
 
const QSizeF operator* (const QSizeF &s, qreal c)
 
const QSizeF operator* (qreal c, const QSizeF &s)
 
const QSizeF operator/ (const QSizeF &s, qreal c)
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QSizeF &)
 

Function Documentation

Q_DECLARE_TYPEINFO ( QSize  ,
Q_MOVABLE_TYPE   
)
Q_CORE_EXPORT QDataStream& operator<< ( QDataStream ,
const QSize  
)
Q_CORE_EXPORT QDataStream& operator>> ( QDataStream ,
QSize  
)
bool operator== ( const QSize s1,
const QSize s2 
)
inline

Definition at line 156 of file qsize.h.

157 { return s1.wd == s2.wd && s1.ht == s2.ht; }
bool operator!= ( const QSize s1,
const QSize s2 
)
inline

Definition at line 159 of file qsize.h.

160 { return s1.wd != s2.wd || s1.ht != s2.ht; }
const QSize operator+ ( const QSize s1,
const QSize s2 
)
inline

Definition at line 162 of file qsize.h.

163 { return QSize(s1.wd+s2.wd, s1.ht+s2.ht); }
Definition: qsize.h:53
const QSize operator- ( const QSize s1,
const QSize s2 
)
inline

Definition at line 165 of file qsize.h.

166 { return QSize(s1.wd-s2.wd, s1.ht-s2.ht); }
Definition: qsize.h:53
const QSize operator* ( const QSize s,
qreal  c 
)
inline

Definition at line 168 of file qsize.h.

169 { return QSize(qRound(s.wd*c), qRound(s.ht*c)); }
const GLubyte * c
Definition: GLee.h:5419
Definition: qsize.h:53
const QSize operator* ( qreal  c,
const QSize s 
)
inline

Definition at line 171 of file qsize.h.

172 { return QSize(qRound(s.wd*c), qRound(s.ht*c)); }
const GLubyte * c
Definition: GLee.h:5419
Definition: qsize.h:53
const QSize operator/ ( const QSize s,
qreal  c 
)
inline

Definition at line 181 of file qsize.h.

182 {
183  Q_ASSERT(!qFuzzyIsNull(c));
184  return QSize(qRound(s.wd/c), qRound(s.ht/c));
185 }
const GLubyte * c
Definition: GLee.h:5419
Definition: qsize.h:53
Q_CORE_EXPORT QDebug operator<< ( QDebug  ,
const QSize  
)
Q_DECLARE_TYPEINFO ( QSizeF  ,
Q_MOVABLE_TYPE   
)
Q_CORE_EXPORT QDataStream& operator<< ( QDataStream ,
const QSizeF  
)
Q_CORE_EXPORT QDataStream& operator>> ( QDataStream ,
QSizeF  
)
bool operator== ( const QSizeF s1,
const QSizeF s2 
)
inline

Definition at line 314 of file qsize.h.

315 { return qFuzzyCompare(s1.wd, s2.wd) && qFuzzyCompare(s1.ht, s2.ht); }
bool qFuzzyCompare(const QMatrix &m1, const QMatrix &m2)
Definition: qmatrix.h:172
bool operator!= ( const QSizeF s1,
const QSizeF s2 
)
inline

Definition at line 317 of file qsize.h.

318 { return !qFuzzyCompare(s1.wd, s2.wd) || !qFuzzyCompare(s1.ht, s2.ht); }
bool qFuzzyCompare(const QMatrix &m1, const QMatrix &m2)
Definition: qmatrix.h:172
const QSizeF operator+ ( const QSizeF s1,
const QSizeF s2 
)
inline

Definition at line 320 of file qsize.h.

321 { return QSizeF(s1.wd+s2.wd, s1.ht+s2.ht); }
Definition: qsize.h:202
const QSizeF operator- ( const QSizeF s1,
const QSizeF s2 
)
inline

Definition at line 323 of file qsize.h.

324 { return QSizeF(s1.wd-s2.wd, s1.ht-s2.ht); }
Definition: qsize.h:202
const QSizeF operator* ( const QSizeF s,
qreal  c 
)
inline

Definition at line 326 of file qsize.h.

327 { return QSizeF(s.wd*c, s.ht*c); }
Definition: qsize.h:202
const GLubyte * c
Definition: GLee.h:5419
const QSizeF operator* ( qreal  c,
const QSizeF s 
)
inline

Definition at line 329 of file qsize.h.

330 { return QSizeF(s.wd*c, s.ht*c); }
Definition: qsize.h:202
const GLubyte * c
Definition: GLee.h:5419
const QSizeF operator/ ( const QSizeF s,
qreal  c 
)
inline

Definition at line 339 of file qsize.h.

340 {
341  Q_ASSERT(!qFuzzyIsNull(c));
342  return QSizeF(s.wd/c, s.ht/c);
343 }
Definition: qsize.h:202
const GLubyte * c
Definition: GLee.h:5419
Q_CORE_EXPORT QDebug operator<< ( QDebug  ,
const QSizeF  
)

Go to the source code of this file.