# VectorPath

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

  ```
  class VectorPath : VectorNode
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.compose.ui.graphics.vector.VectorNode](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorNode) ||
|   | ↳ | [androidx.compose.ui.graphics.vector.VectorPath](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath) |

*** ** * ** ***

Leaf node of a Vector graphics tree. This specifies a path shape and parameters to color and style the shape itself

This is constructed as part of the result of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder` construction

## Summary

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#hashCode()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush?` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#fill()` Specifies the color or gradient used to fill the path | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#fillAlpha()` Opacity to fill the path | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#name()` Name of the corresponding path | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#pathData()` Path information to render the shape of the path | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#pathFillType()` Rule to determine how the interior of the path is to be calculated | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush?` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#stroke()` Specifies the color or gradient used to fill the stroke | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#strokeAlpha()` Opacity to stroke the path | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#strokeLineCap()` Specifies the linecap for a stroked path, either butt, round, or square. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeJoin` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#strokeLineJoin()` Specifies the linejoin for a stroked path, either miter, round or bevel. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#strokeLineMiter()` Specifies the miter limit for a stroked path, the default is 4 | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#strokeLineWidth()` Width of the line to stroke the path | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#trimPathEnd()` Specifies the fraction of the path to trim from the end, in the range from 0 to 1. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#trimPathOffset()` Specifies the offset of the trim region (allows showed region to include the start and end), in the range from 0 to 1. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath#trimPathStart()` Specifies the fraction of the path to trim from the start, in the range from 0 to 1. | Cmn |

## Public functions

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

## Public properties

### fill

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

```
val fill: Brush?
```

Specifies the color or gradient used to fill the path

### fillAlpha

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

```
val fillAlpha: Float
```

Opacity to fill the path

### name

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

```
val name: String
```

Name of the corresponding path

### pathData

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

```
val pathData: List<PathNode>
```

Path information to render the shape of the path

### pathFillType

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

```
val pathFillType: PathFillType
```

Rule to determine how the interior of the path is to be calculated

### stroke

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

```
val stroke: Brush?
```

Specifies the color or gradient used to fill the stroke

### strokeAlpha

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

```
val strokeAlpha: Float
```

Opacity to stroke the path

### strokeLineCap

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

```
val strokeLineCap: StrokeCap
```

Specifies the linecap for a stroked path, either butt, round, or square. The default is butt.

### strokeLineJoin

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

```
val strokeLineJoin: StrokeJoin
```

Specifies the linejoin for a stroked path, either miter, round or bevel. The default is miter

### strokeLineMiter

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

```
val strokeLineMiter: Float
```

Specifies the miter limit for a stroked path, the default is 4

### strokeLineWidth

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

```
val strokeLineWidth: Float
```

Width of the line to stroke the path

### trimPathEnd

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

```
val trimPathEnd: Float
```

Specifies the fraction of the path to trim from the end, in the range from 0 to 1. The default is 1.

### trimPathOffset

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

```
val trimPathOffset: Float
```

Specifies the offset of the trim region (allows showed region to include the start and end), in the range from 0 to 1. The default is 0.

### trimPathStart

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

```
val trimPathStart: Float
```

Specifies the fraction of the path to trim from the start, in the range from 0 to 1. The default is 0.