Package | verlocity.display.ui |
Class | public class Text |
Inheritance | Text UIElement flash.display.Sprite |
Subclasses | Button, Message, Ticker |
Property | Defined By | ||
---|---|---|---|
nScale : Number | UIElement | ||
tfTextField : TextField | Text | ||
tfTextFormat : TextFormat | Text |
Method | Defined By | ||
---|---|---|---|
Text(sText:String = null, tfFormat:TextFormat = null) | Text | ||
Clear():void
Clears all graphics drawn on the UI element. | UIElement | ||
Dispose():void [override] | Text | ||
DrawRect(uiColor:uint = 0xFFFFFF, nAlpha:Number = 1, iWidth:int = 0, iHeight:int = 0, bLine:Boolean = false, iLineThickness:int = 1, uiLineColor:uint = 0xFFFFFF, nLineAlpha:Number = 1, bRounded:Boolean = false, iRoundness:int = 10, iOffsetX:int = 0, iOffsetY:int = 1):void [override] | Text | ||
GetHeight():int | Text | ||
GetScale():Number
Returns the scale of the UI element. | UIElement | ||
GetWidth():int | Text | ||
ResetPos():void
Resets the X and Y position of the UI element to its original spawn position. | UIElement | ||
SetHeight(iHeight:int):void | Text | ||
SetOriginPos(nPosX:Number, nPosY:Number):void
Overrides origin position
| UIElement | ||
SetPos(nPosX:Number, nPosY:Number):void
Sets the X and Y position of the UI element. | UIElement | ||
SetScale(nSetScale:Number):void
Sets the scale of the UI element. | UIElement | ||
SetText(sText:String, tfFormat:TextFormat = null):void | Text | ||
SetTextColor(uiColor:uint):void | Text | ||
SetWidth(iWidth:int):void | Text |
tfTextField | property |
protected var tfTextField:TextField
tfTextFormat | property |
protected var tfTextFormat:TextFormat
Text | () | Constructor |
public function Text(sText:String = null, tfFormat:TextFormat = null)
sText:String (default = null )
| |
tfFormat:TextFormat (default = null )
|
Dispose | () | method |
override public function Dispose():void
DrawRect | () | method |
override public function DrawRect(uiColor:uint = 0xFFFFFF, nAlpha:Number = 1, iWidth:int = 0, iHeight:int = 0, bLine:Boolean = false, iLineThickness:int = 1, uiLineColor:uint = 0xFFFFFF, nLineAlpha:Number = 1, bRounded:Boolean = false, iRoundness:int = 10, iOffsetX:int = 0, iOffsetY:int = 1):void
Parameters
uiColor:uint (default = 0xFFFFFF )
| |
nAlpha:Number (default = 1 )
| |
iWidth:int (default = 0 )
| |
iHeight:int (default = 0 )
| |
bLine:Boolean (default = false )
| |
iLineThickness:int (default = 1 )
| |
uiLineColor:uint (default = 0xFFFFFF )
| |
nLineAlpha:Number (default = 1 )
| |
bRounded:Boolean (default = false )
| |
iRoundness:int (default = 10 )
| |
iOffsetX:int (default = 0 )
| |
iOffsetY:int (default = 1 )
|
GetHeight | () | method |
public function GetHeight():int
Returnsint |
GetWidth | () | method |
public function GetWidth():int
Returnsint |
SetHeight | () | method |
public function SetHeight(iHeight:int):void
Parameters
iHeight:int |
SetText | () | method |
public function SetText(sText:String, tfFormat:TextFormat = null):void
Parameters
sText:String | |
tfFormat:TextFormat (default = null )
|
SetTextColor | () | method |
public function SetTextColor(uiColor:uint):void
Parameters
uiColor:uint |
SetWidth | () | method |
public function SetWidth(iWidth:int):void
Parameters
iWidth:int |