Eneboo - Documentación para desarrolladores
|
#include <qwt_double_rect.h>
Métodos públicos | |
QwtDoubleSize () | |
Constructs an invalid size. | |
QwtDoubleSize (double width, double height) | |
Constructs a size with width width and height height. | |
QwtDoubleSize (const QSize &) | |
Constructs a size with floating point accuracy from the given size. | |
bool | isNull () const |
bool | isEmpty () const |
bool | isValid () const |
double | width () const |
Returns the width. | |
double | height () const |
Returns the height. | |
void | setWidth (double w) |
Sets the width to width. | |
void | setHeight (double h) |
Sets the height to height. | |
void | transpose () |
Swaps the width and height values. | |
QwtDoubleSize | expandedTo (const QwtDoubleSize &) const |
QwtDoubleSize | boundedTo (const QwtDoubleSize &) const |
bool | operator== (const QwtDoubleSize &) const |
Returns true if s1 and s2 are equal; otherwise returns false. | |
bool | operator!= (const QwtDoubleSize &) const |
Returns true if s1 and s2 are different; otherwise returns false. | |
const QwtDoubleSize | operator+ (const QwtDoubleSize &) const |
const QwtDoubleSize | operator- (const QwtDoubleSize &) const |
const QwtDoubleSize | operator* (double) const |
Returns the size formed by multiplying both components by c. | |
const QwtDoubleSize | operator/ (double) const |
Returns the size formed by dividing both components by c. | |
QwtDoubleSize & | operator+= (const QwtDoubleSize &) |
Adds size other to this size and returns a reference to this size. | |
QwtDoubleSize & | operator-= (const QwtDoubleSize &) |
Subtracts size other from this size and returns a reference to this size. | |
QwtDoubleSize & | operator*= (double c) |
QwtDoubleSize & | operator/= (double c) |
The QwtDoubleSize class defines a size in double coordinates
QwtDoubleSize::QwtDoubleSize | ( | ) |
Constructs an invalid size.
QwtDoubleSize::QwtDoubleSize | ( | double | width, |
double | height | ||
) |
Constructs a size with width width and height height.
QwtDoubleSize::QwtDoubleSize | ( | const QSize & | sz | ) |
Constructs a size with floating point accuracy from the given size.
QwtDoubleSize QwtDoubleSize::boundedTo | ( | const QwtDoubleSize & | other | ) | const |
Returns a size with the minimum width and height of this size and other.
QwtDoubleSize QwtDoubleSize::expandedTo | ( | const QwtDoubleSize & | other | ) | const |
Returns a size with the maximum width and height of this size and other.
double QwtDoubleSize::height | ( | ) | const [inline] |
Returns the height.
bool QwtDoubleSize::isEmpty | ( | void | ) | const [inline] |
Returns true if the width is <= 0.0 or the height is <= 0.0, otherwise false.
bool QwtDoubleSize::isNull | ( | ) | const [inline] |
Returns true if the width is 0 and the height is 0; otherwise returns false.
bool QwtDoubleSize::isValid | ( | void | ) | const [inline] |
Returns true if the width is equal to or greater than 0.0 and the height is equal to or greater than 0.0; otherwise returns false.
bool QwtDoubleSize::operator!= | ( | const QwtDoubleSize & | other | ) | const |
Returns true if s1 and s2 are different; otherwise returns false.
const QwtDoubleSize QwtDoubleSize::operator* | ( | double | c | ) | const |
Returns the size formed by multiplying both components by c.
QwtDoubleSize & QwtDoubleSize::operator*= | ( | double | c | ) |
const QwtDoubleSize QwtDoubleSize::operator+ | ( | const QwtDoubleSize & | other | ) | const |
Returns the size formed by adding both components by the components of other. Each component is added separately.
QwtDoubleSize & QwtDoubleSize::operator+= | ( | const QwtDoubleSize & | other | ) |
Adds size other to this size and returns a reference to this size.
const QwtDoubleSize QwtDoubleSize::operator- | ( | const QwtDoubleSize & | other | ) | const |
Returns the size formed by subtracting both components by the components of other. Each component is subtracted separately.
QwtDoubleSize & QwtDoubleSize::operator-= | ( | const QwtDoubleSize & | other | ) |
Subtracts size other from this size and returns a reference to this size.
const QwtDoubleSize QwtDoubleSize::operator/ | ( | double | c | ) | const |
Returns the size formed by dividing both components by c.
QwtDoubleSize & QwtDoubleSize::operator/= | ( | double | c | ) |
bool QwtDoubleSize::operator== | ( | const QwtDoubleSize & | other | ) | const |
Returns true if s1 and s2 are equal; otherwise returns false.
void QwtDoubleSize::setHeight | ( | double | h | ) | [inline] |
Sets the height to height.
void QwtDoubleSize::setWidth | ( | double | w | ) | [inline] |
Sets the width to width.
void QwtDoubleSize::transpose | ( | ) |
Swaps the width and height values.
double QwtDoubleSize::width | ( | ) | const [inline] |
Returns the width.