IconToggleButtonShapes

class IconToggleButtonShapes


Represents the shapes used for IconToggleButton in various states.

If checked and pressed are non null then it will be animated between three states, assuming CornerBasedShape. If checked is null will be animated on press only.

Summary

Public constructors

IconToggleButtonShapes(unchecked: Shape, checked: Shape?, pressed: Shape?)

Public functions

IconToggleButtonShapes
copy(unchecked: Shape, checked: Shape?, pressed: Shape?)
open operator Boolean
equals(other: Any?)
open Int

Public properties

Shape?

the shape of the IconToggleButton when checked

Shape?

the shape of the IconToggleButton when pressed

Shape

the shape of the IconToggleButton when unchecked

Public constructors

IconToggleButtonShapes

Added in 1.0.0-alpha27
IconToggleButtonShapes(
    unchecked: Shape,
    checked: Shape? = null,
    pressed: Shape? = null
)
Parameters
unchecked: Shape

the shape of the IconToggleButton when unchecked

checked: Shape? = null

the shape of the IconToggleButton when checked

pressed: Shape? = null

the shape of the IconToggleButton when pressed

Public functions

copy

Added in 1.0.0-alpha27
fun copy(
    unchecked: Shape = this.unchecked,
    checked: Shape? = this.checked,
    pressed: Shape? = this.pressed
): IconToggleButtonShapes

equals

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

hashCode

open fun hashCode(): Int

Public properties

checked

Added in 1.0.0-alpha27
val checkedShape?

the shape of the IconToggleButton when checked

pressed

Added in 1.0.0-alpha27
val pressedShape?

the shape of the IconToggleButton when pressed

unchecked

Added in 1.0.0-alpha27
val uncheckedShape

the shape of the IconToggleButton when unchecked