Sprite:getLayoutInfo: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 21: Line 21:
=== <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}}

Revision as of 23:08, 3 December 2019


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.