#include <qsize.h>
Definition at line 202 of file qsize.h.
Definition at line 272 of file qsize.h.
int int int int int int h
GLubyte GLubyte GLubyte GLubyte w
Definition at line 275 of file qsize.h.
276 {
return qIsNull(wd) && qIsNull(ht); }
Definition at line 278 of file qsize.h.
279 {
return wd <= 0. || ht <= 0.; }
Definition at line 281 of file qsize.h.
282 {
return wd >= 0. && ht >= 0.; }
Definition at line 290 of file qsize.h.
GLubyte GLubyte GLubyte GLubyte w
void setHeight |
( |
qreal |
h | ) |
|
|
inline |
Definition at line 293 of file qsize.h.
int int int int int int h
Definition at line 296 of file qsize.h.
int int int int int int h
GLubyte GLubyte GLubyte GLubyte w
void scale(qreal w, qreal h, Qt::AspectRatioMode mode)
Definition at line 345 of file qsize.h.
347 return QSizeF(qMax(wd,otherSize.wd), qMax(ht,otherSize.ht));
Definition at line 350 of file qsize.h.
352 return QSizeF(qMin(wd,otherSize.wd), qMin(ht,otherSize.ht));
Definition at line 305 of file qsize.h.
306 { wd += s.wd; ht += s.ht;
return *
this; }
Definition at line 308 of file qsize.h.
309 { wd -= s.wd; ht -= s.ht;
return *
this; }
QSizeF & operator*= |
( |
qreal |
c | ) |
|
|
inline |
Definition at line 311 of file qsize.h.
312 { wd *=
c; ht *=
c;
return *
this; }
QSizeF & operator/= |
( |
qreal |
c | ) |
|
|
inline |
Definition at line 332 of file qsize.h.
334 Q_ASSERT(!qFuzzyIsNull(
c));
335 wd = wd/
c; ht = ht/
c;
Definition at line 355 of file qsize.h.
357 return QSize(qRound(wd), qRound(ht));
Definition at line 314 of file qsize.h.
bool qFuzzyCompare(const QMatrix &m1, const QMatrix &m2)
Definition at line 317 of file qsize.h.
bool qFuzzyCompare(const QMatrix &m1, const QMatrix &m2)
Definition at line 320 of file qsize.h.
321 {
return QSizeF(s1.wd+s2.wd, s1.ht+s2.ht); }
Definition at line 323 of file qsize.h.
324 {
return QSizeF(s1.wd-s2.wd, s1.ht-s2.ht); }
Definition at line 339 of file qsize.h.
341 Q_ASSERT(!qFuzzyIsNull(
c));
The documentation for this class was generated from the following file: