Package-level declarations

Types

Link copied to clipboard
class Bitmap32Context2d(val bmp: Bitmap32, val antialiasing: Boolean) : Renderer
Link copied to clipboard
class BitmapVector(val shape: BoundsDrawable, val bounds: Rectangle = shape.bounds, val scale: Double = 1.0, val rasterizerMethod: ShapeRasterizerMethod = ShapeRasterizerMethod.X4, val antialiasing: Boolean = true, val width: Int = (bounds.width * scale).toInt(), val height: Int = (bounds.height * scale).toInt(), premultiplied: Boolean, val native: Boolean = true) : Bitmap
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ColoredBezier(val bezier: Bezier, val color: RGBA)
Link copied to clipboard
class ColorizedBeziers(val beziers: List<ColoredBezier>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class CompoundShape(val components: List<Shape>) : Shape
Link copied to clipboard
open class Context2d(val renderer: Renderer, val defaultFontRegistry: FontRegistry? = null, val defaultFont: Font? = null) : VectorBuilder, Disposable
Link copied to clipboard
Link copied to clipboard
inline class CycleMethodPair(val data: Int)
Link copied to clipboard
interface Drawable
Link copied to clipboard
object EmptyShape : Shape
Link copied to clipboard
data class FillShape(val path: VectorPath, val clip: VectorPath?, val paint: Paint, val transform: Matrix = Matrix.IDENTITY, val globalAlpha: Double = 1.0) : StyledShape
Link copied to clipboard
class FuncDrawable(val action: Context2d.() -> Unit) : Drawable
Link copied to clipboard
data class GraphicsPath(val path: VectorPath = VectorPath()) : IVectorPath, SizedDrawable, Extra
Link copied to clipboard
class NinePatchShape(val shape: Shape, val slices: NinePatchSlices2D)
Link copied to clipboard
class NinePatchVector(val path: VectorPath, val slices: NinePatchSlices2D, oldSize: Size? = null)
Link copied to clipboard
data class PolylineShape(val path: VectorPath, val clip: VectorPath?, val paint: Paint, val transform: Matrix, val strokeInfo: StrokeInfo, val globalAlpha: Double = 1.0) : StyledShape
Link copied to clipboard
class ProjectCurvesLookup(val beziers: List<Bezier>)
Link copied to clipboard
interface Shape : BoundsDrawable
Link copied to clipboard
open class ShapeBuilder(width: Int?, height: Int?) : Context2d, Drawable
Link copied to clipboard
Link copied to clipboard
interface StyledShape : Shape
Link copied to clipboard
class SvgBuilder(val bounds: Rectangle, val scale: Double, val roundDecimalPlaces: Int = -1)
Link copied to clipboard
class TextShape(val text: String, val pos: Point, val font: Font?, val fontSize: Double, val clip: VectorPath?, val fill: Paint?, val stroke: Paint?, val align: TextAlignment = TextAlignment.TOP_LEFT, val transform: Matrix = Matrix.IDENTITY, val globalAlpha: Double = 1.0) : StyledShape

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun Context2d.arrow(p0: Point, p1: Point, width: Double, paint: Paint, capEnd: ArrowCap = ArrowCap.Line(null), capStart: ArrowCap = ArrowCap.NoCap)
Link copied to clipboard
fun Context2d.arrowCap(p0: Point, p1: Point, width: Double, paint: Paint, cap: ArrowCap)
Link copied to clipboard
fun Context2d.arrowTo(p1: Point, width: Double, paint: Paint, capEnd: ArrowCap = ArrowCap.Line(null), capStart: ArrowCap = ArrowCap.NoCap)
Link copied to clipboard
inline fun buildShape(width: Int? = null, height: Int? = null, builder: ShapeBuilder.() -> Unit): Shape
Link copied to clipboard
fun buildSvgXml(width: Int? = null, height: Int? = null, block: ShapeBuilder.() -> Unit): Xml
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Shape.filterShape(filter: (Shape) -> Boolean): Shape
Link copied to clipboard
fun Shape.mapShape(map: (Shape) -> Shape): Shape
Link copied to clipboard
Link copied to clipboard
fun VectorPath.msdfBmp(width: Int, height: Int): Bitmap32
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Drawable.renderToImage(width: Int, height: Int): NativeImage
fun Drawable.renderToImage(width: Int, height: Int, native: Boolean): Bitmap
Link copied to clipboard
fun BoundsDrawable.renderWithHotspot(scale: Double? = null, fit: Size? = null, native: Boolean = true): BitmapWithHotspot<Bitmap>
Link copied to clipboard
fun SizedDrawable.scaled(sx: Number = 1.0, sy: Number = sx): SizedDrawable
Link copied to clipboard
fun Shape.scaledShape(sx: Double, sy: Double = sx): Shape
Link copied to clipboard
fun VectorPath.scaleNinePatch(newSize: Size, slices: NinePatchSlices2D = NinePatchSlices2D(), oldSize: Size? = null, out: VectorPath = VectorPath()): VectorPath
Link copied to clipboard
Link copied to clipboard
fun VectorPath.sdfBmp(width: Int, height: Int): Bitmap32
Link copied to clipboard
Link copied to clipboard
fun VectorPath.toContext2dCommands(prefix: String = "ctx.", suffix: String = ";", decimalPlaces: Int = 1): List<String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Shape.toNinePatchFromGuides(guideColor: RGBA = Colors.FUCHSIA, optimizeShape: Boolean = true): NinePatchShape
Link copied to clipboard
fun Drawable.toShape(width: Int, height: Int): Shape
Link copied to clipboard
fun VectorPath.toStrokeShape(paint: Paint, info: StrokeInfo = StrokeInfo()): Shape
fun VectorPath.toStrokeShape(paint: Paint, thickness: Double = 1.0, pixelHinting: Boolean = false, scaleMode: LineScaleMode = LineScaleMode.NORMAL, startCap: LineCap = LineCap.BUTT, endCap: LineCap = LineCap.BUTT, lineJoin: LineJoin = LineJoin.MITER, miterLimit: Double = 20.0): Shape
Link copied to clipboard
fun SizedDrawable.toSvg(scale: Double = 1.0): Xml
fun Shape.toSvg(scale: Double = 1.0, roundDecimalPlaces: Int = -1): Xml
fun Drawable.toSvg(width: Int, height: Int, scale: Double = 1.0): Xml
Link copied to clipboard
fun Shape.toSvgInstance(scale: Double = 1.0): SVG
Link copied to clipboard
fun VectorPath.toSvgPathString(separator: String = " ", decimalPlaces: Int = 1): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Shape.translatedShape(x: Double = 0.0, y: Double = 0.0): Shape