renwindow
Functionality to create and manage windows.
_restore
function renwindow._restore()
-> number
Restore Window
create
function renwindow.create(title: string, width?: integer, height?: integer)
-> renwindow
Create a new window
@param title — the title given to the newly created window
@param width — if nil or less than 1 will be calculated from display
@param height — if nil or less than 1 will be calculated from display
get_color
function renwindow.get_color(window: renwindow, x: number, y: number)
-> color: (renderer.color)?
Gets the window pixel color of the specified position.
get_refresh_rate
function renwindow.get_refresh_rate(window: renwindow)
-> refresh_rate: number?
Gets the display refresh rate of a window. Returns nil if it cannot be determined.
get_size
function renwindow.get_size(window: renwindow)
-> width: number
2. height: number
Get width and height of a window