androidx.compose.ui.graphics
StrokeCap
Value class · from org.jetbrains.compose.ui:ui-graphics:1.12.2
No hand-written docs yet.
Styles to use for line endings. See Paint.strokeCap.
value class StrokeCap
How to get one
Ready-made values and functions that return it
ProgressIndicatorDefaults:LinearStrokeCap,CircularDeterminateStrokeCap,CircularIndeterminateStrokeCapStroke:DefaultCapDefaultStrokeLineCap
Used by
Parameters that take a StrokeCap.
CircularProgressIndicator(strokeCap)DrawScope.drawLine(cap)DrawScope.drawPoints(cap)LinearProgressIndicator(strokeCap)ProgressIndicatorDefaults.drawStopIndicator(strokeCap)
Properties
Butt
val Butt: StrokeCap
Begin and end contours with a flat edge and no extension.
Round
val Round: StrokeCap
Begin and end contours with a semi-circle extension.
Square
val Square: StrokeCap
Begin and end contours with a half square extension. This is similar to extending each contour by half the stroke width (as given by Paint.strokeWidth).
Library docs
Styles to use for line endings. See Paint.strokeCap.