Companion
object Companion
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Tests if line between Point pair is degenerate.
Link copied to clipboard
Link copied to clipboard
Returns Path that is the result of applying the Op to the first path and the second path.
Link copied to clipboard
Initializes Path from byte buffer. Throws exception if the buffer data is inconsistent, or the length is too small.
Link copied to clipboard
Link copied to clipboard
fun Raw(pts: Array<Point>, verbs: Array<PathVerb>, conicWeights: FloatArray = FloatArray(0), fillType: PathFillMode = PathFillMode.WINDING, isVolatile: Boolean = false): Path
Creates a new path with the specified spans.
Link copied to clipboard
fun Rect(rect: Rect, fillType: PathFillMode = PathFillMode.WINDING, direction: PathDirection = PathDirection.CLOCKWISE, startIndex: Int = 0): Path
Creates a rectangular path.
Link copied to clipboard
fun RRect(rrect: RRect, direction: PathDirection = PathDirection.CLOCKWISE, startIndex: Int = if (direction == PathDirection.CLOCKWISE) 6 else 7): Path
Creates a rounded rectangle path.
fun RRect(bounds: Rect, rx: Float, ry: Float, direction: PathDirection = PathDirection.CLOCKWISE): Path
Creates a rounded rectangle path from bounds and corner radii.