Path
Functions summary
Unit |
@ComposableDefines a path inside a |
Cmn
|
Functions
Path
@Composable
@VectorComposable
fun Path(
pathData: List<PathNode>,
pathFillType: PathFillType = DefaultFillType,
name: String = DefaultPathName,
fill: Brush? = null,
fillAlpha: Float = 1.0f,
stroke: Brush? = null,
strokeAlpha: Float = 1.0f,
strokeLineWidth: Float = DefaultStrokeLineWidth,
strokeLineCap: StrokeCap = DefaultStrokeLineCap,
strokeLineJoin: StrokeJoin = DefaultStrokeLineJoin,
strokeLineMiter: Float = DefaultStrokeLineMiter,
trimPathStart: Float = DefaultTrimPathStart,
trimPathEnd: Float = DefaultTrimPathEnd,
trimPathOffset: Float = DefaultTrimPathOffset
): Unit
Defines a path inside a VectorPainter. This is not a regular UI composable, it can only be called inside composables called from the content parameter to rememberVectorPainter.
| Parameters | |
|---|---|
pathData: List<PathNode> |
List of |
pathFillType: PathFillType = DefaultFillType |
The |
name: String = DefaultPathName |
Optional name of the path used when describing the vector as a string. |
fill: Brush? = null |
The |
fillAlpha: Float = 1.0f |
The alpha value to use for |
stroke: Brush? = null |
The |
strokeAlpha: Float = 1.0f |
The alpha value to use for |
strokeLineWidth: Float = DefaultStrokeLineWidth |
The width of the |
strokeLineCap: StrokeCap = DefaultStrokeLineCap |
The |
strokeLineJoin: StrokeJoin = DefaultStrokeLineJoin |
The |
strokeLineMiter: Float = DefaultStrokeLineMiter |
The stroke miter value. See |
trimPathStart: Float = DefaultTrimPathStart |
The fraction of the path that specifies the start of the clipped region of the path. See |
trimPathEnd: Float = DefaultTrimPathEnd |
The fraction of the path that specifies the end of the clipped region of the path. See |
trimPathOffset: Float = DefaultTrimPathOffset |
The amount to offset both |