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><br />
+
<translate>
Sets the automatic scale mode of the application. Accepted values are:<br />
+
Sets the automatic scale mode of the application. Accepted values are:
<br />
+
* Application.NO_SCALE
&lt;ul&gt;<br />
+
* Application.CENTER
&lt;li&gt;Application.NO_SCALE = &quot;noScale&quot;&lt;/li&gt;<br />
+
* Application.PIXEL_PERFECT
&lt;li&gt;Application.CENTER = &quot;center&quot;&lt;/li&gt;<br />
+
* Application.LETTERBOX
&lt;li&gt;Application.PIXEL_PERFECT = &quot;pixelPerfect&quot;&lt;/li&gt;<br />
+
* Application.CROP
&lt;li&gt;Application.LETTERBOX = &quot;letterbox&quot;&lt;/li&gt;<br />
+
* Application.STRETCH
&lt;li&gt;Application.CROP = &quot;crop&quot;&lt;/li&gt;<br />
+
* Application.FIT_WIDTH
&lt;li&gt;Application.STRETCH = &quot;stretch&quot;&lt;/li&gt;<br />
+
* Application.FIT_HEIGHT
&lt;li&gt;Application.FIT_WIDTH = &quot;fitWidth&quot;&lt;/li&gt;<br />
+
</translate>
&lt;li&gt;Application.FIT_HEIGHT = &quot;fitHeight&quot;&lt;/li&gt;<br />
+
<br/>
&lt;/ul&gt;<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
Application:setScaleMode(scaleMode)
+
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 02: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)