Class

IconButtonShapes

The shapes that will be used in icon buttons.

Source set: Common

Added in 1.5.0-alpha17

class IconButtonShapes(val shape: Shape, val pressedShape: Shape = shape)

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

Functions

copy

Added in 1.5.0-alpha17

fun copy(shape: Shape? = this.shape, pressedShape: Shape? = this.pressedShape) =
        IconButtonShapes(
            shape = shape.takeOrElse { this.shape },
            pressedShape = pressedShape.takeOrElse { this.pressedShape },
        )

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