osncore::CPoint Class Reference

class osncore::CPoint

Defines a two dimensional point data type.

Since
S60 5.0 Draft CPoint
Public Member Functions
CPoint ()
CPoint ( int32 , int32 )
CPoint (const CPoint &)
CSize AsSize ()
bool32 operator!= (const CPoint &)
CPoint & operator+= (const CPoint &)
CPoint & operator-= (const CPoint &)
bool32 operator== (const CPoint &)
Public Attributes
int32 mX
int32 mY

Constructor & Destructor Documentation

CPoint()

CPoint ( ) [inline]

Default constructor, initializing the mX and mY members to zero.

CPoint(int32, int32)

CPoint ( int32 aX,
int32 aY
) [inline]

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]

Copy constructor.

Parameters

const CPoint & aPoint The point object to be copied.

Member Functions Documentation

AsSize()

CSize AsSize ( ) [inline]

Gets a CSize whose width and height are the coordinates of this CPoint .

operator!=(const CPoint &)

bool32 operator!= ( const CPoint & aPoint ) const [inline]

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 & operator+= ( const CPoint & aPoint ) [inline]

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 & operator-= ( const CPoint & aPoint ) [inline]

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 &)

bool32 operator== ( const CPoint & aPoint ) const [inline]

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

int32 mX

int32 mX

int32 mY

int32 mY