MarkerCorneredShape

open class MarkerCorneredShape(topLeft: Corner, topRight: Corner, bottomRight: Corner, bottomLeft: Corner, val tickSizeDp: Float = DEF_MARKER_TICK_SIZE) : CorneredShape

MarkerCorneredShape is an extension of CorneredShape that supports drawing a triangular tick at a given point.

Parameters

topLeft

specifies a Corner for the top left of the Shape.

topRight

specifies a Corner for the top right of the Shape.

bottomLeft

specifies a Corner for the bottom left of the Shape.

bottomRight

specifies a Corner for the bottom right of the Shape.

tickSizeDp

the size of the tick (in dp).

Constructors

Link copied to clipboard
constructor(all: Corner, tickSizeDp: Float = DEF_MARKER_TICK_SIZE)
constructor(corneredShape: CorneredShape, tickSizeDp: Float = DEF_MARKER_TICK_SIZE)
constructor(topLeft: Corner, topRight: Corner, bottomRight: Corner, bottomLeft: Corner, tickSizeDp: Float = DEF_MARKER_TICK_SIZE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun drawShape(context: DrawContext, paint: Paint, path: Path, left: Float, top: Float, right: Float, bottom: Float)

Draws the Shape on the canvas.