class PathOverview
This is the Kotlin form of SwiftUI Path: SwiftUI documentation. In Swift it reads:
@frozen struct PathTopics
Creating a Path
fun PathView(path: Path, modifier: Modifier = Modifier)
Initializers
constructor(roundedRect: CGRect, cornerSize: CGSize, style: RoundedCornerStyle = RoundedCornerStyle.continuous)
constructor(roundedRect: CGRect, cornerRadii: RectangleCornerRadii, style: RoundedCornerStyle = RoundedCornerStyle.continuous)
constructor(roundedRect: CGRect, cornerRadius: Double, style: RoundedCornerStyle = RoundedCornerStyle.continuous)
constructor(ellipseIn: CGRect)
constructor()
Type properties
val closeSubpath: Path.Element
Methods
fun strokedPath(style: StrokeStyle): Path
fun trimmedPath(from: Double, to: Double): Path
fun normalized(eoFill: Boolean = true): Path
fun subtracting(other: Path, eoFill: Boolean = false): Path
fun intersection(other: Path, eoFill: Boolean = false): Path
fun lineSubtraction(other: Path, eoFill: Boolean = false): Path
fun lineIntersection(other: Path, eoFill: Boolean = false): Path
fun symmetricDifference(other: Path, eoFill: Boolean = false): Path
fun union(other: Path, eoFill: Boolean = false): Path
fun offsetBy(dx: Double, dy: Double): Path
fun line(to: CGPoint): Path.Element
fun move(to: CGPoint): Path.Element
fun curve(to: CGPoint, control1: CGPoint, control2: CGPoint): Path.Element
fun quadCurve(to: CGPoint, control: CGPoint): Path.Element
Types
class Path
class Element