Methods

@:value({ smooth : false, repeat : true, matrix : null })beginBitmapFill(bitmap:BitmapData, ?matrix:Matrix, repeat:Bool = true, smooth:Bool = false):Void

@:value({ alpha : 1, color : 0 })beginFill(color:UInt = 0, alpha:Float = 1):Void

@:value({ focalPointRatio : null, matrix : null })beginGradientFill(type:GradientType, colors:Array<UInt>, alphas:Array<Float>, ratios:Array<Int>, ?matrix:Matrix, ?spreadMethod:SpreadMethod, ?interpolationMethod:InterpolationMethod, ?focalPointRatio:Float):Void

@:require(flash10)copyFrom(sourceGraphics:Graphics):Void

@:require(flash11)cubicCurveTo(controlX1:Float, controlY1:Float, controlX2:Float, controlY2:Float, anchorX:Float, anchorY:Float):Void

curveTo(controlX:Float, controlY:Float, anchorX:Float, anchorY:Float):Void

drawEllipse(x:Float, y:Float, width:Float, height:Float):Void

@:require(flash10)drawGraphicsData(graphicsData:Vector<IGraphicsData>):Void

@:require(flash10)drawPath(commands:Vector<Int>, data:Vector<Float>, ?winding:GraphicsPathWinding):Void

drawRect(x:Float, y:Float, width:Float, height:Float):Void

@:value({ ry : -1 })drawRoundRect(x:Float, y:Float, width:Float, height:Float, rx:Float, ry:Float = -1):Void

drawRoundRectComplex(x:Float, y:Float, width:Float, height:Float, topLeftRadius:Float, topRightRadius:Float, bottomLeftRadius:Float, bottomRightRadius:Float):Void

@:value({ count : -1, flags : 0, smooth : false })inlinedrawTiles(sheet:Tilesheet, tileData:Array<Float>, smooth:Bool = false, flags:Int = 0, ?shader:Shader, count:Int = -1):Void

@:value({ blendMode : 0, uvtData : null, indices : null })@:require(flash10)drawTriangles(vertices:Vector<Float>, ?indices:Vector<Int>, ?uvtData:Vector<Float>, ?culling:TriangleCulling, ?colors:Vector<Int>, blendMode:Int = 0):Void

@:value({ smooth : false, repeat : true, matrix : null })@:require(flash10)lineBitmapStyle(bitmap:BitmapData, ?matrix:Matrix, repeat:Bool = true, smooth:Bool = false):Void

@:value({ focalPointRatio : null, matrix : null })lineGradientStyle(type:GradientType, colors:Array<UInt>, alphas:Array<Float>, ratios:Array<Int>, ?matrix:Matrix, ?spreadMethod:SpreadMethod, ?interpolationMethod:InterpolationMethod, ?focalPointRatio:Float):Void

@:value({ miterLimit : 3, pixelHinting : null, alpha : null, color : null, thickness : null })lineStyle(?thickness:Float, ?color:UInt, ?alpha:Float, ?pixelHinting:Bool, ?scaleMode:LineScaleMode, ?caps:CapsStyle, ?joints:JointStyle, miterLimit:Float = 3):Void

Static variables

@:value(0x0008)staticinlineread onlyTILE_ALPHA:Int = 0x0008

@:value(0x00010000)staticinlineread onlyTILE_BLEND_ADD:Int = 0x00010000

@:value(0x00100000)staticinlineread onlyTILE_BLEND_DARKEN:Int = 0x00100000

@:value(0x01000000)staticinlineread onlyTILE_BLEND_DIFFERENCE:Int = 0x01000000

@:value(0x00800000)staticinlineread onlyTILE_BLEND_HARDLIGHT:Int = 0x00800000

@:value(0x02000000)staticinlineread onlyTILE_BLEND_INVERT:Int = 0x02000000

@:value(0x00200000)staticinlineread onlyTILE_BLEND_LIGHTEN:Int = 0x00200000

@:value(0x00020000)staticinlineread onlyTILE_BLEND_MULTIPLY:Int = 0x00020000

@:value(0x00000000)staticinlineread onlyTILE_BLEND_NORMAL:Int = 0x00000000

@:value(0x00400000)staticinlineread onlyTILE_BLEND_OVERLAY:Int = 0x00400000

@:value(0x00040000)staticinlineread onlyTILE_BLEND_SCREEN:Int = 0x00040000

@:value(0x00080000)staticinlineread onlyTILE_BLEND_SUBTRACT:Int = 0x00080000

@:value(0x0040)staticinlineread onlyTILE_ORIGIN:Int = 0x0040

@:value(0x0020)staticinlineread onlyTILE_RECT:Int = 0x0020

@:value(0x0004)staticinlineread onlyTILE_RGB:Int = 0x0004

@:value(0x0002)staticinlineread onlyTILE_ROTATION:Int = 0x0002

@:value(0x0001)staticinlineread onlyTILE_SCALE:Int = 0x0001

@:value(0x0010)staticinlineread onlyTILE_TRANS_2x2:Int = 0x0010