Difference between revisions of "Application:setScaleMode"

From GiderosMobile
m (→‎Description: fixed some html tags)
(2 intermediate revisions by the same user 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/>
+
<source lang="lua">
=== <translate>Description</translate> ===
+
application:setScaleMode(scaleMode)
<translate>
+
</source>
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/>
 

Revision as of 20:46, 5 December 2020

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