Property | Defined By | ||
---|---|---|---|
alpha : uint | Graphics | ||
blendMode : String | Graphics | ||
_color : uint | Graphics | ||
color : uint | Graphics | ||
_ct : ColorTransform | Graphics | ||
defaultFont : Font [static] | Graphics | ||
fc : uint = 0x00ffffff | Graphics | ||
font : Font | Graphics | ||
x : int | Graphics | ||
y : int | Graphics |
Method | Defined By | ||
---|---|---|---|
Graphics() | Graphics | ||
addPointToCurve(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void | Graphics | ||
addPointToPolygon(x:Number, y:Number):void | Graphics | ||
beginDrawCurve(startX:Number, startY:Number):void | Graphics | ||
beginDrawPolygon():void | Graphics | ||
beginFillCurve(startX:Number, startY:Number):void | Graphics | ||
beginFillPolygon():void | Graphics | ||
drawCircle(xCenter:uint, yCenter:uint, radius:uint):void | Graphics | ||
drawImage(img:BitmapData, x:int, y:int, w:int = -1, h:int = -1, overrideAlpha:Boolean = false):void | Graphics | ||
drawLine(x1:uint, y1:uint, x2:uint, y2:uint):void | Graphics | ||
drawPixel(x:uint, y:uint):void | Graphics | ||
drawRect(x:int, y:int, w:int, h:int):void | Graphics | ||
drawRoundRect(x:int, y:int, w:int, h:int, arcSize:int):void | Graphics | ||
drawString(s:String, x:int = 0, y:int = 0, w:int = 0, alignment:String = left):void | Graphics | ||
endDrawingCurve():void | Graphics | ||
endDrawingPolygon():void | Graphics | ||
fillCircle(xCenter:uint, yCenter:uint, radius:uint):void | Graphics | ||
fillRect(x:int, y:int, w:int, h:int):void | Graphics | ||
fillRoundRect(x:int, y:int, w:int, h:int, arcSize:int):void | Graphics | ||
getBlendMode():String | Graphics | ||
getColor():uint | Graphics | ||
Graphics | |||
getOpacity():uint | Graphics | ||
getStrokeColor():uint | Graphics | ||
getStrokeThickness():Number | Graphics | ||
moveTo(x:int, y:int):void | Graphics | ||
setBlendMode(blendMode:String):void | Graphics | ||
setColor(color:uint):void | Graphics | ||
Graphics | |||
setGradient(startColor:uint, endColor:uint):void | Graphics | ||
setOpacity(alpha:uint):void | Graphics | ||
setRadialGradient(startColor:uint, endColor:uint):void | Graphics | ||
setStrokeColor(color:uint):void | Graphics | ||
setStrokeThickness(thickness:Number):void | Graphics | ||
translate(x:int, y:int):void | Graphics | ||
translateToActor(a:Actor):void | Graphics | ||
translateToScreen():void | Graphics |
_color | property |
public var _color:uint
_ct | property |
public var _ct:ColorTransform
alpha | property |
public var alpha:uint
blendMode | property |
public var blendMode:String
color | property |
public var color:uint
defaultFont | property |
public static var defaultFont:Font
fc | property |
public var fc:uint = 0x00ffffff
font | property |
public var font:Font
x | property |
public var x:int
y | property |
public var y:int
Graphics | () | Constructor |
public function Graphics()
addPointToCurve | () | method |
public function addPointToCurve(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void
Parameters
controlX:Number | |
controlY:Number | |
anchorX:Number | |
anchorY:Number |
addPointToPolygon | () | method |
public function addPointToPolygon(x:Number, y:Number):void
Parameters
x:Number | |
y:Number |
beginDrawCurve | () | method |
public function beginDrawCurve(startX:Number, startY:Number):void
Parameters
startX:Number | |
startY:Number |
beginDrawPolygon | () | method |
public function beginDrawPolygon():void
beginFillCurve | () | method |
public function beginFillCurve(startX:Number, startY:Number):void
Parameters
startX:Number | |
startY:Number |
beginFillPolygon | () | method |
public function beginFillPolygon():void
drawCircle | () | method |
public function drawCircle(xCenter:uint, yCenter:uint, radius:uint):void
Parameters
xCenter:uint | |
yCenter:uint | |
radius:uint |
drawImage | () | method |
public function drawImage(img:BitmapData, x:int, y:int, w:int = -1, h:int = -1, overrideAlpha:Boolean = false):void
Parameters
img:BitmapData | |
x:int | |
y:int | |
w:int (default = -1 )
| |
h:int (default = -1 )
| |
overrideAlpha:Boolean (default = false )
|
drawLine | () | method |
public function drawLine(x1:uint, y1:uint, x2:uint, y2:uint):void
Parameters
x1:uint | |
y1:uint | |
x2:uint | |
y2:uint |
drawPixel | () | method |
public function drawPixel(x:uint, y:uint):void
Parameters
x:uint | |
y:uint |
drawRect | () | method |
public function drawRect(x:int, y:int, w:int, h:int):void
Parameters
x:int | |
y:int | |
w:int | |
h:int |
drawRoundRect | () | method |
public function drawRoundRect(x:int, y:int, w:int, h:int, arcSize:int):void
Parameters
x:int | |
y:int | |
w:int | |
h:int | |
arcSize:int |
drawString | () | method |
public function drawString(s:String, x:int = 0, y:int = 0, w:int = 0, alignment:String = left):void
Parameters
s:String | |
x:int (default = 0 )
| |
y:int (default = 0 )
| |
w:int (default = 0 )
| |
alignment:String (default = left )
|
endDrawingCurve | () | method |
public function endDrawingCurve():void
endDrawingPolygon | () | method |
public function endDrawingPolygon():void
fillCircle | () | method |
public function fillCircle(xCenter:uint, yCenter:uint, radius:uint):void
Parameters
xCenter:uint | |
yCenter:uint | |
radius:uint |
fillRect | () | method |
public function fillRect(x:int, y:int, w:int, h:int):void
Parameters
x:int | |
y:int | |
w:int | |
h:int |
fillRoundRect | () | method |
public function fillRoundRect(x:int, y:int, w:int, h:int, arcSize:int):void
Parameters
x:int | |
y:int | |
w:int | |
h:int | |
arcSize:int |
getBlendMode | () | method |
public function getBlendMode():String
ReturnsString |
getColor | () | method |
public function getColor():uint
Returnsuint |
getFont | () | method |
getOpacity | () | method |
public function getOpacity():uint
Returnsuint |
getStrokeColor | () | method |
public function getStrokeColor():uint
Returnsuint |
getStrokeThickness | () | method |
public function getStrokeThickness():Number
ReturnsNumber |
moveTo | () | method |
public function moveTo(x:int, y:int):void
Parameters
x:int | |
y:int |
setBlendMode | () | method |
public function setBlendMode(blendMode:String):void
Parameters
blendMode:String |
setColor | () | method |
public function setColor(color:uint):void
Parameters
color:uint |
setFont | () | method |
setGradient | () | method |
public function setGradient(startColor:uint, endColor:uint):void
Parameters
startColor:uint | |
endColor:uint |
setOpacity | () | method |
public function setOpacity(alpha:uint):void
Parameters
alpha:uint |
setRadialGradient | () | method |
public function setRadialGradient(startColor:uint, endColor:uint):void
Parameters
startColor:uint | |
endColor:uint |
setStrokeColor | () | method |
public function setStrokeColor(color:uint):void
Parameters
color:uint |
setStrokeThickness | () | method |
public function setStrokeThickness(thickness:Number):void
Parameters
thickness:Number |
translate | () | method |
public function translate(x:int, y:int):void
Parameters
x:int | |
y:int |
translateToActor | () | method |
translateToScreen | () | method |
public function translateToScreen():void