Difference between revisions of "Screen:getSize"

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 width and height of the screen</translate>
+
Returns the width and height of the screen.
 
<source lang="lua">
 
<source lang="lua">
 
(number), (number) = Screen:getSize()
 
(number), (number) = Screen:getSize()
 
</source>
 
</source>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (number) <translate>The Screen's width</translate><br/>
+
=== Return values ===
'''<translate>Returns</translate>''' (number) <translate>The Screen's height</translate><br/>
+
'''Returns''' (number) the screen width<br/>
 +
'''Returns''' (number) the screen height<br/>
  
 
{{Screen}}
 
{{Screen}}

Revision as of 03:08, 28 April 2021

Available since: Gideros 2017.8
Class: Screen

Description

Returns the width and height of the screen.

(number), (number) = Screen:getSize()

Return values

Returns (number) the screen width
Returns (number) the screen height