The shapes that will be used in chips. Chip will morph between these shapes depending on the state of the chip, assuming all of the shapes are CornerBasedShapes.

Summary

Public constructors

ChipShapes(shape: Shape, selectedShape: Shape, pressedShape: Shape)
Cmn

Public functions

ChipShapes
copy(shape: Shape?, selectedShape: Shape?, pressedShape: Shape?)

Returns a copy of this ChipShapes, optionally overriding some of the values.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

Shape

is the pressed shape.

Cmn
Shape

is the selected shape.

Cmn
Shape

is the active shape.

Cmn

Public constructors

ChipShapes

ChipShapes(
    shape: Shape,
    selectedShape: Shape,
    pressedShape: Shape = selectedShape
)

Public functions

copy

fun copy(
    shape: Shape? = this.shape,
    selectedShape: Shape? = this.selectedShape,
    pressedShape: Shape? = this.pressedShape
): ChipShapes

Returns a copy of this ChipShapes, optionally overriding some of the values.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

pressedShape

val pressedShapeShape

is the pressed shape.

selectedShape

val selectedShapeShape

is the selected shape.

shape

val shapeShape

is the active shape.