MarkerCorneredShape

open class MarkerCorneredShape(topLeft: CorneredShape.Corner, topRight: CorneredShape.Corner, bottomRight: CorneredShape.Corner, bottomLeft: CorneredShape.Corner, val tickSize: Dp = MARKER_TICK_SIZE.dp) : CorneredShape

A CorneredShape extension that additionally draws a triangular tick.

Constructors

Link copied to clipboard
constructor(all: CorneredShape.Corner, tickSize: Dp = MARKER_TICK_SIZE.dp)
constructor(base: CorneredShape, tickSize: Dp = MARKER_TICK_SIZE.dp)
constructor(topLeft: CorneredShape.Corner, topRight: CorneredShape.Corner, bottomRight: CorneredShape.Corner, bottomLeft: CorneredShape.Corner, tickSize: Dp = MARKER_TICK_SIZE.dp)

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.

Link copied to clipboard
var tickX: Float?

The tick’s x coordinate (relative to the center of MarkerCorneredShape). 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.