API documentation
class openfl.text.TextField extends InteractiveObject
Inherited from InteractiveObject
var doubleClickEnabled:Bool
var focusRect:Dynamic
var mouseEnabled:Bool
var needsSoftKeyboard:Bool
var softKeyboardInputAreaOfInterest:Rectangle
var tabEnabled:Bool
var tabIndex:Int
function requestSoftKeyboard():Bool
Inherited from DisplayObject
var __renderTransform:Matrix
var __worldColorTransform:ColorTransform
var __worldOffset:Point
var __worldTransform:Matrix
var alpha:Float
var blendMode:BlendMode
var cacheAsBitmap:Bool
var cacheAsBitmapBounds:Rectangle
var cacheAsBitmapMatrix:Matrix
var cacheAsBitmapSmooth:Bool
var filters:Array<BitmapFilter>
var height:Float
var loaderInfo:LoaderInfo
var mask:DisplayObject
var mouseX:Float
var mouseY:Float
var name:String
var opaqueBackground:Null<Int>
var parent:DisplayObjectContainer
var root:DisplayObject
var rotation:Float
var scale9Grid:Rectangle
var scaleX:Float
var scaleY:Float
var scrollRect:Rectangle
var shader:Shader
var stage:Stage
var transform:Transform
var visible:Bool
var width:Float
var x:Float
var y:Float
function __cacheGL(renderSession:RenderSession):Void
function __drawGraphicsGL(renderSession:RenderSession):Void
function __postRenderGL(renderSession:RenderSession):Void
function __preRenderGL(renderSession:RenderSession):Void
function __renderCairo(renderSession:RenderSession):Void
function __renderCairoMask(renderSession:RenderSession):Void
function __renderCanvas(renderSession:RenderSession):Void
function __renderCanvasMask(renderSession:RenderSession):Void
function __renderDOM(renderSession:RenderSession):Void
function __renderGL(renderSession:RenderSession):Void
function __update(transformOnly:Bool, updateChildren:Bool, ?maskGraphics:Graphics):Void
function __updateChildren(transformOnly:Bool):Void
function __updateMask(maskGraphics:Graphics):Void
function __updateTransforms(?overrideTransform:Matrix):Void
function getBounds(targetCoordinateSpace:DisplayObject):Rectangle
function getRect(targetCoordinateSpace:DisplayObject):Rectangle
function globalToLocal(pos:Point):Point
function hitTestObject(obj:DisplayObject):Bool
function hitTestPoint(x:Float, y:Float, ?shapeFlag:Bool):Bool
function localToGlobal(point:Point):Point
Inherited from EventDispatcher
function addEventListener(type:String, listener:Dynamic ->Void?useCapture:Bool, ?priority:Int, ?useWeakReference:Bool):Void
function dispatchEvent(event:Event):Bool
function hasEventListener(type:String):Bool
function removeEventListener(type:String, listener:Dynamic ->Void?useCapture:Bool):Void
function toString():String
function willTrigger(type:String):Bool
var antiAliasType:AntiAliasType
var autoSize:TextFieldAutoSize
var background:Bool
var backgroundColor:Int
var border:Bool
var borderColor:Int
var bottomScrollV:Int
var caretIndex:Int
var defaultTextFormat:TextFormat
var displayAsPassword:Bool
var embedFonts:Bool
var gridFitType:GridFitType
var htmlText:String
var length:Int
var maxChars:Int
var maxScrollH:Int
var maxScrollV:Int
var multiline:Bool
var numLines:Int
var restrict:String
var scrollH:Int
var scrollV:Int
var selectable:Bool
var selectionBeginIndex:Int
var selectionEndIndex:Int
var sharpness:Float
var text:String
var textColor:Int
var textHeight:Float
var textWidth:Float
var type:TextFieldType
var wordWrap:Bool
function new(): Void
function __renderCairo(renderSession:RenderSession): Void
function __renderCanvas(renderSession:RenderSession): Void
function __renderDOM(renderSession:RenderSession): Void
function __renderGL(renderSession:RenderSession): Void
function appendText(text:String): Void
function getCharBoundaries(charIndex:Int): Rectangle
function getCharIndexAtPoint(x:Float, y:Float): Int
function getFirstCharInParagraph(charIndex:Int): Int
function getLineIndexAtPoint(x:Float, y:Float): Int
function getLineIndexOfChar(charIndex:Int): Int
function getLineLength(lineIndex:Int): Int
function getLineMetrics(lineIndex:Int): TextLineMetrics
function getLineOffset(lineIndex:Int): Int
function getLineText(lineIndex:Int): String
function getParagraphLength(charIndex:Int): Int
function getTextFormat(?beginIndex:Int, ?endIndex:Int): TextFormat
function replaceSelectedText(value:String): Void
function replaceText(beginIndex:Int, endIndex:Int, newText:String): Void
function setSelection(beginIndex:Int, endIndex:Int): Void
function setTextFormat(format:TextFormat, ?beginIndex:Int, ?endIndex:Int): Void