Sprite:getLayoutInfo: Difference between revisions

From GiderosMobile
No edit summary
Rrraptor (talk | contribs)
Line 14: Line 14:
* '''weightx''': The horizontal weight of the child<br/>
* '''weightx''': The horizontal weight of the child<br/>
* '''weighty''': The vertical weight of the child<br/>
* '''weighty''': The vertical weight of the child<br/>
* '''minWidth''': Minimum width<br/>
* '''minWidth''' (table): Minimum width<br/>
* '''minHeight''': Minimum height<br/></translate>
* '''minHeight''' (table): Minimum height<br/></translate>
<source lang="lua">
<source lang="lua">
(table) = Sprite:getLayoutInfo()
(table) = Sprite:getLayoutInfo()
</source>
</source>
=== <translate>Return values</translate> ===
=== <translate>Return values</translate> ===
'''<translate>Returns</translate>''' (table) <translate>Table of layout information.</translate><br/>
'''<translate>Returns</translate>''' (table) <translate>Table of layout information.</translate><br/>


{{Sprite}}
{{Sprite}}

Revision as of 08:07, 13 July 2020


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 (table): Minimum width
  • minHeight (table): Minimum height
(table) = Sprite:getLayoutInfo()

Return values

Returns (table) Table of layout information.