graphics.hx

来自「ocaml编写的一个flash编译器」· HX 代码 · 共 21 行

HX
21
字号
package flash.display;extern class Graphics {	function new() : Void;	function beginBitmapFill(bitmap : BitmapData, ?matrix : flash.geom.Matrix, ?repeat : Bool, ?smooth : Bool) : Void;	function beginFill(color : UInt, ?alpha : Float) : Void;	function beginGradientFill(type : GradientType, colors : Array<UInt>, alphas : Array<+Float>, ratios : Array<+Float>, ?matrix : flash.geom.Matrix, ?spreadMethod : SpreadMethod, ?interpolationMethod : InterpolationMethod, ?focalPointRatio : Float) : Void;	function clear() : Void;	function curveTo(controlX : Float, controlY : Float, anchorX : Float, anchorY : Float) : Void;	function drawCircle(x : Float, y : Float, radius : Float) : Void;	function drawEllipse(x : Float, y : Float, width : Float, height : Float) : Void;	function drawRect(x : Float, y : Float, width : Float, height : Float) : Void;	function drawRoundRect(x : Float, y : Float, width : Float, height : Float, ellipseWidth : Float, ?ellipseHeight : Float) : Void;	function drawRoundRectComplex(x : Float, y : Float, width : Float, height : Float, topLeftRadius : Float, topRightRadius : Float, bottomLeftRadius : Float, bottomRightRadius : Float) : Void;	function endFill() : Void;	function lineGradientStyle(type : GradientType, colors : Array<UInt>, alphas : Array<+Float>, ratios : Array<+Float>, ?matrix : flash.geom.Matrix, ?spreadMethod : SpreadMethod, ?interpolationMethod : InterpolationMethod, ?focalPointRatio : Float) : Void;	function lineStyle(?thickness : Float, ?color : UInt, ?alpha : Float, ?pixelHinting : Bool, ?scaleMode : LineScaleMode, ?caps : CapsStyle, ?joints : JointStyle, ?miterLimit : Float) : Void;	function lineTo(x : Float, y : Float) : Void;	function moveTo(x : Float, y : Float) : Void;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?