Screen:setSize: Difference between revisions

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

Latest revision as of 13: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