VectorPath
@Immutable class VectorPath : VectorNode
kotlin.Any | ||
↳ | androidx.compose.ui.graphics.vector.VectorNode | |
↳ | 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 ImageVector.Builder construction
Summary
Public methods | |
---|---|
Boolean | |
Int |
hashCode() |
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 |
PathFillType |
Rule to determine how the interior of the path is to be calculated |
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 |
Float |
Specifies the fraction of the path to trim from the end, in the range from 0 to 1. |
Float |
Specifies the offset of the trim region (allows showed region to include the start and end), in the range from 0 to 1. |
Float |
Specifies the fraction of the path to trim from the start, in the range from 0 to 1. |
Public methods
hashCode
fun hashCode(): Int
Properties
pathFillType
val pathFillType: PathFillType
Rule to determine how the interior of the path is to be calculated
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
trimPathEnd
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
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
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.