Application:setScaleMode: Difference between revisions

From GiderosMobile
m →Description: fixed some html tags
No edit summary
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]]
<br/>
=== <translate>Description</translate> ===
<translate>
Sets the automatic scale mode of the application. Accepted values are:
Sets the automatic scale mode of the application. Accepted values are:
* Application.NO_SCALE
* Application.NO_SCALE
Line 16: Line 12:
* Application.FIT_WIDTH
* Application.FIT_WIDTH
* Application.FIT_HEIGHT
* Application.FIT_HEIGHT
</translate>
 
<br/>
 
<source lang="lua">
<source lang="lua">
application:setScaleMode(scaleMode)
application:setScaleMode(scaleMode)
</source>
</source>
=== <translate>Parameters</translate> ===
 
'''scaleMode''': (string) <translate></translate>
=== Parameters ===
<br/>
'''scaleMode''': (string) <br/>
<br/>
 
{{Application}}

Revision as of 23:53, 2 December 2019

Available since: Gideros 2012.2.2
Class: Application

Description

Sets the automatic scale mode of the application. Accepted values are:

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


application:setScaleMode(scaleMode)

Parameters

scaleMode: (string)