Difference between revisions of "TextField:setLayout"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2017.10<br/>
 
'''Available since:''' Gideros 2017.10<br/>
 
=== Description ===
 
=== Description ===
Change the layout parameters for this TextField
+
<translate>Change the layout parameters for this TextField
 
     Layout parameters can contain the following fields:
 
     Layout parameters can contain the following fields:
 
     - w,h: Width/height of the area to layout the text in
 
     - w,h: Width/height of the area to layout the text in
     - flags: A or combination of `FontBase`.TLF_xxx constants instructing how to layout the text
+
     - flags: A or combination of [[[FontBase]]].TLF_xxx constants instructing how to layout the text
 
     - letterSpacing: The space to add between each letter of the text
 
     - letterSpacing: The space to add between each letter of the text
 
     - lineSpacing: The space to add between each line of the text
 
     - lineSpacing: The space to add between each line of the text
 
     - tabSpace: The size of a tab in space characters increment, default to 4 if unspecified
 
     - tabSpace: The size of a tab in space characters increment, default to 4 if unspecified
     - breakChar: A string the will be inserted to indicated broken words
+
     - breakChar: A string the will be inserted to indicated broken words</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  TextField:setLayout(layout)
 
  TextField:setLayout(layout)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''layout''': (table) Layout parameters <br/>
+
'''layout''': (table) <translate>Layout parameters</translate> <br/>

Revision as of 14:33, 23 August 2018

Available since: Gideros 2017.10

Description

Change the layout parameters for this TextField

   Layout parameters can contain the following fields:
   - w,h: Width/height of the area to layout the text in
   - flags: A or combination of [[[FontBase]]].TLF_xxx constants instructing how to layout the text
   - letterSpacing: The space to add between each letter of the text
   - lineSpacing: The space to add between each line of the text
   - tabSpace: The size of a tab in space characters increment, default to 4 if unspecified
   - breakChar: A string the will be inserted to indicated broken words
 TextField:setLayout(layout)

Parameters

layout: (table) Layout parameters