MarkerCorneredShape

open class MarkerCorneredShape(topLeft: Corner, topRight: Corner, bottomRight: Corner, bottomLeft: Corner, val tickSizeDp: Float = 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 = MARKER_TICK_SIZE)
constructor(corneredShape: CorneredShape, tickSizeDp: Float = MARKER_TICK_SIZE)
constructor(topLeft: Corner, topRight: Corner, bottomRight: Corner, bottomLeft: Corner, tickSizeDp: Float = MARKER_TICK_SIZE)

Types

Link copied to clipboard

Specifies the position of a MarkerCorneredShape’s tick.

Properties

Link copied to clipboard

Specifies the tick position.

Link copied to clipboard
Link copied to clipboard
var tickX: Float?

The tick’s x coordinate. If this is null, the tick isn’t drawn.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun outline(context: MeasuringContext, path: Path, left: Float, top: Float, right: Float, bottom: Float)

Adds an outline of the Shape to path. left, top, right, and bottom define the outline bounds.