This struct contains real-valued width and height fields. More...
#include "gtypes.h"
Public Member Functions | |
GDimension(double width, double height) | |
Creates a GDimension object with the specified width and height coordinates. More... | |
GDimension() | |
string | toString() const |
Converts the GDimension to a string in the form "(</code><i>width</i><code>,</code> <i>height</i><code>)" . More... | |
Public Attributes | |
double | height |
double | width |
This struct contains real-valued width and height fields.
It is used to indicate the size of a graphical object.
GDimension | ( | double | width, |
double | height | ||
) |
Creates a GDimension
object with the specified width
and height
coordinates.
GDimension | ( | ) |
string toString | ( | ) | const |
Converts the GDimension
to a string in the form "(</code><i>width</i><code>,</code> <i>height</i><code>)"
.
|
friend |
Compares two GDimension objects for inequality.
|
friend |
Multiplies the width and height of the given GDimension object by the given scale factor and returns the scaled dimension object.
|
friend |
Relational operators that compare two GDimension objects by width and then by height.
|
friend |
Writes the GDimension to the given output stream.
|
friend |
Relational operators that compare two GDimension objects by width and then by height.
|
friend |
Compares two GDimension objects for equality.
|
friend |
Relational operators that compare two GDimension objects by width and then by height.
|
friend |
Relational operators that compare two GDimension objects by width and then by height.
double height |
double width |