Window:restore() method


Restore the Window size and position, after the Window has been maximized or minimized.

Return value

This function returns no value.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Window:restore() example", "fixed", 320, 200) local button = ui.Button(win, "restore me !", 35) win:center() function button:onClick() win:restore() button:center() end -- Maximize the Window win:maximize() button:center() -- update user interface ui.run(win):wait()