My Project
Public Member Functions | Friends | List of all members
ParaEngine::QSize Class Reference

The QSize class defines the size of a two-dimensional object using integer point precision. More...

#include <ParaSize.h>

Public Member Functions

 QSize (int w, int h)
 
bool isNull () const
 
bool isEmpty () const
 
bool isValid () const
 
int width () const
 
int height () const
 
void setWidth (int w)
 
void setHeight (int h)
 
void transpose ()
 
QSize transposed () const
 
void scale (int w, int h)
 
void scale (const QSize &s)
 
QSize scaled (int w, int h) const
 
QSize scaled (const QSize &s) const
 
QSize expandedTo (const QSize &) const
 
QSize boundedTo (const QSize &) const
 
int & rwidth ()
 
int & rheight ()
 
QSizeoperator+= (const QSize &)
 
QSizeoperator-= (const QSize &)
 
QSizeoperator*= (float c)
 
QSizeoperator/= (float c)
 

Friends

bool operator== (const QSize &, const QSize &)
 
bool operator!= (const QSize &, const QSize &)
 
const QSize operator+ (const QSize &, const QSize &)
 
const QSize operator- (const QSize &, const QSize &)
 
const QSize operator* (const QSize &, float)
 
const QSize operator* (float, const QSize &)
 
const QSize operator/ (const QSize &, float)
 

Detailed Description

The QSize class defines the size of a two-dimensional object using integer point precision.


The documentation for this class was generated from the following files: