osncore::CPoint Class Reference
Defines a two dimensional point data type.
Constructor & Destructor Documentation
CPoint()
Default constructor, initializing the mX and mY members to zero.
CPoint(int32, int32)
Parameterized constructor.
Parameters
int32 aX | The first coordinate of the point. |
int32 aY | The second coordinate of the point. |
CPoint(const CPoint &)
CPoint | ( | const CPoint & | aPoint | ) | [inline] |
Parameters
const CPoint & aPoint | The point object to be copied. |
Member Functions Documentation
AsSize()
Gets a CSize whose width and height are the coordinates of this CPoint.
operator!=(const CPoint &)
Compares two points for inequality.
For two points to be unequal, either their x or their y coordinate values must be different.
Parameters
const CPoint & aPoint | The point to be compared with this point. |
operator+=(const CPoint &)
CPoint addition assignment operator.
The operator adds the specified CPoint to this CPoint, and assigns the result back to this CPoint.
Parameters
const CPoint & aPoint | The CPoint to be added. |
operator-=(const CPoint &)
CPoint subtraction assignment operator.
The operator substracts the specified CPoint from this CPoint, and assigns the result back to this CPoint.
Parameters
const CPoint & aPoint | The CPoint to be substracted. |
operator==(const CPoint &)
Compares two points for equality.
For two points to be equal, both their x and y coordinate values must be equal.
Parameters
const CPoint & aPoint | The point to be compared with this point. |
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.