Difference between revisions of "Screen:setSize"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2017.8<br/>
+
'''Available since:''' Gideros 2017.8<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Screen|Screen]]<br/>
+
'''Class:''' [[Screen]]<br/>
=== <translate>Description</translate> ===
+
 
<translate>Attempts to fix the size of this screen or window, if allowed by the platform.</translate>
+
=== Description ===
<source lang="lua">
+
Attempts to fix the size of the screen or window, if allowed by the platform.
Screen:setSize(w,h)
+
<syntaxhighlight lang="lua">
</source>
+
Screen:setSize(w,h)
=== <translate>Parameters</translate> ===
+
</syntaxhighlight>
'''w''': (number) <translate>The new width</translate> <br/>
+
 
'''h''': (number) <translate>The new height</translate> <br/>
+
=== Parameters ===
 +
'''w''': (number) the new screen width<br/>
 +
'''h''': (number) the new screen height<br/>
 +
 
 +
{{Screen}}

Latest revision as of 14:32, 13 July 2023

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