Package: pumpkin.text

TextField


Description

[alpha] The Textfield class renders text as a DisplayObject and handles text input.



Constructors

TextField

Create empty TextField.


Functions

setAssetInfo

clone

[alpha] Returns cloned copy including its state and text formatting ( not parented )

debugSetSelection

getGlyph

Get the GlyphInfo character information for a given character in the current font of the defaultTextFormat.

createGlyph

Create new GlyphInfo.

appendText

Append text.


Variables

autoInputScroll

Auto scroll when inputting text.

localizationName

Localization name eg.

hasFilters

Indicates if the textfield has any filters.

PASSWORD_CHAR

Default password mask character.

profilerSettings

Global textfield profile setting.

text

Indicates the displayed text contents.

kerningOverride

[alpha][internal] Override global kerning Note: should be implemented in textFormat.

align

[alpha] Set text align. Note: should be implemented in textFormat.

textFormat

Set text format.

type

Indicates the TextField type, see TextFieldType for valid enumerations.

maxScrollH

Indicates the maximum value of the scrollV.

maxScrollV

Indicates the maximum value of the scrollV.

scrollV

Indicates the vertical scroll position of the text.

scrollH

Indicates the horizontal scroll position of the text.

multiline

Enable multi-line textfield.

cursor

Indicates the input cursor to draw.

maxChars

Indicates the max number of characters the TextField accepts.

validChars

Indicates valid characters allowed in the TextField.

numLines

Get the number of lines, if word wrapping is enabled this may increase.

displayAsPassword

Indicates if the text contents should be displayed as a password.

width

height

isTTF