Location:
e32std.h
Link against: euser.lib
TPoint
Supported from 5.0
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.
Defined in TPoint
:
AsSize()
, SetXY()
, TPoint()
, iX
, iY
, operator!=()
, operator+()
, operator+=()
, operator-()
, operator-=()
, operator==()
TPoint(TInt aX,TInt aY);
Constructs a point with the specified x and y co-ordinates.
|
void SetXY(TInt aX,TInt aY);
Sets the x and y co-ordinates for this point.
|
TPoint& operator-=(const TPoint& aPoint);
TPoint
subtraction assignment operator.
The operator subtracts the specified point from this point, and assigns the result back to this point.
|
|
TPoint& operator-=(const TSize& aSize);
TSize
subtraction assignment operator.
The operator subtracts the specified TSize
from
this point, and assigns the result back to this point.
The operation proceeds by:
subtracting the width value of the TSize
from
the x co-ordinate value
subtracting the height value of the TSize
from the y co-ordinate value
|
|
TPoint& operator+=(const TPoint& aPoint);
TPoint
addition assignment operator.
The operator adds the specified point to this point, and assigns the result back to this point.
|
|
TPoint& operator+=(const TSize& aSize);
TSize
addition assignment operator.
The operator adds the specified TSize
to this
point, and assigns the result back to this point.
The operation proceeds by:
adding the width value of the TSize
to the x
co-ordinate value
adding the height value of the TSize
to the y
co-ordinate value
|
|
TInt operator==(const TPoint& aPoint) const;
Compares two points for equality.
For two points to be equal, both their x and y co-ordinate values must be equal.
|
|
TInt operator!=(const TPoint& aPoint) const;
Compares two points for inequality.
For two points to be unequal, either their x or their y co-ordinate values must be different.
|
|
TPoint operator-(const TPoint& aPoint) const;
TPoint
subtraction operator.
The operator subtracts the specified point from this point, and returns the resulting value.
|
|
TPoint operator-(const TSize& aSize) const;
TSize
subtraction operator.
The operator subtracts the specified TSize
from
this point, and returns the resulting value.
The operation proceeds by:
subtracting the width value of the TSize
from
the x co-ordinate value
subtracting the height value of the TSize
from
the y co-ordinate value.
|
|
TPoint operator-() const;
Unary minus operator.
The operator returns the negation of this point.
|
TPoint operator+(const TPoint& aPoint) const;
The operator adds the specified point to this point, and returns the resulting value.
|
|
TPoint operator+(const TSize& aSize) const;
TSize
addition operator.
The operator adds the specified TSize
to this
point, and returns the resulting value.
The operation proceeds by:
adding the width value of the TSize
to the x
co-ordinate value
adding the height value of the TSize
to the y
co-ordinate value.
|
|
TSize AsSize() const;
Gets the size of the rectangle whose top left hand corner is the origin of the screen co-ordinates and whose bottom right hand corner is this point.
|
TInt iY
The y co-ordinate.