Difference between revisions of "Application:setScaleMode"
From GiderosMobile
m (→Description: fixed some html tags) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
<languages /> | <languages /> | ||
− | '''<translate>Available since</translate>:''' Gideros 2012.2.2<br/> | + | '''<translate>Available since</translate>:''' Gideros 2012.2.2 |
− | '''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]<br/> | + | <br/> |
+ | '''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]] | ||
+ | <br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
− | <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.CENTER | |
− | + | * Application.PIXEL_PERFECT | |
− | + | * Application.LETTERBOX | |
− | + | * Application.CROP | |
− | + | * Application.STRETCH | |
− | + | * Application.FIT_WIDTH | |
− | + | * Application.FIT_HEIGHT | |
− | + | </translate> | |
− | + | <br/> | |
− | |||
− | <br / | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | application:setScaleMode(scaleMode) | |
</source> | </source> | ||
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
− | '''scaleMode''': (string) <translate></translate> <br/> | + | '''scaleMode''': (string) <translate></translate> |
+ | <br/> | ||
+ | <br/> |
Revision as of 01:27, 13 June 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)