| public |
applyBrushapplyBrush(brush as Brush) as Void: |
Applies a `Brush` to the fill-related state. |
| public |
applyPenapplyPen(pen as Pen) as Void: |
Applies a `Pen` to the stroke-related state. |
| public |
arc |
Adds an arc segment. |
| public |
arcTo |
Adds an `arcTo` segment. |
| public |
beginPath beginPath() as Void:
|
Clears the current path and starts a new one. |
| public |
bezierCurveTobezierCurveTo(cp1x as Int, cp1y as Int, cp2x as Int, cp2y as Int, x as Int, y as Int) as Void: |
Adds a cubic Bezier curve segment. |
| public |
clearCommands clearCommands() as Void:
|
Clears the recorded commands without touching the state. |
| public |
clearRectclearRect(x as Int, y as Int, width as Int, height as Int) as Void: |
Clears a rectangular area. |
| public |
clip clip() as Void:
|
Intersects the current clip with the current path. |
| public |
closePath closePath() as Void:
|
Closes the current path. |
| public |
commands |
Returns the command history recorded by this painter. |
| public |
createLinearGradient |
Creates a linear gradient. |
| public |
createPattern |
Creates an image pattern. |
| public |
createRadialGradient |
Creates a radial gradient. |
| public |
currentBrush |
Builds a `Brush` from the current fill-related state. |
| public |
currentPath |
Returns a textual description of the current path. |
| public |
currentPen |
Builds a `Pen` from the current stroke-related state. |
| public |
drawEllipsedrawEllipse(x as Int, y as Int, width as Int, height as Int) as Void: |
Java-style alias of `strokeOval`. |
| public |
drawImagedrawImage(image as Object, dx as Int, dy as Int, dw as Int = -1, dh as Int = -1, sx as Int = 0, sy as Int = 0, sw as Int = -1, sh as Int = -1) as Void: |
Draws an image-like source. |
| public |
drawLinedrawLine(x1 as Int, y1 as Int, x2 as Int, y2 as Int) as Void: |
Java-style alias of `strokeLine`. |
| public |
drawRectdrawRect(x as Int, y as Int, width as Int, height as Int) as Void: |
Java-style alias of `strokeRect`. |
| public |
drawText |
Java-style alias of `fillText`. |
| public |
ellipse |
Adds an ellipse segment. |
| public |
fill fill() as Void:
|
Fills the current path. |
| public |
fillEllipsefillEllipse(x as Int, y as Int, width as Int, height as Int) as Void: |
Java-style alias of `fillOval`. |
| public |
fillOvalfillOval(x as Int, y as Int, width as Int, height as Int) as Void: |
Fills an oval or ellipse. |
| public |
fillRectfillRect(x as Int, y as Int, width as Int, height as Int) as Void: |
Fills a rectangle. |
| public |
fillRoundRectfillRoundRect(x as Int, y as Int, width as Int, height as Int, radius as Int) as Void: |
Fills a rounded rectangle. |
| public |
fillText |
Draws filled text. |
| public |
getLineDash |
Returns the current dash pattern. |
| public |
lineTolineTo(x as Int, y as Int) as Void: |
Adds a `lineTo` segment to the current path. |
| public |
measureText |
Estimates text metrics for the current font. |
| public |
moveTomoveTo(x as Int, y as Int) as Void: |
Adds a `moveTo` segment to the current path. |
| public |
quadraticCurveToquadraticCurveTo(cpx as Int, cpy as Int, x as Int, y as Int) as Void: |
Adds a quadratic curve segment. |
| public |
rectrect(x as Int, y as Int, width as Int, height as Int) as Void: |
Adds a rectangle to the current path. |
| public |
reset reset() as Void:
|
Resets the painter state to the default configuration. |
| public |
resetClip resetClip() as Void:
|
Clears the clip information tracked by the painter. |
| public |
resetTransform resetTransform() as Void:
|
Restores the identity transform. |
| public |
restore restore() as Void:
|
Restores the last saved drawing state. |
| public |
rotaterotate(angle as Double) as Void: |
Applies a rotation in radians to the current transform. |
| public |
roundRectroundRect(x as Int, y as Int, width as Int, height as Int, radius as Int) as Void: |
Adds a rounded rectangle to the current path. |
| public |
save save() as Void:
|
Saves the current drawing state on the internal stack. |
| public |
scale |
Applies a scale to the current transform. |
| public |
setLineDash |
Replaces the current dash pattern. |
| public |
setTransform |
Replaces the current transform. |
| public |
shear |
Applies a shear transform. |
| public |
stroke stroke() as Void:
|
Strokes the current path. |
| public |
strokeLinestrokeLine(x1 as Int, y1 as Int, x2 as Int, y2 as Int) as Void: |
Strokes a line segment. |
| public |
strokeOvalstrokeOval(x as Int, y as Int, width as Int, height as Int) as Void: |
Strokes an oval or ellipse. |
| public |
strokeRectstrokeRect(x as Int, y as Int, width as Int, height as Int) as Void: |
Strokes a rectangle. |
| public |
strokeRoundRectstrokeRoundRect(x as Int, y as Int, width as Int, height as Int, radius as Int) as Void: |
Strokes a rounded rectangle. |
| public |
strokeText |
Draws stroked text. |
| public |
transform |
Applies an affine transform to the current matrix. |
| public |
translate |
Applies a translation to the current transform. |