Class

StrokeCap

Styles to use for line endings.

Source set: Common
public class StrokeCap internal constructor(@Suppress("unused") private val value: Int)

Styles to use for line endings. See Paint.strokeCap.

Functions

toString

Source set: Common
override fun toString(): String

Members

Companion

Source set: Common
public companion object

Properties

Butt

Source set: Common
public val Butt: StrokeCap

Begin and end contours with a flat edge and no extension.

Round

Source set: Common
public val Round: StrokeCap

Begin and end contours with a semi-circle extension.

Square

Source set: Common
public 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).

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: