|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lwjgl.input.Cursor
public class Cursor
A class representing a native cursor. Instances of this class can be used with Mouse.setCursor(), if available.
Field Summary | |
---|---|
static int |
CURSOR_8_BIT_ALPHA
8 bit alhpa native cursor |
static int |
CURSOR_ANIMATION
animation native cursor |
static int |
CURSOR_ONE_BIT_TRANSPARENCY
1 bit transparency for native cursor |
Constructor Summary | |
---|---|
Cursor(int width,
int height,
int xHotspot,
int yHotspot,
int numImages,
java.nio.IntBuffer images,
java.nio.IntBuffer delays)
Constructs a new Cursor, with the given parameters. |
Method Summary | |
---|---|
void |
destroy()
Destroy the native cursor. |
static int |
getCapabilities()
Get the capabilities of the native cursor. |
static int |
getMaxCursorSize()
Gets the maximum size of a native cursor. |
static int |
getMinCursorSize()
Gets the minimum size of a native cursor. |
protected boolean |
hasTimedOut()
Determines whether this cursor has timed out |
protected void |
nextCursor()
Changes to the next cursor |
protected void |
setTimeout()
Sets the timout property to the time it should be changed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CURSOR_ONE_BIT_TRANSPARENCY
public static final int CURSOR_8_BIT_ALPHA
public static final int CURSOR_ANIMATION
Constructor Detail |
---|
public Cursor(int width, int height, int xHotspot, int yHotspot, int numImages, java.nio.IntBuffer images, java.nio.IntBuffer delays) throws LWJGLException
width
- cursor image widthheight
- cursor image heightxHotspot
- the x coordinate of the cursor hotspotyHotspot
- the y coordinate of the cursor hotspotnumImages
- number of cursor images specified. Must be 1 if animations are not supported.images
- A buffer containing the images. The origin is at the lower left corner, like OpenGL.delays
- An int buffer of animation frame delays, if numImages is greater than 1, else null
LWJGLException
- if the cursor could not be created for any reasonMethod Detail |
---|
public static int getMinCursorSize()
public static int getMaxCursorSize()
public static int getCapabilities()
public void destroy()
protected void setTimeout()
protected boolean hasTimedOut()
protected void nextCursor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |