Class SyWindowSet
java.lang.Object
com.io7m.jsycamore.api.windows.SyWindowSet
An immutable window set.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SyWindowSetempty()Create an empty window set.windowClose(SyWindowType window) Close the given window.windowCreate(SyWindowType window) Create the given window.windowFocus(SyWindowType window) Focus the given window.windowFocused(SyWindowLayerID layer) windowHide(SyWindowType window) Hide the given window.booleanwindowIsVisible(SyWindowReadableType window) windowLayerHide(SyWindowLayerID layer) Hide the given window layer.booleanwindowLayerShow(SyWindowLayerID layer) Show the given window layer.windows()windowShow(SyWindowType window) Make the given window visible.Calculate the complete set of visible windows and return them in depth order: Windows nearer to the viewer are closer to the start of the list.
-
Method Details
-
empty
-
windowFocused
- Parameters:
layer- The window layer- Returns:
- The focused window in the set, if any
-
windows
- Returns:
- The set of windows
-
windowsVisible
- Returns:
- The set of windows that are visible
-
windowsVisibleOrdered
Calculate the complete set of visible windows and return them in depth order: Windows nearer to the viewer are closer to the start of the list.- Returns:
- The set of windows that are visible in depth order
-
windowCreate
Create the given window. The window is added to the set of known windows.- Parameters:
window- The window- Returns:
- This set with the given window
-
windowShow
Make the given window visible. The window is added to the set of visible windows.- Parameters:
window- The window- Returns:
- This set with the given window visible
-
windowHide
Hide the given window.- Parameters:
window- The window- Returns:
- This set with the given window hidden
-
windowClose
Close the given window.- Parameters:
window- The window- Returns:
- This set with the given window closed
-
windowFocus
Focus the given window.- Parameters:
window- The window- Returns:
- This set with the given window focused
-
windowIsVisible
- Parameters:
window- The window- Returns:
trueif the given window is visible
-
windowLayerHide
Hide the given window layer.- Parameters:
layer- The window layer- Returns:
- This set with the given window layer hidden
-
windowLayerShow
Show the given window layer.- Parameters:
layer- The window layer- Returns:
- This set with the given window layer made visible
-
windowLayerIsShown
- Parameters:
layer- The window layer- Returns:
trueif the given window layer is visible
-
windowFreshId
- Returns:
- A window ID that is not present in this set
-