CorneredShape

open class CorneredShape(val topLeft: Corner = Corner.Sharp, val topRight: Corner = Corner.Sharp, val bottomRight: Corner = Corner.Sharp, val bottomLeft: Corner = Corner.Sharp) : Shape

A Shape implementation with customizable corners.

Parameters

topLeft

specifies a Corner for the top left of the Shape.

topRight

specifies a Corner for the top right of the Shape.

bottomLeft

specifies a Corner for the bottom left of the Shape.

bottomRight

specifies a Corner for the bottom right of the Shape.

Inheritors

Constructors

Link copied to clipboard
constructor(topLeft: Corner = Corner.Sharp, topRight: Corner = Corner.Sharp, bottomRight: Corner = Corner.Sharp, bottomLeft: Corner = Corner.Sharp)

Types

Link copied to clipboard
object Companion

Houses CorneredShape singletons and factory functions.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override 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.

fun outline(density: Float, path: Path, left: Float, top: Float, right: Float, bottom: Float)