Interface SyWindowServiceType
- All Superinterfaces:
com.io7m.repetoir.core.RPServiceType, SyServiceType
The window service.
-
Method Summary
Modifier and TypeMethodDescriptionvoidwindowClose(SyWindowType window) Close/destroy the window.default SyWindowTypewindowCreate(int sizeX, int sizeY) Create a new window.windowCreateOnLayer(int sizeX, int sizeY, SyWindowLayerID layer) Create a new window.voidwindowFocus(SyWindowType window) Bringwto the front.voidwindowHide(SyWindowType window) Hide the window.booleanwindowIsFocused(SyWindowType window) booleanwindowIsVisible(SyWindowType window) voidwindowMaximize(SyWindowType window) Maximize the window.voidwindowShow(SyWindowType window) Make the window visible.Methods inherited from interface com.io7m.repetoir.core.RPServiceType
description
-
Method Details
-
windowLayerDefault
SyWindowLayerID windowLayerDefault()- Returns:
- The default layer for windows
-
windowLayerForMenus
SyWindowLayerID windowLayerForMenus()- Returns:
- The default layer for menus
-
windowCreate
Create a new window.- Parameters:
sizeX- The window widthsizeY- The window height- Returns:
- A new window
-
windowCreateOnLayer
Create a new window.- Parameters:
sizeX- The window widthsizeY- The window heightlayer- The window layer- Returns:
- A new window
-
windowsVisibleOrdered
List<SyWindowType> windowsVisibleOrdered()- Returns:
- A read-only list of the currently open windows in order from nearest to furthest
-
windowIsFocused
- Parameters:
window- A window- Returns:
trueiffwis currently isFocused
-
windowIsVisible
- Parameters:
window- A window- Returns:
trueiffwis currently open
-
windowShow
Make the window visible. The window, once visible, has focus. If the window is already visible, the window gains focus.- Parameters:
window- A window
-
windowHide
Hide the window. If the window is already invisible, this has no effect.- Parameters:
window- A window
-
windowClose
-
windowFocus
-
windowMaximize
-
windowMenu
SyWindowType windowMenu()- Returns:
- A reference to the window used for menus
-