-
- All Known Subinterfaces:
BaseWindowEngine
public interface WindowEngine
Window engine API.- Author:
- Grégory Van den Borre
-
-
Method Summary
Modifier and Type Method Description Cursor
createCursor(Cursor cursor)
Create a new cursor.ScreenSize
getScreenSize()
WindowThreadManager
getThreadManager()
Provide the manager to handle threads in window.WindowShellFactory
getWindowShellFactory()
Provide the factory to build window shell and widgets.void
hideCursor()
Hide the mouse.void
setCursor(Cursor cursor)
Set a new cursor in the game window.void
setWindowIcon(String file)
Set the window icon.void
setWindowTitle(String title)
Set the title for the main window.void
showCursor()
Display the mouse.
-
-
-
Method Detail
-
createCursor
Cursor createCursor(Cursor cursor)
Create a new cursor.- Parameters:
cursor
- Contains the data to build the cursor.
-
setWindowTitle
void setWindowTitle(String title)
Set the title for the main window.- Parameters:
title
- Title to print.
-
setCursor
void setCursor(Cursor cursor)
Set a new cursor in the game window.- Parameters:
cursor
- Cursor to use.
-
showCursor
void showCursor()
Display the mouse.
-
hideCursor
void hideCursor()
Hide the mouse.
-
getScreenSize
ScreenSize getScreenSize()
- Returns:
- The screen size, never null.
-
setWindowIcon
void setWindowIcon(String file)
Set the window icon.- Parameters:
file
- Icon file.
-
getWindowShellFactory
WindowShellFactory getWindowShellFactory()
Provide the factory to build window shell and widgets.- Returns:
- The factory, never null.
-
getThreadManager
WindowThreadManager getThreadManager()
Provide the manager to handle threads in window.- Returns:
- The manager, never null.
-
-