IPoint

The IPoint class represent points in two-dimensional space. In addition to all the functions inherited from its base class, IPair, the IPoint class provides additional functions.

OS/2 Considerations

You can also construct objects of this class from a Presentation Manager Toolkit POINTL structure.


IPoint - Member Functions and Data by Group

Constructors & Destructor

You can create, copy, and assign objects of this class. This class uses the compiler-generated copy constructor and assignment operator to copy and assign IPoint objects.


[view class]
IPoint
Construct and destruct an IPoint object.


Overload 1
public:
IPoint(const IPair& pair)

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
public:
IPoint(Coord x, Coord y)

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 3
public:
IPoint(const struct tagPOINT& ptl)

Supported Platforms

Windows OS/2 AIX
Yes No No


Overload 4
public:
IPoint(const struct _POINTL& ptl)

Supported Platforms

Windows OS/2 AIX
Yes Yes No


Overload 5
public:
IPoint()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Conversions

Use these members to return an IPoint object in a different form.


[view class]
asPOINTL
public:
struct _POINTL asPOINTL() const

Renders the point as a Presentation Manager Toolkit POINTL structure.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


Coordinates

Use these members to query and change the x and y coordinates of an IPoint object.


[view class]
setX
public:
IPoint& setX(Coord X)

Sets the point's X-coordinate.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
setY
public:
IPoint& setY(Coord Y)

Sets the point's Y-coordinate.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
x
public:
Coord x() const

Returns the point's X-coordinate.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
y
public:
Coord y() const

Returns the point's Y-coordinate.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IPoint - Inherited Member Functions and Data

Inherited Public Functions

IPair

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data