Difference between revisions of "Application:setScaleMode"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2012.2.2<br/>
 
'''Available since:''' Gideros 2012.2.2<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
 
Sets the automatic scale mode of the application. Accepted values are:<br />
 
Sets the automatic scale mode of the application. Accepted values are:<br />
 
<br />
 
<br />
Line 15: Line 15:
 
&lt;li&gt;Application.FIT_HEIGHT = &quot;fitHeight&quot;&lt;/li&gt;<br />
 
&lt;li&gt;Application.FIT_HEIGHT = &quot;fitHeight&quot;&lt;/li&gt;<br />
 
&lt;/ul&gt;<br />
 
&lt;/ul&gt;<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
  Application:setScaleMode(scaleMode)
 
  Application:setScaleMode(scaleMode)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''scaleMode''': (string) <br/>
+
'''scaleMode''': (string) <translate></translate> <br/>

Revision as of 14:32, 23 August 2018

Available since: Gideros 2012.2.2

Description


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

<ul>
<li>Application.NO_SCALE = "noScale"</li>
<li>Application.CENTER = "center"</li>
<li>Application.PIXEL_PERFECT = "pixelPerfect"</li>
<li>Application.LETTERBOX = "letterbox"</li>
<li>Application.CROP = "crop"</li>
<li>Application.STRETCH = "stretch"</li>
<li>Application.FIT_WIDTH = "fitWidth"</li>
<li>Application.FIT_HEIGHT = "fitHeight"</li>
</ul>

 Application:setScaleMode(scaleMode)

Parameters

scaleMode: (string)