Difference between revisions of "Screen:setSize"

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>Attempts to fix the size of this screen or window, if allowed by the platform.</translate>
+
Attempts to fix the size of the screen or window, if allowed by the platform.
 
<source lang="lua">
 
<source lang="lua">
Screen:setSize(w,h)
+
Screen:setSize(w,h)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''w''': (number) <translate>The new width</translate> <br/>
+
=== Parameters ===
'''h''': (number) <translate>The new height</translate> <br/>
+
'''w''': (number) the new screen width<br/>
 +
'''h''': (number) the new screen height<br/>
  
 
{{Screen}}
 
{{Screen}}

Revision as of 03:16, 28 April 2021

Available since: Gideros 2017.8
Class: Screen

Description

Attempts to fix the size of the screen or window, if allowed by the platform.

Screen:setSize(w,h)

Parameters

w: (number) the new screen width
h: (number) the new screen height