Difference between revisions of "Screen:getSize"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns the width and height of the screen.
 
Returns the width and height of the screen.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number) = Screen:getSize()
 
(number), (number) = Screen:getSize()
 
</source>
 
</source>

Revision as of 15:30, 13 July 2023

Available since: Gideros 2017.8
Class: Screen

Description

Returns the width and height of the screen. <syntaxhighlight lang="lua"> (number), (number) = Screen:getSize() </source>

Return values

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