TextToggleButtonShapes

class TextToggleButtonShapes


Represents the shapes used for TextToggleButton 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

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

Public functions

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

Public properties

Shape?

the shape of the text toggle button when checked

Shape?

the shape of the text toggle button when pressed

Shape

the shape of the text toggle button when unchecked

Public constructors

TextToggleButtonShapes

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

the shape of the text toggle button when unchecked

checked: Shape? = null

the shape of the text toggle button when checked

pressed: Shape? = null

the shape of the text toggle button when pressed

Public functions

copy

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

equals

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

hashCode

open fun hashCode(): Int

Public properties

checked

Added in 1.0.0-alpha29
val checkedShape?

the shape of the text toggle button when checked

pressed

Added in 1.0.0-alpha29
val pressedShape?

the shape of the text toggle button when pressed

unchecked

Added in 1.0.0-alpha29
val uncheckedShape

the shape of the text toggle button when unchecked