Package-level declarations

Types

Link copied to clipboard
sealed class Corner

A class used to specify the size and look of a given shape corner.

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

A Shape implementation with customizable corners.

Link copied to clipboard

Defines the location of a shape corner.

Link copied to clipboard
interface CornerTreatment

Defines a shape corner style.

Link copied to clipboard

Creates cut corners.

Link copied to clipboard
class DashedShape(val shape: Shape = Shape.Rectangle, val dashLengthDp: Float = Defaults.DASHED_SHAPE_DASH_LENGTH, val gapLengthDp: Float = Defaults.DASHED_SHAPE_GAP_LENGTH, 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: 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.

Link copied to clipboard

Creates rounded corners.

Link copied to clipboard
fun interface Shape

Defines a shape.

Link copied to clipboard

Creates sharp corners.