public class Cursor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
public static final int CURSOR_ONE_BIT_TRANSPARENCY
public static final int CURSOR_8_BIT_ALPHA
public static final int CURSOR_ANIMATION
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 nullLWJGLException
- if the cursor could not be created for any reasonpublic static int getMinCursorSize()
public static int getMaxCursorSize()
public static int getCapabilities()
public void destroy()
protected void setTimeout()
protected boolean hasTimedOut()
protected void nextCursor()
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.