TextShape

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

Constructors

Link copied to clipboard
constructor(text: String, pos: Point, font: Font?, fontSize: Double, clip: VectorPath?, fill: Paint?, stroke: Paint?, align: TextAlignment = TextAlignment.TOP_LEFT, transform: Matrix = Matrix.IDENTITY, globalAlpha: Double = 1.0)

Properties

Link copied to clipboard
Link copied to clipboard
open override val bounds: Rectangle
Link copied to clipboard
open override val clip: VectorPath?
Link copied to clipboard
val fill: Paint?
Link copied to clipboard
val font: Font?
Link copied to clipboard
Link copied to clipboard
open override val globalAlpha: Double = 1.0
Link copied to clipboard
open override val height: Int
Link copied to clipboard
open val left: Int
Link copied to clipboard
open override val paint: Paint
Link copied to clipboard
open val path: VectorPath?

Path with transform already applied

Link copied to clipboard
val pos: Point
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val top: Int
Link copied to clipboard
open override val transform: Matrix
Link copied to clipboard
open override val width: Int

Functions

Link copied to clipboard
open override fun buildSvg(svg: SvgBuilder)
Link copied to clipboard
Link copied to clipboard
open override fun draw(c: Context2d)
Link copied to clipboard
fun <T : Bitmap> Drawable.draw(out: T): T
Link copied to clipboard
open override fun drawInternal(c: Context2d)
Link copied to clipboard
Link copied to clipboard
fun Shape.filterShape(filter: (Shape) -> Boolean): Shape
Link copied to clipboard
open override fun getBounds(includeStrokes: Boolean): Rectangle
Link copied to clipboard
open override fun getPath(path: VectorPath): VectorPath
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Shape.mapShape(map: (Shape) -> Shape): Shape
Link copied to clipboard
Link copied to clipboard
fun SizedDrawable.raster(scaleX: Double = 1.0, scaleY: Double = scaleX): NativeImage
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
suspend fun SizedDrawable.showImageAndWait(kind: Int = 0)
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 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
Link copied to clipboard
Link copied to clipboard
fun Shape.translatedShape(x: Double = 0.0, y: Double = 0.0): Shape