References a window of the program. At the moment we can access only the main window using app.window.
local width = app.window.widthReturns the width of the main window.
local height = app.window.heightReturns the height of the main window.
Returns the Events object to associate functions
that can act like listeners of specific Window events. E.g.
app.window.events:on('resize',
function(ev)
print('Now the main window is', ev.width, ev.height)
end)Available events for a Window:
'resize': When the user resizes the window.