Package-level declarations

Types

Link copied to clipboard
open class CorneredShape(val topLeft: CorneredShape.Corner = Corner.Sharp, val topRight: CorneredShape.Corner = Corner.Sharp, val bottomRight: CorneredShape.Corner = Corner.Sharp, val bottomLeft: CorneredShape.Corner = Corner.Sharp) : Shape

A Shape implementation with customizable corners.

Link copied to clipboard
class DashedShape(val shape: Shape = Shape.Rectangle, val dashLength: Dp = Defaults.DASHED_SHAPE_DASH_LENGTH.dp, val gapLength: Dp = Defaults.DASHED_SHAPE_GAP_LENGTH.dp, val fitStrategy: DashedShape.FitStrategy = FitStrategy.Resize) : Shape

DashedShape draws a dashed line by interchangeably drawing the provided shape and leaving a gap.

Link copied to clipboard
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.

Link copied to clipboard
fun interface Shape

Defines a shape.

Functions