Window.fullscreen read/write property


Get or set the Window fullscreen mode. When set to true, the Window is resized to fill the entire screen, and the title bar is hidden.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Window.fullscreen sample", 320, 200) local button = ui.Button(win, "Switch to fullscreen") button:center() function button:onClick() win.fullscreen = not win.fullscreen button.text = win.fullscreen and "Disable fullscreen" or "Switch to fullscreen" button:center() end win:show() repeat ui.update() until not win.visible