Region.contains

Returns <code>true</code> if the given point is inside the area specified by the receiver, and <code>false</code> otherwise.

@param pt the point to test for containment @return <code>true</code> if the region contains the point and <code>false</code> otherwise

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the argument is null</li> </ul> @exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>

  1. bool contains(int x, int y)
  2. bool contains(Point pt)
    class Region
    bool
    contains

Meta