Skip to content

setX()

Set the object's horizontal position.

If the object is a Display, this sets the display's horizontal position on the screen.

Parameters

Once an object item has been created, you can use the following function:

item.setX(x)
Parameter Type Default Description
x int or float required The new horizontal position, in pixels.