Public Member Functions | |
DoubleSize () | |
DoubleSize (double width, double height) | |
bool | is_null () const |
bool | is_empty () const |
bool | is_valid () const |
double | get_width () const |
double | get_height () const |
void | set_width (double w) |
void | set_height (double h) |
void | transpose () |
DoubleSize | expanded_to (const DoubleSize &) const |
DoubleSize | bounded_to (const DoubleSize &) const |
bool | operator== (const DoubleSize &) const |
bool | operator!= (const DoubleSize &) const |
const DoubleSize | operator- () const |
const DoubleSize | operator+ (const DoubleSize &) const |
const DoubleSize | operator- (const DoubleSize &) const |
const DoubleSize | operator * (double) const |
const DoubleSize | operator/ (double) const |
DoubleSize & | operator+= (const DoubleSize &) |
DoubleSize & | operator-= (const DoubleSize &) |
DoubleSize & | operator *= (double c) |
DoubleSize & | operator/= (double c) |
|
Constructs a size with a width and height of 0.0.
|
|
Constructs a size with a width w and height h.
|
|
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 the width.
|
|
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 DoubleSize(-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.
|
|
Sets the height to height.
|
|
Sets the width to width.
|
|
Swaps the values of width and height.
|