class openfl.gui.TextBox extends Control
Available on all platforms
Instance Fields
var totalHeight:Float
Specifies the height of the text box. This will redraw the bounds of the text box.
var totalWidth:Float
Specifies the width of the text box. This will redraw the bounds of the text box.
function new(defaultValue:String, ?width:Float = 100, ?height:Float = 20, ?font:String = 'Arial', ?fontStyle:FontStyle = null, ?embedded:Bool = false):Void
Create an interactive text box.
defaultValue | The default value of the text box. |
width | The width of the text box. |
height | The height of the text box. |
font | The embedded resource or name of the font to use. |
fontStyle | The style of the font, including size, color and underline. |
embedded | Whether to use embedded resources or device fonts. |