The shapes that will be used in toggle buttons. Toggle button will morph between these three shapes depending on the interaction of the toggle button, assuming all of the shapes are CornerBasedShapes.

Summary

Public constructors

ButtonShapes(shape: Shape, pressedShape: Shape, checkedShape: Shape)
Cmn

Public functions

ButtonShapes
copy(shape: Shape?, pressedShape: Shape?, checkedShape: Shape?)

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

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

Public properties

Shape

is the checked shape.

Cmn
Shape

is the pressed shape.

Cmn
Shape

is the unchecked shape.

Cmn

Public constructors

ButtonShapes

ButtonShapes(shape: Shape, pressedShape: Shape, checkedShape: Shape)

Public functions

copy

fun copy(
    shape: Shape? = this.shape,
    pressedShape: Shape? = this.pressedShape,
    checkedShape: Shape? = this.checkedShape
): ButtonShapes

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

equals

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

hashCode

open fun hashCode(): Int

Public properties

checkedShape

val checkedShapeShape

is the checked shape.

pressedShape

val pressedShapeShape

is the pressed shape.

shape

val shapeShape

is the unchecked shape.