Drawer

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun arc(brush: Brush, startAngle: Float, sweepAngle: Float, position: Offset, size: Size, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver, useCenter: Boolean = false)
fun arc(color: Color, startAngle: Float, sweepAngle: Float, position: Offset, size: Size, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver, useCenter: Boolean = false)
Link copied to clipboard
fun circle(brush: Brush, position: Offset, radius: Float, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun circle(color: Color, position: Offset, radius: Float, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
inline fun clip(rect: Rect, block: Drawer.() -> Unit)
inline fun clip(path: Path, block: Drawer.() -> Unit)
inline fun clip(position: Offset, size: Size, block: Drawer.() -> Unit)
Link copied to clipboard
inline fun clipCircle(rect: Rect, block: Drawer.() -> Unit)
Link copied to clipboard
fun image(image: ImageBitmap, rect: Rect, alpha: Float = 1.0f, colorFilter: ColorFilter? = null, blendMode: BlendMode = BlendMode.SrcOver)
fun image(image: ImageBitmap, position: Offset, size: Size, alpha: Float = 1.0f, colorFilter: ColorFilter? = null, blendMode: BlendMode = BlendMode.SrcOver)
fun image(image: ImageBitmap, src: Rect, dst: Rect, alpha: Float = 1.0f, colorFilter: ColorFilter? = null, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
fun line(brush: Brush, start: Offset, end: Offset, style: Stroke, alpha: Float = 1.0f, blendMode: BlendMode = BlendMode.SrcOver)
fun line(color: Color, start: Offset, end: Offset, style: Stroke, alpha: Float = 1.0f, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
fun measureStrokeText(text: String, font: FontResource? = null, fontWeight: FontWeight = FontWeight.Normal, fontStyle: FontStyle = FontStyle.Normal, letterSpacing: Float = 0.015f, shadow: Shadow? = null, textDecoration: TextDecoration? = null, blendMode: BlendMode = DrawScope.DefaultBlendMode): StrokeTextGraph
Link copied to clipboard
fun measureText(text: String, font: FontResource? = null, fontWeight: FontWeight = FontWeight.Normal, fontStyle: FontStyle = FontStyle.Normal, letterSpacing: Float = 0.015f, shadow: Shadow? = null, textDecoration: TextDecoration? = null, blendMode: BlendMode = DrawScope.DefaultBlendMode): TextGraph
Link copied to clipboard
fun oval(brush: Brush, position: Offset, radiusX: Float, radiusY: Float, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun oval(color: Color, position: Offset, radiusX: Float, radiusY: Float, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
fun path(brush: Brush, path: Path, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun path(color: Color, path: Path, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
fun quadrilateral(brush: Brush, area: Array<Offset>, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun quadrilateral(color: Color, area: Array<Offset>, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
fun rect(brush: Brush, rect: Rect, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun rect(color: Color, rect: Rect, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun rect(brush: Brush, position: Offset, size: Size, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun rect(color: Color, position: Offset, size: Size, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
inline fun rotate(degrees: Float, pivot: Offset, block: Drawer.() -> Unit)
Link copied to clipboard
fun roundRect(brush: Brush, radius: Float, rect: Rect, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun roundRect(color: Color, radius: Float, rect: Rect, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun roundRect(brush: Brush, radius: Float, position: Offset, size: Size, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun roundRect(color: Color, radius: Float, position: Offset, size: Size, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
inline fun scale(ratio: Float, pivot: Offset, block: Drawer.() -> Unit)
inline fun scale(x: Float, y: Float, pivot: Offset, block: Drawer.() -> Unit)
Link copied to clipboard
fun strokeText(content: StrokeTextGraph, position: Offset, size: Size, color: Color, strokeColor: Color, stroke: Stroke, textAlign: TextAlign = TextAlign.Start)
fun strokeText(content: StrokeTextGraph, position: Offset, size: Size, brush: Brush, strokeColor: Color, stroke: Stroke, textAlign: TextAlign = TextAlign.Start, alpha: Float = 1.0f)
Link copied to clipboard
fun text(content: TextGraph, position: Offset, size: Size, color: Color, textAlign: TextAlign = TextAlign.Start)
fun text(content: TextGraph, position: Offset, size: Size, brush: Brush, textAlign: TextAlign = TextAlign.Start, alpha: Float = 1.0f)
Link copied to clipboard
inline fun transform(matrix: Matrix, block: Drawer.() -> Unit)
inline fun transform(transformBlock: DrawTransform.() -> Unit, block: Drawer.() -> Unit)
Link copied to clipboard
inline fun translate(offset: Offset, block: Drawer.() -> Unit)
inline fun translate(x: Float, y: Float, block: Drawer.() -> Unit)