Renderer

interface Renderer

Created by Nicholas Eddy on 10/23/17.

Inheritors

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun arc(center: Point, radius: Double, sweep: Measure<Angle>, rotation: Measure<Angle>, fill: Paint)

Fills an arc centered at the given point and swept by the given angle.

abstract fun arc(center: Point, radius: Double, sweep: Measure<Angle>, rotation: Measure<Angle>, stroke: Stroke, fill: Paint? = null)

Fills and outlines an arc centered at the given point and swept by the given angle.

Link copied to clipboard
abstract fun clear()

Clear contents

Link copied to clipboard
abstract fun flush()

Cleans up commits rendering

Link copied to clipboard
abstract fun line(start: Point, end: Point, stroke: Stroke)

Draws a line between the given points.

Link copied to clipboard
abstract fun path(path: Path, stroke: Stroke)
abstract fun path(points: List<Point>, stroke: Stroke)

Draws a line path connecting the given points.

abstract fun path(path: Path, fill: Paint, fillRule: Renderer.FillRule? = null)
abstract fun path(points: List<Point>, fill: Paint, fillRule: Renderer.FillRule? = null)

Fills a line path connecting the given points.

abstract fun path(path: Path, stroke: Stroke, fill: Paint, fillRule: Renderer.FillRule? = null)
abstract fun path(points: List<Point>, stroke: Stroke, fill: Paint, fillRule: Renderer.FillRule? = null)

Fills and outlines a line path connecting the given points.

Link copied to clipboard
abstract fun poly(polygon: Polygon, fill: Paint)

Fills a polygon.

abstract fun poly(polygon: Polygon, stroke: Stroke, fill: Paint? = null)

Fills and outlines a polygon.

Link copied to clipboard
abstract fun wedge(center: Point, radius: Double, sweep: Measure<Angle>, rotation: Measure<Angle>, fill: Paint)

Fills a width centered at the given point and swept by the given angle. Wedges are like arcs with their paths closed at the center point.

abstract fun wedge(center: Point, radius: Double, sweep: Measure<Angle>, rotation: Measure<Angle>, stroke: Stroke, fill: Paint? = null)

Fills and outlines a width centered at the given point and swept by the given angle. Wedges are like arcs with their paths closed at the center point.

Inherited functions

Link copied to clipboard
inline fun Renderer.arc(center: Point, radius: Double, sweep: Measure<Angle>, rotation: Measure<Angle>, color: Color)

Fills an arc centered at the given point and swept by the given angle.

inline fun Renderer.arc(center: Point, radius: Double, sweep: Measure<Angle>, rotation: Measure<Angle>, stroke: Stroke, color: Color)

Fills and outlines an arc centered at the given point and swept by the given angle.

Link copied to clipboard
inline fun Renderer.path(path: Path, color: Color, fillRule: Renderer.FillRule? = null)
inline fun Renderer.path(points: List<Point>, color: Color, fillRule: Renderer.FillRule? = null)

Fills a line path connecting the given points.

fun Renderer.path(path: Path, stroke: Stroke, color: Color, fillRule: Renderer.FillRule? = null)
inline fun Renderer.path(points: List<Point>, stroke: Stroke, color: Color, fillRule: Renderer.FillRule? = null)

Fills and outlines a line path connecting the given points.

Link copied to clipboard
inline fun Renderer.poly(polygon: Polygon, color: Color)

Fills a polygon.

inline fun Renderer.poly(polygon: Polygon, stroke: Stroke, color: Color)

Fills and outlines a polygon.

Link copied to clipboard
inline fun Renderer.wedge(center: Point, radius: Double, sweep: Measure<Angle>, rotation: Measure<Angle>, color: Color)

Fills a width centered at the given point and swept by the given angle. Wedges are like arcs with their paths closed at the center point.

inline fun Renderer.wedge(center: Point, radius: Double, sweep: Measure<Angle>, rotation: Measure<Angle>, stroke: Stroke, color: Color)

Fills and outlines a width centered at the given point and swept by the given angle. Wedges are like arcs with their paths closed at the center point.