class MX6Cursor extends NativeCursor
Modifier and Type | Class and Description |
---|---|
private static class |
MX6Cursor.MXCFBColorKey |
private static class |
MX6Cursor.MXCFBGblAlpha |
private static class |
MX6Cursor.MXCFBPos |
Modifier and Type | Field and Description |
---|---|
private MX6Cursor.MXCFBGblAlpha |
alpha |
private static int |
CURSOR_HEIGHT |
private static int |
CURSOR_WIDTH |
private java.nio.Buffer |
cursorBuffer |
private int |
cursorX |
private int |
cursorY |
private long |
fd |
private int |
hotspotX |
private int |
hotspotY |
private java.nio.Buffer |
offsetCursorBuffer |
private java.nio.ByteBuffer |
offsetCursorByteBuffer |
private int |
offsetX |
private int |
offsetY |
private MX6Cursor.MXCFBPos |
pos |
private int |
screenHeight |
private int |
screenWidth |
private static int |
SHORT_KEY |
private LinuxSystem |
system |
isVisible
Constructor and Description |
---|
MX6Cursor() |
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)
Sets the cursor image
|
(package private) void |
setLocation(int x,
int y)
Sets the location of the hot spot of the cursor on the screen
|
(package private) void |
setVisibility(boolean visibility)
Sets whether or not the cursor is visible.
|
(package private) void |
shutdown()
Performs any necessary shutdown of the cursor infrastructure.
|
private void |
updateImage(boolean always) |
getVisiblity
private int hotspotX
private int hotspotY
private int offsetX
private int offsetY
private int cursorX
private int cursorY
private static final int SHORT_KEY
private static final int CURSOR_WIDTH
private static final int CURSOR_HEIGHT
private java.nio.Buffer cursorBuffer
private java.nio.Buffer offsetCursorBuffer
private java.nio.ByteBuffer offsetCursorByteBuffer
private int screenWidth
private int screenHeight
private LinuxSystem system
private MX6Cursor.MXCFBPos pos
private MX6Cursor.MXCFBGblAlpha alpha
private long fd
Size getBestSize()
NativeCursor
getBestSize
in class NativeCursor
void setVisibility(boolean visibility)
NativeCursor
setVisibility
in class NativeCursor
visibility
- the new setting for the cursor's visibility.private void updateImage(boolean always)
void setImage(byte[] cursorImage)
NativeCursor
setImage
in class NativeCursor
cursorImage
- the cursor image, in BYTE_BGRA_PRE formatvoid setLocation(int x, int y)
NativeCursor
setLocation
in class NativeCursor
x
- the new X location on the screeny
- the new Y location on the screenvoid setHotSpot(int hotspotX, int hotspotY)
NativeCursor
setHotSpot
in class NativeCursor
hotspotX
- the X offset of the hot spothotspotY
- the Y offset of the hot spot.void shutdown()
NativeCursor
shutdown
in class NativeCursor