Graphisoft®

Dialog ManagerVersion: 2.0

Rect::Contains

Checks if the rectangle contains the specified point.

bool Contains (const Point & pt) const;

Checks if the rectangle contains the specified point, given with a Point.

bool Contains (
    short               x,
    short               y
) const;

Checks if the rectangle contains the specified point, given with x and y coordinates.

Parameters

pt
The Point, which has to be examined.
x
The horizontal coordinate of the point, which has to be examined.
y
The vertical coordinate of the point, which has to be examined.

Return Value

true, if the rectangle contains the specified point, otherwise false.