TextField
Away3D TextField object.
Inherited from Mesh -> Entity -> ObjectContainer3D -> Object3D -> NamedAssetBase -> EventDispatcher.
Can be created using method new:
Lib.Away3D.Text.TextField.new(width, height, text, bitmapFont, fontSize, color, bold, hAlign) |
Creates Away3D TextField. |
width - Float height - Float text - String bitmapFont - (BitmapFont) fontSize - Float (default 12) color - (default 0x0) bold - Boolean (deafault false) hAlign - (HAlign) (default LEFT) |
Created TextField object has properties:
bold |
Indicates whether the text is bold. default false |
italic |
Indicates whether the text is italicized. default false |
underline |
Indicates whether the text is underlined. default false |
kerning |
Indicates whether kerning is enabled. default true |
letterSpacing |
A number representing the amount of space that is uniformly distributed between all characters. The value specifies the number of pixels that are added to the advance after each character. The default value is nil, which means that 0 pixels of letter spacing is used. You can use decimal values such as 1.75. default 0 |
autoScale |
Indicates whether the font size is scaled down so that the complete text fits into the text field. default false |
autoSize |
Specifies the type of auto-sizing the TextField will do. Note that any auto-sizing will make auto-scaling useless. Furthermore, it has implications on alignment: horizontally auto-sized text will always be left-, vertically auto-sized text will always be top-aligned. default NONE (TextFieldAutoSize) |
textHeight |
[read-only] |
textWidth |
[read-only] |
boundsRect |
[read-only] (Rectangle) |
alpha |
Float |
methods:
dispose() |
[override] |
|
Created with the Personal Edition of HelpNDoc: Free Web Help generator