osncore::CPoint Class Reference
Defines a two dimensional point data type.
Public Attributes
|
int32
|
mX
|
int32
|
mY
|
Constructor & Destructor Documentation
CPoint()
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]
|
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
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 &)
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
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.