Difference between revisions of "Screen:getPosition"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns the position of the screen on the display, for windowed systems.
 
Returns the position of the screen on the display, for windowed systems.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number) = Screen:getPosition()
 
(number), (number) = Screen:getPosition()
 
</source>
 
</source>

Revision as of 15:30, 13 July 2023

Available since: Gideros 2017.8
Class: Screen

Description

Returns the position of the screen on the display, for windowed systems. <syntaxhighlight lang="lua"> (number), (number) = Screen:getPosition() </source>

Return values

Returns (number) the screen x coordinate
Returns (number) the screen y coordinate