Difference between revisions of "Screen:getPosition"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2017.8<br/>
'''<translate>Available since</translate>:''' Gideros 2017.8<br/>
+
'''Class:''' [[Screen]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Screen|Screen]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Return the position of the screen on the display, for windowed systems</translate>
+
Returns the position of the screen on the display, for windowed systems.
 
<source lang="lua">
 
<source lang="lua">
 
(number), (number) = Screen:getPosition()
 
(number), (number) = Screen:getPosition()
 
</source>
 
</source>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (number) <translate>The Screen's x coordinate</translate><br/>
+
=== Return values ===
'''<translate>Returns</translate>''' (number) <translate>The Screen's y coordinate</translate><br/>
+
'''Returns''' (number) the screen x coordinate<br/>
 +
'''Returns''' (number) the screen y coordinate<br/>
  
 
{{Screen}}
 
{{Screen}}

Revision as of 04:07, 28 April 2021

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