contains


Description:

public virtual bool contains (double x, double y)

Tests if a given point is contained in the widget.

The coordinates for (x, y) must be in widget coordinates, so (0, 0) is assumed to be the top left of this's content area.

Parameters:

this

the widget to query

x

X coordinate to test, relative to this's origin

y

Y coordinate to test, relative to this's origin

Returns:

true if this contains the point (x, y)