MarkerCorneredShape

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

A CorneredShape extension that additionally draws a triangular tick.

Constructors

Link copied to clipboard
constructor(all: CorneredShape.Corner, tickSizeDp: Float = MARKER_TICK_SIZE)
constructor(base: CorneredShape, tickSizeDp: Float = MARKER_TICK_SIZE)
constructor(topLeft: CorneredShape.Corner, topRight: CorneredShape.Corner, bottomRight: CorneredShape.Corner, bottomLeft: CorneredShape.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

the size of the tick (in dp).

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.