Difference between revisions of "FontBase:getBounds"

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 tight bounding rectangle of the characters in the string specified by [[Special:MyLanguage/text|text]].<br />
 
Returns the tight bounding rectangle of the characters in the string specified by [[Special:MyLanguage/text|text]].<br />
Line 8: Line 8:
 
(number), (number), (number), (number) = FontBase:getBounds(text)
 
(number), (number), (number), (number) = FontBase:getBounds(text)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''text''': (string) <translate></translate> <br/>
 
'''text''': (string) <translate></translate> <br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (number) <translate>x coordinate of the bound</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>x coordinate of the bound</translate><br/>
'''Returns''' (number) <translate>y coordinate of the bound</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>y coordinate of the bound</translate><br/>
'''Returns''' (number) <translate>width of the bound</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>width of the bound</translate><br/>
'''Returns''' (number) <translate>height of the bound</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>height of the bound</translate><br/>

Revision as of 07:26, 24 August 2018

Available since: Gideros 2011.6

Description


Returns the tight bounding rectangle of the characters in the string specified by text.

(number), (number), (number), (number) = FontBase:getBounds(text)

Parameters

text: (string)

Return values

Returns (number) x coordinate of the bound
Returns (number) y coordinate of the bound
Returns (number) width of the bound
Returns (number) height of the bound