# PathFillType

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

  ```
  value class PathFillType
  ```

*** ** * ** ***

Determines the winding rule that decides how the interior of a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` is calculated.

This enum is used by the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path#fillType()` property.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType#EvenOdd()` The interior is defined by an odd number of edge crossings. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType#NonZero()` The interior is defined by a non-zero sum of signed edge crossings. | 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/PathFillType#toString()()` | Cmn |

## Public companion properties

### EvenOdd

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

```
val EvenOdd: PathFillType
```

The interior is defined by an odd number of edge crossings.

For a given point, the point is considered to be on the inside of the path if a line drawn from the point to infinity crosses an odd number of lines.

See: <https://en.wikipedia.org/wiki/Even-odd_rule>

### NonZero

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

```
val NonZero: PathFillType
```

The interior is defined by a non-zero sum of signed edge crossings.

For a given point, the point is considered to be on the inside of the path if a line drawn from the point to infinity crosses lines going clockwise around the point a different number of times than it crosses lines going counter-clockwise around that point.

See: <https://en.wikipedia.org/wiki/Nonzero-rule>

## Public functions

### toString

Cmn

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