public class Cursor extends GdiObject
Modifier and Type | Class and Description |
---|---|
static class |
Cursor.CursorKind
This enumeration (IDC_*) specifies various types of the cursor.
|
static class |
Cursor.CursorPositionCode
CursorPositionCode class represents the enumeration of the mouse position codes.
|
GdiObject.ImageLoadParameters, GdiObject.ImageType, GdiObject.Type
GDI_ERROR, HGDI_ERROR
INFINITE_TIMEOUT, INVALID_HANDLE_VALUE, STATUS_ABANDONED_WAIT_0, STATUS_TIMEOUT, STATUS_WAIT_0
Constructor and Description |
---|
Cursor() |
Cursor(java.awt.Cursor cursor)
Creates an instance of the native cursor from an AWT cursor.
|
Cursor(long value) |
Modifier and Type | Method and Description |
---|---|
static Point |
getCursorPosition()
Returns the cursor position, in screen coordinates.
|
protected void |
loadCursor(Cursor.CursorKind cursor)
Loads the cursor of a specified type.
|
void |
setCursor(java.awt.Cursor cursor)
Sets the cursor by the specified AWT cursor.
|
static boolean |
setCursorPosition(int x,
int y)
Determines the cursor position, in screen coordinates.
|
deleteObject, getObject, getObjectType
clone, closeHandle, equals, waitFor, waitFor
asFunction, asFunction, asTypedPointer, castTo, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write
public Cursor()
public Cursor(long value)
public Cursor(java.awt.Cursor cursor)
cursor
- an AWT cursorpublic static Point getCursorPosition()
public static boolean setCursorPosition(int x, int y)
x
- horizontal coordinate of the cursory
- vertical coordinate of the cursorprotected void loadCursor(Cursor.CursorKind cursor)
cursor
- type of the cursorpublic void setCursor(java.awt.Cursor cursor)
cursor
- AWT cursor to set