Shape

fun interface Shape

Defines a shape.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun outline(context: MeasuringContext, path: Path, left: Float, top: Float, right: Float, bottom: Float)

Adds an outline of the Shape to path. left, top, right, and bottom define the outline bounds.

Link copied to clipboard
fun Shape.toDrawable(context: Context, intrinsicWidth: Int = -1, intrinsicHeight: Int = -1): Drawable

Converts this Shape to a Drawable.