Difference between revisions of "Application:setScaleMode"

From GiderosMobile
m (→‎Description: fixed some html tags)
m (Text replacement - "</source" to "</syntaxhighlight")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
'''Available since:''' Gideros 2012.2.2<br/>
<languages />
+
'''Class:''' [[Application]]<br/>
'''<translate>Available since</translate>:''' Gideros 2012.2.2
+
 
<br/>
+
=== Description ===
'''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]
+
Sets the automatic scale mode of the application.
<br/>
+
<syntaxhighlight lang="lua">
=== <translate>Description</translate> ===
+
application:setScaleMode(scaleMode)
<translate>
+
</syntaxhighlight>
Sets the automatic scale mode of the application. Accepted values are:
+
 
 +
 
 +
Accepted values for '''scaleMode''' are:
 
* Application.NO_SCALE
 
* Application.NO_SCALE
 
* Application.CENTER
 
* Application.CENTER
Line 16: Line 18:
 
* Application.FIT_WIDTH
 
* Application.FIT_WIDTH
 
* Application.FIT_HEIGHT
 
* Application.FIT_HEIGHT
</translate>
+
 
<br/>
+
=== Parameters ===
<source lang="lua">
+
'''scaleMode''': (string) the scale mode to apply<br/>
application:setScaleMode(scaleMode)
+
 
</source>
+
{{Application}}
=== <translate>Parameters</translate> ===
 
'''scaleMode''': (string) <translate></translate>
 
<br/>
 
<br/>
 

Latest revision as of 17:10, 12 July 2023

Available since: Gideros 2012.2.2
Class: Application

Description

Sets the automatic scale mode of the application.

application:setScaleMode(scaleMode)


Accepted values for scaleMode are:

  • Application.NO_SCALE
  • Application.CENTER
  • Application.PIXEL_PERFECT
  • Application.LETTERBOX
  • Application.CROP
  • Application.STRETCH
  • Application.FIT_WIDTH
  • Application.FIT_HEIGHT

Parameters

scaleMode: (string) the scale mode to apply