🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

ToggleButtonShapes

The shapes that will be used in toggle buttons.

Source set: Common
public class ToggleButtonShapes(
    public val shape: Shape,
    public val pressedShape: Shape,
    public val checkedShape: Shape,
)

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.

Functions

copy

Source set: Common
public fun copy(
        shape: Shape? = this.shape,
        pressedShape: Shape? = this.pressedShape,
        checkedShape: Shape? = this.checkedShape,
    ): ToggleButtonShapes

Returns a copy of this ToggleButtonShapes with optionally overridden shapes.

Passing null for any shape parameter retains the current value from this instance.

Parameters

shape unchecked shape, or null to keep the current unchecked shape
pressedShape pressed shape, or null to keep the current pressed shape
checkedShape checked shape, or null to keep the current checked shape

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

Content updated: