# BrushPaint.TextureLayer.SizeUnit

Artifact: [androidx.ink:ink-brush](https://developer.android.com/jetpack/androidx/releases/ink) [View Source](https://cs.android.com/search?q=file:androidx/ink/brush/BrushPaint.kt+class:androidx.ink.brush.BrushPaint.TextureLayer.SizeUnit) Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

*** ** * ** ***

Common/AllAndroid/JVMNative/C/iOS
- Cmn

  ```
  class BrushPaint.TextureLayer.SizeUnit
  ```

*** ** * ** ***

Units for specifying `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushPaint.TextureLayer` dimensions.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushPaint.TextureLayer.SizeUnit` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushPaint.TextureLayer.SizeUnit#BRUSH_SIZE()` As multiples of brush size. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushPaint.TextureLayer.SizeUnit` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushPaint.TextureLayer.SizeUnit#STROKE_COORDINATES()` In the same units as the stroke's input positions and stored geometry. | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushPaint.TextureLayer.SizeUnit#calculateMinimumRequiredVersion()()` Returns the minimum required `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` for this `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushPaint.TextureLayer.SizeUnit`. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushPaint.TextureLayer.SizeUnit#toString()()` | Cmn |

## Public companion properties

### BRUSH_SIZE

Cmn

```
val BRUSH_SIZE: BrushPaint.TextureLayer.SizeUnit
```

As multiples of brush size.

### STROKE_COORDINATES

Cmn

```
val STROKE_COORDINATES: BrushPaint.TextureLayer.SizeUnit
```

In the same units as the stroke's input positions and stored geometry.

## Public functions

### calculateMinimumRequiredVersion

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
fun calculateMinimumRequiredVersion(): Version
```

Returns the minimum required `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` for this `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushPaint.TextureLayer.SizeUnit`.

By default, decoding a `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushFamily` containing a `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushPaint.TextureLayer.SizeUnit` with a minimum required version higher than `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version#MAX_SUPPORTED()` will fail.

### toString

Cmn

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