VectorPath

class VectorPath : VectorNode
kotlin.Any
   ↳ androidx.ui.graphics.vector.VectorNode
   ↳ androidx.ui.graphics.vector.VectorPath

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

Summary

Public constructors

<init>(name: String = DefaultPathName, pathData: List<PathNode>, fill: Brush? = null, fillAlpha: Float = DefaultAlpha, stroke: Brush? = null, strokeAlpha: Float = DefaultAlpha, strokeLineWidth: Float = DefaultStrokeLineWidth, strokeLineCap: StrokeCap = DefaultStrokeLineCap, strokeLineJoin: StrokeJoin = DefaultStrokeLineJoin, strokeLineMiter: Float = DefaultStrokeLineMiter)

Leaf node of a Vector graphics tree.

Properties

Brush?

Specifies the color or gradient used to fill the path

Float

Opacity to fill the path

String

Name of the corresponding path

List<PathNode>

Path information to render the shape of the path

Brush?

Specifies the color or gradient used to fill the stroke

Float

Opacity to stroke the path

StrokeCap

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

StrokeJoin

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

Float

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

Float

Width of the line to stroke the path

Public constructors

<init>

VectorPath(
    name: String = DefaultPathName,
    pathData: List<PathNode>,
    fill: Brush? = null,
    fillAlpha: Float = DefaultAlpha,
    stroke: Brush? = null,
    strokeAlpha: Float = DefaultAlpha,
    strokeLineWidth: Float = DefaultStrokeLineWidth,
    strokeLineCap: StrokeCap = DefaultStrokeLineCap,
    strokeLineJoin: StrokeJoin = DefaultStrokeLineJoin,
    strokeLineMiter: Float = DefaultStrokeLineMiter)

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

Properties

fill

val fill: Brush?

Specifies the color or gradient used to fill the path

fillAlpha

val fillAlpha: Float

Opacity to fill the path

name

val name: String

Name of the corresponding path

pathData

val pathData: List<PathNode>

Path information to render the shape of the path

stroke

val stroke: Brush?

Specifies the color or gradient used to fill the stroke

strokeAlpha

val strokeAlpha: Float

Opacity to stroke the path

strokeLineCap

val strokeLineCap: StrokeCap

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

strokeLineJoin

val strokeLineJoin: StrokeJoin

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

strokeLineMiter

val strokeLineMiter: Float

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

strokeLineWidth

val strokeLineWidth: Float

Width of the line to stroke the path