Skip to content

setX()

Set the object's horizontal position.

button.setX(x)

Parameters

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