Window
Window
This class represents the physical window that PolyUI will render to. As a window implementation, you must:
implement these methods
call PolyUI.resize when the window is resized
call PolyUI.render every frame, inside a rendering loop started with open. It may be blocking or non-blocking.
callbacks for InputManager.mousePressed
callbacks for InputManager.mouseReleased
callbacks for InputManager.mouseMoved
callbacks for InputManager.mouseScrolled
callbacks for InputManager.keyDown
callbacks for InputManager.keyUp
callbacks for InputManager.keyTyped
callbacks for InputManager.filesDropped
Constructors
Functions
This function may be called by the PolyUI instance when it has something that it wants to do immediately.
Get the clipboard string. This is used for the org.polyfrost.polyui.component.impl.TextInput class.
Return the name of a key that is not mapped by PolyUI.
this function hooks into the rendering loop. it is ran after a render cycle.
Set the clipboard string. This is used for the org.polyfrost.polyui.component.impl.TextInput class.
Return true if your window supports "render pausing", a optimization technique which will not render any frames if not necessary.