public class X11Cursor extends NativeCursor
| Modifier and Type | Field and Description |
|---|---|
private static int |
CURSOR_HEIGHT |
private static int |
CURSOR_WIDTH |
private long |
pixmap |
private long |
transparentCursor |
private java.nio.ByteBuffer |
transparentCursorBuffer |
protected long |
xdisplay |
private static X |
xLib |
protected long |
xwindow |
isVisible| Constructor and Description |
|---|
X11Cursor() |
| Modifier and Type | Method and Description |
|---|---|
(package private) Size |
getBestSize()
Returns the preferred size of a native cursor.
|
(package private) void |
setHotSpot(int hotspotX,
int hotspotY)
Sets the offset of the cursor's hot spot within the cursor image The hot
spot offsets default to 0, 0.
|
(package private) void |
setImage(byte[] cursorImage)
Set the cursor image to the requested bytes
|
(package private) void |
setLocation(int x,
int y)
For the X11 cursor, we don't do anything to move the cursor - X handles
it for us
|
(package private) void |
setVisibility(boolean visibility)
Set the cursor according to the current visibility and requested
visibility
|
(package private) void |
shutdown()
Performs any necessary shutdown of the cursor infrastructure.
|
getVisiblityprivate static final int CURSOR_WIDTH
private static final int CURSOR_HEIGHT
protected long xdisplay
protected long xwindow
private java.nio.ByteBuffer transparentCursorBuffer
private long transparentCursor
private long pixmap
private static X xLib
Size getBestSize()
NativeCursorgetBestSize in class NativeCursorvoid setVisibility(boolean visibility)
setVisibility in class NativeCursorvisibility - the new setting for the cursor's visibility.void setImage(byte[] cursorImage)
setImage in class NativeCursorcursorImage - the cursor image, in BYTE_BGRA_PRE formatvoid setLocation(int x,
int y)
setLocation in class NativeCursorx - the new X location on the screeny - the new Y location on the screenvoid setHotSpot(int hotspotX,
int hotspotY)
NativeCursorsetHotSpot in class NativeCursorhotspotX - the X offset of the hot spothotspotY - the Y offset of the hot spot.void shutdown()
NativeCursorshutdown in class NativeCursor