contains


Description:

public virtual bool contains (double x, double y)

Tests if the point at (x, y) is contained in this.

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 (x, y).