Skip to content

getPosition()

Return the display's position on the screen.

display.getPosition()

Returns

return x, y

Value Type Description
x int or float The horizontal position of the window's top-left corner, in pixels.
y int or float The vertical position of the window's top-left corner, in pixels.