|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GUIContext
The context in which GUI components are created and rendered
Method Summary | |
---|---|
Font |
getDefaultFont()
Get the default system font |
int |
getHeight()
Get the height of the game canvas |
Input |
getInput()
Get the input system |
int |
getScreenHeight()
Get the height of the standard screen resolution |
int |
getScreenWidth()
Get the width of the standard screen resolution |
long |
getTime()
Get the accurate system time |
int |
getWidth()
Get the width of the game canvas |
void |
setDefaultMouseCursor()
Set the default mouse cursor - i.e. |
void |
setMouseCursor(org.lwjgl.input.Cursor cursor,
int hotSpotX,
int hotSpotY)
Set the mouse cursor to be displayed - this is a hardware cursor and hence shouldn't have any impact on FPS. |
void |
setMouseCursor(ImageData data,
int hotSpotX,
int hotSpotY)
Set the mouse cursor to be displayed - this is a hardware cursor and hence shouldn't have any impact on FPS. |
void |
setMouseCursor(java.lang.String ref,
int hotSpotX,
int hotSpotY)
Set the mouse cursor to be displayed - this is a hardware cursor and hence shouldn't have any impact on FPS. |
Method Detail |
---|
Input getInput()
long getTime()
int getScreenWidth()
int getScreenHeight()
int getWidth()
int getHeight()
Font getDefaultFont()
void setMouseCursor(java.lang.String ref, int hotSpotX, int hotSpotY) throws SlickException
ref
- The location of the image to be loaded for the cursorhotSpotX
- The x coordinate of the hotspot within the cursor imagehotSpotY
- The y coordinate of the hotspot within the cursor image
SlickException
- Indicates a failure to load the cursor image or create the hardware cursorvoid setMouseCursor(ImageData data, int hotSpotX, int hotSpotY) throws SlickException
data
- The image data from which the cursor can be construtedhotSpotX
- The x coordinate of the hotspot within the cursor imagehotSpotY
- The y coordinate of the hotspot within the cursor image
SlickException
- Indicates a failure to load the cursor image or create the hardware cursorvoid setMouseCursor(org.lwjgl.input.Cursor cursor, int hotSpotX, int hotSpotY) throws SlickException
cursor
- The cursor to usehotSpotX
- The x coordinate of the hotspot within the cursor imagehotSpotY
- The y coordinate of the hotspot within the cursor image
SlickException
- Indicates a failure to load the cursor image or create the hardware cursorvoid setDefaultMouseCursor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |