Window.x read/write property
Get or set the Window horizontal position. The horizontal position start from 0 (left side of the Desktop) and increase to the right (right side of the Desktop).
Example
local ui = require "ui"
-- create a simple window
local win = ui.Window("Window.x sample")
-- shows the Window
win:show()
-- update user interface and increase Window horizontal position
repeat
ui.update()
win.x = win.x + 1
-- Sleep for 1ms to slow down the movement
sleep(1)
until win.x > 800