IconToggleButtonShapes

class IconToggleButtonShapes


Represents the shapes used for IconToggleButton in various states.

IconToggleButtonShapes offers flexibility in shape-morphing the IconToggleButton according to the checked and pressed states. See IconToggleButtonDefaults.shapes (which maintains a fixed shape for all states), IconToggleButtonDefaults.animatedShapes (which applies a shape-morph when pressed) and IconToggleButtonDefaults.variantAnimatedShapes (which applies different shapes for checked/unchecked and an additional morph to the current shape when pressed).

Summary

Public constructors

IconToggleButtonShapes(
    uncheckedShape: Shape,
    checkedShape: Shape,
    uncheckedPressedShape: Shape,
    checkedPressedShape: Shape
)

Public functions

IconToggleButtonShapes
copy(
    uncheckedShape: Shape?,
    checkedShape: Shape?,
    uncheckedPressedShape: Shape?,
    checkedPressedShape: Shape?
)
open operator Boolean
equals(other: Any?)
open Int

Public properties

Shape

the shape of the IconToggleButton when checked and pressed

Shape

the shape of the IconToggleButton when checked

Shape

the shape of the IconToggleButton when unchecked and pressed

Shape

the shape of the IconToggleButton when unchecked

Public constructors

IconToggleButtonShapes

Added in 1.0.0-alpha33
IconToggleButtonShapes(
    uncheckedShape: Shape,
    checkedShape: Shape = uncheckedShape,
    uncheckedPressedShape: Shape = uncheckedShape,
    checkedPressedShape: Shape = uncheckedPressedShape
)
Parameters
uncheckedShape: Shape

the shape of the IconToggleButton when unchecked

checkedShape: Shape = uncheckedShape

the shape of the IconToggleButton when checked

uncheckedPressedShape: Shape = uncheckedShape

the shape of the IconToggleButton when unchecked and pressed

checkedPressedShape: Shape = uncheckedPressedShape

the shape of the IconToggleButton when checked and pressed

Public functions

copy

Added in 1.0.0-alpha33
fun copy(
    uncheckedShape: Shape? = this.uncheckedShape,
    checkedShape: Shape? = this.checkedShape,
    uncheckedPressedShape: Shape? = this.uncheckedPressedShape,
    checkedPressedShape: Shape? = this.checkedPressedShape
): IconToggleButtonShapes

equals

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

hashCode

open fun hashCode(): Int

Public properties

checkedPressedShape

Added in 1.0.0-alpha33
val checkedPressedShapeShape

the shape of the IconToggleButton when checked and pressed

checkedShape

Added in 1.0.0-alpha33
val checkedShapeShape

the shape of the IconToggleButton when checked

uncheckedPressedShape

Added in 1.0.0-alpha33
val uncheckedPressedShapeShape

the shape of the IconToggleButton when unchecked and pressed

uncheckedShape

Added in 1.0.0-alpha33
val uncheckedShapeShape

the shape of the IconToggleButton when unchecked