Difference between revisions of "TextField.new"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Creates a new `TextField` object with the specified font and text. Gideros runtime includes a<b...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | |||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
+ | '''Class:''' [[TextField]]<br/> | ||
+ | |||
=== Description === | === Description === | ||
− | + | Creates a new '''TextField''' object with the specified font and text. Gideros runtime includes a default font. If you specify ''nil'' for the font parameter while creating the '''TextField''' object, default font is used. | |
− | Creates a new | + | <syntaxhighlight lang="lua"> |
− | default font. If you specify | + | TextField.new(font,text,sample,layout) |
− | < | + | </syntaxhighlight> |
− | + | ||
− | + | === Parameters === | |
− | </ | + | '''font''': (FontBase) the font used for displaying the TextField object. If nil, default font is used<br/> |
− | '''font | + | '''text''': (string) the text to be displayed '''optional'''<br/> |
− | '''text | + | '''sample''': (string) sample to determine line height '''optional'''<br/> |
− | '''sample | + | '''layout''': (table) layout parameters, see [[TextField:setLayout]] '''optional'''<br/> |
− | '''layout | + | |
+ | {{TextField}} |
Latest revision as of 15:33, 13 July 2023
Available since: Gideros 2011.6
Class: TextField
Description
Creates a new TextField object with the specified font and text. Gideros runtime includes a default font. If you specify nil for the font parameter while creating the TextField object, default font is used.
TextField.new(font,text,sample,layout)
Parameters
font: (FontBase) the font used for displaying the TextField object. If nil, default font is used
text: (string) the text to be displayed optional
sample: (string) sample to determine line height optional
layout: (table) layout parameters, see TextField:setLayout optional
- TextField
- TextField.new
- TextField:getLayout
- TextField:getLetterSpacing
- TextField:getLineHeight
- TextField:getPointFromTextPosition
- TextField:getSample
- TextField:getText
- TextField:getTextColor
- TextField:getTextPositionFromPoint
- TextField:setFont
- TextField:setLayout
- TextField:setLetterSpacing
- TextField:setSample
- TextField:setText
- TextField:setTextColor