Size. More...
#include <rsize.h>
Collaboration diagram for RSize:
Public Member Functions | |
RSize (void) | |
RSize (const tCoord w, const tCoord h) | |
RSize (const RSize &size) | |
bool | operator== (const RSize &size) const |
bool | operator!= (const RSize &size) const |
RSize & | operator*= (double factor) |
RSize & | operator+= (const RSize &size) |
RSize & | operator-= (const RSize &size) |
int | Compare (const RSize &size) const |
RSize & | operator= (const RSize &size) |
tCoord | GetWidth (void) const |
tCoord | GetHeight (void) const |
bool | IsValid (void) const |
void | Set (const tCoord w, const tCoord h) |
Static Public Attributes | |
static RSize | Null |
Private Attributes | |
tCoord | Width |
tCoord | Height |
Detailed Description
Size.
This class represent a size.
Constructor & Destructor Documentation
RSize | ( | void | ) |
Construct a null size.
Member Function Documentation
bool operator== | ( | const RSize & | size | ) | const |
The equal operator.
bool operator!= | ( | const RSize & | size | ) | const |
The non-equal operator.
RSize& operator*= | ( | double | factor | ) |
Scale a size.
- Parameters
-
size The point representing the vector used.
Make a translation of the point.
- Parameters
-
size The point representing the vector used.
Make a translation of the point.
- Parameters
-
size The point representing the vector used.
int Compare | ( | const RSize & | size | ) | const |
Compare two points and return 0 if there are at the same position. This function is used with the class RContainer.
- Parameters
-
size Point used for the comparison.
tCoord GetWidth | ( | void | ) | const |
Get the width.
tCoord GetHeight | ( | void | ) | const |
Get the height.
bool IsValid | ( | void | ) | const |
Test if the point is a valid one.
Field Documentation
|
private |
This is the width.
|
private |
This is the height.
|
static |
Represent an invalid point.