interface alphatab.platform.ICanvas

Available on all platforms

This is the base interface for canvas implementations on different plattforms.

Instance Fields

function beginPath():Void

function bezierCurveTo(cp1x:Float, cp1y:Float, cp2x:Float, cp2y:Float, x:Float, y:Float):Void

function circle(x:Float, y:Float, radius:Float):Void

function clear():Void

function closePath():Void

function fill():Void

function fillRect(x:Float, y:Float, w:Float, h:Float):Void

function fillText(text:String, x:Float, y:Float):Void

function getHeight():Int

function getWidth():Int

function lineTo(x:Float, y:Float):Void

function measureText(text:String):Float

function moveTo(x:Float, y:Float):Void

function quadraticCurveTo(cpx:Float, cpy:Float, x:Float, y:Float):Void

function rect(x:Float, y:Float, w:Float, h:Float):Void

function setColor(color:Color):Void

function setFont(font:Font):Void

function setHeight(height:Int):Void

function setLineWidth(width:Float):Void

function setTextAlign(textAlign:TextAlign):Void

function setTextBaseline(textBaseLine:TextBaseline):Void

function setWidth(width:Int):Void

function stroke():Void

function strokeRect(x:Float, y:Float, w:Float, h:Float):Void