Image | +--Cursorpublic final class Cursor
Implements a Windows cursor as a WFC object.
Fields
Name | Description |
---|---|
APPSTARTING | Topic under construction. |
ARROW | Topic under construction. |
CROSS | Topic under construction. |
DEFAULT | Topic under construction. |
HELP | Topic under construction. |
HSPLIT | Topic under construction. |
IBEAM | Topic under construction. |
NO | Topic under construction. |
SIZEALL | Topic under construction. |
SIZENESW | Topic under construction. |
SIZENS | Topic under construction. |
SIZENWSE | Topic under construction. |
SIZEWE | Topic under construction. |
UPARROW | Topic under construction. |
VSPLIT | Topic under construction. |
WAIT | Topic under construction. |
Constructors
Name | Description |
---|---|
Cursor(int handle) | Topic under construction. |
Cursor(int handle, boolean fOwned) | Topic under construction. |
Cursor(String fileName) | Topic under construction. |
Cursor(Class type, String resource) | Topic under construction. |
Cursor(IDataStream stream) | Topic under construction. |
Cursor(IStream stream) | Topic under construction. |
Cursor(IPicture picture) | Topic under construction. |
Methods
Name | Description |
---|---|
copyHandle(int h) | Retrieves a copy of the cursor. |
copyHandle() | Retrieves a copy of the cursor. |
drawStretchTo(Graphics g, int x, int y, int width, int height, int rop) | Draws this image to the given DC and stretches it to the given width and height. |
drawTo(Graphics g, int x, int y, int width, int height, int rop) | Draws this image to the given device context (DC). |
finalize() | Topic under construction. |
getClipRect() | Returns the current cursor clipping rectangle in screen coordinates. |
getExtension() | Topic under construction. |
getHandle() | Topic under construction. |
getPICTDESC() | Topic under construction. |
getPosition() | Returns the current cursor position in screen coordinates. |
getSize() | Topic under construction. |
hide() | Hides the cursor. |
setClipRect(Rectangle r) | Sets the cursor clipping rectangle. |
setCurrent() | sets the current system cursor to be this cursor |
setPosition(Point p) | Moves the cursor to the specified screen coordinates. |
show() | Displays the cursor. |
toString() | Topic under construction. |
Topic under construction.
Topic under construction.
Topic under construction.
Topic under construction.
Topic under construction.
Topic under construction.
Topic under construction.
Retrieves a copy of the cursor.
Retrieves a copy of the cursor.
Draws this image to the given DC and stretches it to the given width and height. This is used by Graphics to draw any type of image.
Draws this image to the given device context (DC). This is used by Graphics to draw any type of image.
Topic under construction.
Returns the current cursor clipping rectangle in screen coordinates. If the cursor is not currently clipped, the resulting rectangle contains the dimensions of the entire screen.
Topic under construction.
Topic under construction.
Topic under construction.
Returns the current cursor position in screen coordinates.
Topic under construction.
Hides the cursor. For every call to Cursor.hide(), there must be a balancing call to Cursor.show().
Sets the cursor clipping rectangle. The cursor is confined to the given rectangular area on the screen. If a subsequent cursor position (set by the setClipRect() method or the mouse) lies outside the rectangle, Windows automatically adjusts the position to keep the cursor inside the rectangular area.
sets the current system cursor to be this cursor
Moves the cursor to the specified screen coordinates. If the new coordinates are not within the screen rectangle set by the most recent setClipRect() call, Windows automatically adjusts the coordinates so that the cursor stays within the rectangle.
Displays the cursor. For every call to Cursor.hide(), there must be a balancing call to Cursor.show().
Topic under construction.