Public Member Functions | |
QwtDoubleSize () | |
QwtDoubleSize (double width, double height) | |
QwtDoubleSize (const QSize &) | |
bool | isNull () const |
bool | isEmpty () const |
bool | isValid () const |
double | width () const |
double | height () const |
void | setWidth (double w) |
void | setHeight (double h) |
void | transpose () |
QwtDoubleSize | expandedTo (const QwtDoubleSize &) const |
QwtDoubleSize | boundedTo (const QwtDoubleSize &) const |
double & | rwidth () |
double & | rheight () |
bool | operator== (const QwtDoubleSize &) const |
bool | operator!= (const QwtDoubleSize &) const |
const QwtDoubleSize | operator- () const |
const QwtDoubleSize | operator+ (const QwtDoubleSize &) const |
const QwtDoubleSize | operator- (const QwtDoubleSize &) const |
const QwtDoubleSize | operator * (double) const |
const QwtDoubleSize | operator/ (double) const |
QwtDoubleSize & | operator+= (const QwtDoubleSize &) |
QwtDoubleSize & | operator-= (const QwtDoubleSize &) |
QwtDoubleSize & | operator *= (double c) |
QwtDoubleSize & | operator/= (double c) |
|
Constructs a size with a width and height of 0.0.
|
|
Constructs a size with a width w and height h.
|
|
Copy constructor.
|
|
Returns a size with the minimum width and height of this size and other. |
|
Returns a size with the maximum width and height of this size and other. |
|
Returns the height.
|
|
Returns TRUE if the width is <= 0 or the height is <= 0, otherwise FALSE. |
|
Returns TRUE if the width is 0 and the height is 0; otherwise returns FALSE. |
|
Returns the size formed by multiplying both components by c.
|
|
Returns TRUE if the size is not equal to other; otherwise returns FALSE.
|
|
Returns the size formed by adding both components by the components of other. Each component is added separately. |
|
Adds size other to this size and returns a reference to this size.
|
|
Returns the size formed by subtracting both components by the components of other. Each component is subtracted separately. |
|
Returns the size formed by changing the sign of both components, equivalent to QwtDoubleSize(-width(), -height()); |
|
Subtracts size other from this size and returns a reference to this size.
|
|
Returns the size formed by dividing both components by c.
|
|
Returns TRUE if the size is equal to other; otherwise returns FALSE.
|
|
Returns a reference to the height.
|
|
Returns a reference to the width.
|
|
Sets the height to height.
|
|
Sets the width to width.
|
|
Swaps the values of width and height.
|
|
Returns the width.
|