Cursor Methods

Overview | Fields | This Package | All Packages

Cursor Methods

Constructors Description
Cursor Creates a Cursor object.

Methods Description
clone Clones the Cursor object and returns a duplicate.

copyHandle Retrieves a copy of the Win32 handle for the cursor on which this object is based. When you copy a cursor handle, you own the handle and are responsible for freeing it.

destroyHandle Called when this object is going to destroy its Win32 handle.

dispose Frees all the resources allocated by this object.

drawStretchTo Renders the cursor to a Graphics object, stretching the cursor to fill specified dimensions.

drawTo Renders the bitmap image (or part of it) to a Graphics object, cropping the image to fit specified dimensions.

finalize Frees the resources allocated by the Cursor object.

getClip Retrieves the current cursor's clipping rectangle in screen coordinates.

getExtension Retrieves the recommended file extension for this object.

getHandle Retrieves the Win32 handle to this cursor.

getPICTDESC Retrieves a PICTDESC (Picture Descriptor) for this cursor. The PICTDESC structure is used by OLE functions to create picture objects.

getPosition Retrieves the screen coordinates for the cursor's current position.

getSize Retrieves the size of the cursor, in pixels.

hide Hides the cursor.

setClip Specifies the cursor's clipping rectangle.

setCurrent Sets the current system cursor as the cursor for this object.

setPosition Moves the cursor to the specified position (in screen coordinates).

show Displays the cursor.

toString Retrieves a string representation of this Cursor object.