Difference between revisions of "Screen:getPosition"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2017.8<br/> === Description === Return the position of the screen on the display, for windowed systems <source lang="lua"> (number) (n...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2017.8<br/>
 
'''Available since:''' Gideros 2017.8<br/>
 +
'''Class:''' [[Screen]]<br/>
 +
 
=== Description ===
 
=== Description ===
Return 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>
+
</syntaxhighlight>
'''Returns''' (number) The Screen's x coordinate<br/>
+
 
'''Returns''' (number) The Screen's y coordinate<br/>
+
=== Return values ===
 +
'''Returns''' (number) the screen x coordinate<br/>
 +
'''Returns''' (number) the screen y coordinate<br/>
 +
 
 +
{{Screen}}

Latest revision as of 14:32, 13 July 2023

Available since: Gideros 2017.8
Class: Screen

Description

Returns the position of the screen on the display, for windowed systems.

(number), (number) = Screen:getPosition()

Return values

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