# PaintingStyle

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/PaintingStyle.kt+class:androidx.compose.ui.graphics.PaintingStyle) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  value class PaintingStyle
  ```

*** ** * ** ***

Strategies for painting shapes and paths on a canvas.

See `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint#style()`.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PaintingStyle` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PaintingStyle#Fill()` Apply the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` to the inside of the shape. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PaintingStyle` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PaintingStyle#Stroke()` Apply the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` to the edge of the shape. | 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/PaintingStyle#toString()()` | Cmn |

## Public companion properties

### Fill

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

```
val Fill: PaintingStyle
```

Apply the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` to the inside of the shape. For example, when applied to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#drawCircle(androidx.compose.ui.geometry.Offset,kotlin.Float,androidx.compose.ui.graphics.Paint)` call, this results in a disc of the given size being painted.

### Stroke

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

```
val Stroke: PaintingStyle
```

Apply the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` to the edge of the shape. For example, when applied to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#drawCircle(androidx.compose.ui.geometry.Offset,kotlin.Float,androidx.compose.ui.graphics.Paint)` call, this results is a hoop of the given size being painted. The line drawn on the edge will be the width given by the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint#strokeWidth()` property.

## Public functions

### toString

Cmn

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