ToggleButtonColors

class ToggleButtonColors


Represents the colors used by a ToggleButton in different states.

Summary

Public constructors

ToggleButtonColors(
    backgroundColor: Color,
    checkedBackgroundColor: Color,
    contentColor: Color,
    checkedContentColor: Color
)

Public functions

ToggleButtonColors
copy(
    backgroundColor: Color,
    checkedBackgroundColor: Color,
    contentColor: Color,
    checkedContentColor: Color
)

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

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

Public properties

Color

the background color when the button is unchecked

Color

the background color when the button is checked

Color

the content color when the button is checked

Color

the content color when the button is unchecked

Public constructors

ToggleButtonColors

Added in 1.0.0-alpha12
ToggleButtonColors(
    backgroundColor: Color,
    checkedBackgroundColor: Color,
    contentColor: Color,
    checkedContentColor: Color
)

Public functions

copy

Added in 1.0.0-alpha12
fun copy(
    backgroundColor: Color = this.backgroundColor,
    checkedBackgroundColor: Color = this.checkedBackgroundColor,
    contentColor: Color = this.contentColor,
    checkedContentColor: Color = this.checkedContentColor
): ToggleButtonColors

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

equals

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

hashCode

open fun hashCode(): Int

Public properties

backgroundColor

val backgroundColorColor

the background color when the button is unchecked

checkedBackgroundColor

val checkedBackgroundColorColor

the background color when the button is checked

checkedContentColor

val checkedContentColorColor

the content color when the button is checked

contentColor

val contentColorColor

the content color when the button is unchecked