CPoint

#include <vstgui.h>

struct CPoint;

Structure used for the definition and support of the point in pixel.


CPoint

1.0

CPoint (long h = 0, long v = 0);

-

[CPoint]


operator ()

1.0

CPoint &operator () (long h, long v);

Overloads the () operator.


isInside

1.0

bool isInside (CRect& r);

Returns true if the point is inside the rectangle.

Example :

CRect myRect (0, 0, 100, 200);
CPoint myPoint (12, 23);
if (myPoint.inside (myRect)) {
    ...
}

operator ==

2.1

bool operator == (const CPoint &other) const;

Overloads the == operator.


operator !=

2.1

bool operator != (const CPoint &other) const;

Overloads the != operator.


offset

2.1

CPoint &offset (long x, long y);

Adds an offset to the point.


Copyright ©2003 Steinberg Media Technologies GmbH. All Rights Reserved.