# StrokeCap

Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/StrokeCap.kt+class:androidx.compose.ui.graphics.StrokeCap) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  value class StrokeCap
  ```

*** ** * ** ***

Styles to use for line endings. See `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint#strokeCap()`.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap#Butt()` Begin and end contours with a flat edge and no extension. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap#Round()` Begin and end contours with a semi-circle extension. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap#Square()` Begin and end contours with a half square extension. | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap#toString()()` | Cmn |

## Public companion properties

### Butt

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Butt: StrokeCap
```

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

### Round

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Round: StrokeCap
```

Begin and end contours with a semi-circle extension.

### Square

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
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 `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint#strokeWidth()`).

## Public functions

### toString

Cmn

```
open fun toString(): String
```