CorneredShape

open class CorneredShape(val topLeft: CorneredShape.Corner = Corner.Sharp, val topRight: CorneredShape.Corner = Corner.Sharp, val bottomRight: CorneredShape.Corner = Corner.Sharp, val bottomLeft: CorneredShape.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: CorneredShape.Corner = Corner.Sharp, topRight: CorneredShape.Corner = Corner.Sharp, bottomRight: CorneredShape.Corner = Corner.Sharp, bottomLeft: CorneredShape.Corner = Corner.Sharp)

Types

Link copied to clipboard
object Companion

Houses CorneredShape singletons and factory functions.

Link copied to clipboard
sealed class Corner

Defines a corner style.

Link copied to clipboard

Denotes a corner position.

Link copied to clipboard
fun interface CornerTreatment

Defines a corner shape.

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)