Package dev.prozilla.pine.core
Class HeadlessWindow
java.lang.Object
dev.prozilla.pine.core.Window
dev.prozilla.pine.core.HeadlessWindow
- All Implemented Interfaces:
Destructible,Initializable,Printable
-
Field Summary
Fields inherited from class dev.prozilla.pine.core.Window
height, isInitialized, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidChecks if the window has been initialized.voidinit()Sets the window hints and creates a GLFW window object.voidResets all window hints to their default values.voidsetHint(int hint, int value) Sets the value of the given window hint.voidUpdates the icons of this window.voidsetOpacity(float opacity) Sets the opacity of the entire window.Methods inherited from class dev.prozilla.pine.core.Window
destroy, getHeight, getId, getPixelRatioX, getPixelRatioY, getSize, getWidth, input, setCenterCursor, setDecorated, setEnableTransparentFramebuffer, setFloating, setFocused, setFullscreen, setHint, setHint, setHint, setMaximized, setResizable, setTitle, setVisible, shouldClose, toString, update
-
Constructor Details
-
HeadlessWindow
-
-
Method Details
-
init
public void init()Description copied from class:WindowSets the window hints and creates a GLFW window object.- Specified by:
initin interfaceInitializable- Overrides:
initin classWindow
-
setIcons
Description copied from class:WindowUpdates the icons of this window. Uses the first element of the images array as the default icon. -
setOpacity
public void setOpacity(float opacity) Description copied from class:WindowSets the opacity of the entire window.- Overrides:
setOpacityin classWindow- Parameters:
opacity- The opacity, in the range of0fand1f
-
setHint
public void setHint(int hint, int value) Description copied from class:WindowSets the value of the given window hint.The window hints determine how the next window will be created. Invalid values will only cause an error when the next window is created.
Some hints will only have an effect on specific platforms and will be ignored on other platforms.
-
setDefaultHints
public void setDefaultHints()Description copied from class:WindowResets all window hints to their default values.- Overrides:
setDefaultHintsin classWindow
-
checkStatus
protected void checkStatus()Description copied from class:WindowChecks if the window has been initialized.- Overrides:
checkStatusin classWindow
-