Cursor.this

Constructs a new cursor given a device, image and mask data describing the desired cursor appearance, and the x and y coordinates of the <em>hotspot</em> (that is, the point within the area covered by the cursor which is considered to be where the on-screen pointer is "pointing"). <p> The mask data is allowed to be null, but in this case the source must be an ImageData representing an icon that specifies both color data and mask data. <p> You must dispose the cursor when it is no longer required. </p>

@param device the device on which to allocate the cursor @param source the color data for the cursor @param mask the mask data for the cursor (or null) @param hotspotX the x coordinate of the cursor's hotspot @param hotspotY the y coordinate of the cursor's hotspot

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li> <li>ERROR_NULL_ARGUMENT - if the source is null</li> <li>ERROR_NULL_ARGUMENT - if the mask is null and the source does not have a mask</li> <li>ERROR_INVALID_ARGUMENT - if the source and the mask are not the same size, or if the hotspot is outside the bounds of the image</li> </ul> @exception SWTError <ul> <li>ERROR_NO_HANDLES - if a handle could not be obtained for cursor creation</li> </ul>

  1. this(Device device, int style)
  2. this(Device device, ImageData source, ImageData mask, int hotspotX, int hotspotY)
  3. this(Device device, ImageData source, int hotspotX, int hotspotY)

Meta