Difference between revisions of "TextField.new"
From GiderosMobile
Line 16: | Line 16: | ||
'''sample''': (string) <translate>sample to determine line height</translate> '''optional'''<br/> | '''sample''': (string) <translate>sample to determine line height</translate> '''optional'''<br/> | ||
'''layout''': (table) <translate>Layout parameters, see [[Special:MyLanguage/TextField:setLayout|TextField:setLayout]]</translate> '''optional'''<br/> | '''layout''': (table) <translate>Layout parameters, see [[Special:MyLanguage/TextField:setLayout|TextField:setLayout]]</translate> '''optional'''<br/> | ||
+ | |||
+ | {{TextField}} |
Revision as of 01:37, 4 December 2019
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 this TextField object. If nil, default font is used.
text: (string, optional) The text to be displayed.
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