Is this possible to change window position?

Is this possible to change window position?

OS Compile target
Linux HashLink

Yes, using :
@:privateAccess hxd.Window.getInstance().window.setPosition(xPos,yPos);

Note that the position won’t be the same depending on whether you’re using SDL or DirectX. SDL only takes the client area into account, DirectX takes the client area and the window shadow.

If you don’t know what a client and non-client area is, click here.

2 Likes