Window


Windows in RaptorFX are managed by the already existing window object in JavaScript. That being said, here is a short list of methods and properties which can help you.

Methods


MethodsDescription
window.close()Closes the window.
window.focus()Brings the window to foreground.
window.blur()Minimizes the window.
window.resizeTo(width, height)Resizes the window to the specified width and height.
window.resizeBy(width, height)Resizes the window by the specified width and height.
window.moveTo(x, y)Moves the window to the specified x and y coordinates.
window.moveBy(x, y)Moves the window by the specified x and y coordinates.

Properties


PropertiesDescription
window.innerHeightThe height of the window.
window.innerWidthThe width of the window.
window.outerHeightThe height of the display.
window.outerWidthThe width of the display.