class TPoint |
Stores a two-dimensional point in Cartesian co-ordinates.
Its data members (iX and iY) are public and can be manipulated directly, or by means of the functions provided. Functions are provided to set and manipulate the point, and to compare points for equality.
Public Member Functions | |
---|---|
TPoint(TUninitialized) | |
TPoint() | |
TPoint(TInt, TInt) | |
IMPORT_C TSize | AsSize() |
IMPORT_C void | SetXY(TInt, TInt) |
IMPORT_C TBool | operator!=(const TPoint &) |
IMPORT_C TPoint | operator+(const TPoint &) |
IMPORT_C TPoint | operator+(const TSize &) |
IMPORT_C TPoint & | operator+=(const TPoint &) |
IMPORT_C TPoint & | operator+=(const TSize &) |
IMPORT_C TPoint | operator-(const TPoint &) |
IMPORT_C TPoint | operator-(const TSize &) |
IMPORT_C TPoint | operator-() |
IMPORT_C TPoint & | operator-=(const TPoint &) |
IMPORT_C TPoint & | operator-=(const TSize &) |
IMPORT_C TBool | operator==(const TPoint &) |
Public Member Enumerations | |
---|---|
enum | TUninitialized { EUninitialized } |
Public Attributes | |
---|---|
TInt | iX |
TInt | iY |
TPoint | ( | TUninitialized | ) | [inline] |
Constructs default point, initialising its iX and iY members to zero.
TUninitialized |
TPoint | ( | TInt | aX, |
TInt | aY | ||
) | [inline] |
Constructs a point with the specified x and y co-ordinates.
IMPORT_C TBool | operator!= | ( | const TPoint & | aPoint | ) | const |
const TPoint & aPoint |
IMPORT_C TPoint | operator+ | ( | const TPoint & | aPoint | ) | const |
const TPoint & aPoint |
IMPORT_C TPoint | operator+ | ( | const TSize & | aSize | ) | const |
const TSize & aSize |
IMPORT_C TPoint & | operator+= | ( | const TPoint & | aPoint | ) |
const TPoint & aPoint |
IMPORT_C TPoint & | operator+= | ( | const TSize & | aSize | ) |
const TSize & aSize |
IMPORT_C TPoint | operator- | ( | const TPoint & | aPoint | ) | const |
const TPoint & aPoint |
IMPORT_C TPoint | operator- | ( | const TSize & | aSize | ) | const |
const TSize & aSize |
IMPORT_C TPoint & | operator-= | ( | const TPoint & | aPoint | ) |
const TPoint & aPoint |
IMPORT_C TPoint & | operator-= | ( | const TSize & | aSize | ) |
const TSize & aSize |
IMPORT_C TBool | operator== | ( | const TPoint & | aPoint | ) | const |
const TPoint & aPoint |