Screen:setPosition: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
Line 5: Line 5:
=== Description ===
=== Description ===
Attempts to position the screen or window, if allowed by the platform.
Attempts to position the screen or window, if allowed by the platform.
<source lang="lua">
<syntaxhighlight lang="lua">
Screen:setPosition(x,y)
Screen:setPosition(x,y)
</source>
</source>

Revision as of 13:30, 13 July 2023

Available since: Gideros 2017.8
Class: Screen

Description

Attempts to position the screen or window, if allowed by the platform. <syntaxhighlight lang="lua"> Screen:setPosition(x,y) </source>

Parameters

x: (number) the new x coordinate
y: (number) the new y coordinate