Difference between revisions of "Sprite:getWidth"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
+
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
 
Returns the width of the sprite, in pixels. The width is calculated based on the<br />
 
Returns the width of the sprite, in pixels. The width is calculated based on the<br />
Line 10: Line 10:
 
(any), (any) = Sprite:getWidth(withoutTransform)
 
(any), (any) = Sprite:getWidth(withoutTransform)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''withoutTransform''': (boolean) <translate>If true, return the width of the Sprite without transformations else return the transformed width</translate> '''optional'''<br/>
 
'''withoutTransform''': (boolean) <translate>If true, return the width of the Sprite without transformations else return the transformed width</translate> '''optional'''<br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (any) <translate>Width of the sprite.</translate><br/>
+
'''<translate>Returns</translate>''' (any) <translate>Width of the sprite.</translate><br/>
'''Returns''' (any) <translate>Width of the sprite.</translate><br/>
+
'''<translate>Returns</translate>''' (any) <translate>Width of the sprite.</translate><br/>

Revision as of 08:27, 24 August 2018

Available since: Gideros 2011.6

Description


Returns the width of the sprite, in pixels. The width is calculated based on the
bounds of the content of the sprite.

If the parameter "true" is passed, the original width is returned without transformations.

(any), (any) = Sprite:getWidth(withoutTransform)

Parameters

withoutTransform: (boolean) If true, return the width of the Sprite without transformations else return the transformed width optional

Return values

Returns (any) Width of the sprite.
Returns (any) Width of the sprite.