Sprite:getLayoutInfo: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ '''<translate>Available since</translate>:''' Gideros 2018.9<br/> '''<translate>Class</translate>:''' Sprite<br/> === <translate>Descri..." |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
<languages /> | |||
'''<translate>Available since</translate>:''' Gideros 2018.9<br/> | '''<translate>Available since</translate>:''' Gideros 2018.9<br/> | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate><br /> | <translate><br /> | ||
<br /></translate> | <br /> | ||
Returns computed placement value according to Gideros layout system. | |||
The returned table can contain the following fields: | |||
* '''startx''': The 0-based index of the column the child was placed into<br/> | |||
* '''starty''': The 0-based index of the row the child was placed into<br/> | |||
* '''width''': The width of the child<br/> | |||
* '''height''': The height of the child<br/> | |||
* '''weightx''': The horizontal weight of the child<br/> | |||
* '''weighty''': The vertical weight of the child<br/> | |||
* '''minWidth''': Minimum width<br/> | |||
* '''minHeight''': Minimum height<br/></translate> | |||
<source lang="lua"> | <source lang="lua"> | ||
(table) = Sprite:getLayoutInfo() | (table) = Sprite:getLayoutInfo() | ||
Revision as of 08:58, 3 September 2018
Available since: Gideros 2018.9
Class: Sprite
Description
Returns computed placement value according to Gideros layout system.
The returned table can contain the following fields:
- startx: The 0-based index of the column the child was placed into
- starty: The 0-based index of the row the child was placed into
- width: The width of the child
- height: The height of the child
- weightx: The horizontal weight of the child
- weighty: The vertical weight of the child
- minWidth: Minimum width
- minHeight: Minimum height
(table) = Sprite:getLayoutInfo()
Return values
Returns (table) Table of layout information.