API reference
API reference
Select your platform
No SDKs available
No versions available

CheckboxColors Class

Modifiers: final
Represents the colors used by the three different sections (checkmark, box, and border) of a null.SpatialCheckbox in different states.

Constructors

CheckboxColors ( checkedCheckmarkColor , uncheckedCheckmarkColor , checkedBoxColor , uncheckedBoxColor , disabledCheckedBoxColor , disabledUncheckedBoxColor , disabledIndeterminateBoxColor , checkedBorderColor , uncheckedBorderColor , disabledBorderColor , disabledUncheckedBorderColor , disabledIndeterminateBorderColor )
create an instance with arbitrary colors, see CheckboxDefaults.colors for the default implementation.
Signature
constructor(checkedCheckmarkColor: Color, uncheckedCheckmarkColor: Color, checkedBoxColor: Color, uncheckedBoxColor: Color, disabledCheckedBoxColor: Color, disabledUncheckedBoxColor: Color, disabledIndeterminateBoxColor: Color, checkedBorderColor: Color, uncheckedBorderColor: Color, disabledBorderColor: Color, disabledUncheckedBorderColor: Color, disabledIndeterminateBorderColor: Color)
Parameters
checkedCheckmarkColor: Color
  color that will be used for the checkmark when checked
uncheckedCheckmarkColor: Color
  color that will be used for the checkmark when unchecked
checkedBoxColor: Color
  the color that will be used for the box when checked
uncheckedBoxColor: Color
  color that will be used for the box when unchecked
disabledCheckedBoxColor: Color
  color that will be used for the box when disabled and checked
disabledUncheckedBoxColor: Color
  color that will be used for the box when disabled and unchecked
disabledIndeterminateBoxColor: Color
  color that will be used for the box and border in a null.SpatialCheckbox when disabled AND in an ToggleableState.Indeterminate state.
checkedBorderColor: Color
  color that will be used for the border when checked
uncheckedBorderColor: Color
  color that will be used for the border when unchecked
disabledBorderColor: Color
  color that will be used for the border when disabled and checked
disabledUncheckedBorderColor: Color
  color that will be used for the border when disabled and unchecked
disabledIndeterminateBorderColor: Color
  color that will be used for the border when disabled and in an ToggleableState.Indeterminate state.

Properties

checkedBorderColor : Color
[Get]
Signature
val checkedBorderColor: Color
checkedBoxColor : Color
[Get]
Signature
val checkedBoxColor: Color
checkedCheckmarkColor : Color
[Get]
Signature
val checkedCheckmarkColor: Color
disabledBorderColor : Color
[Get]
Signature
val disabledBorderColor: Color
disabledCheckedBoxColor : Color
[Get]
Signature
val disabledCheckedBoxColor: Color
disabledIndeterminateBorderColor : Color
[Get]
Signature
val disabledIndeterminateBorderColor: Color
disabledIndeterminateBoxColor : Color
[Get]
Signature
val disabledIndeterminateBoxColor: Color
disabledUncheckedBorderColor : Color
[Get]
Signature
val disabledUncheckedBorderColor: Color
disabledUncheckedBoxColor : Color
[Get]
Signature
val disabledUncheckedBoxColor: Color
uncheckedBorderColor : Color
[Get]
Signature
val uncheckedBorderColor: Color
uncheckedBoxColor : Color
[Get]
Signature
val uncheckedBoxColor: Color
uncheckedCheckmarkColor : Color
[Get]
Signature
val uncheckedCheckmarkColor: Color

Functions

copy ( checkedCheckmarkColor , uncheckedCheckmarkColor , checkedBoxColor , uncheckedBoxColor , disabledCheckedBoxColor , disabledUncheckedBoxColor , disabledIndeterminateBoxColor , checkedBorderColor , uncheckedBorderColor , disabledBorderColor , disabledUncheckedBorderColor , disabledIndeterminateBorderColor )
Returns a copy of this CheckboxColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”
Signature
fun copy(checkedCheckmarkColor: Color, uncheckedCheckmarkColor: Color, checkedBoxColor: Color, uncheckedBoxColor: Color, disabledCheckedBoxColor: Color, disabledUncheckedBoxColor: Color, disabledIndeterminateBoxColor: Color, checkedBorderColor: Color, uncheckedBorderColor: Color, disabledBorderColor: Color, disabledUncheckedBorderColor: Color, disabledIndeterminateBorderColor: Color): CheckboxColors
Parameters
checkedCheckmarkColor: Color
uncheckedCheckmarkColor: Color
checkedBoxColor: Color
uncheckedBoxColor: Color
disabledCheckedBoxColor: Color
disabledUncheckedBoxColor: Color
disabledIndeterminateBoxColor: Color
checkedBorderColor: Color
uncheckedBorderColor: Color
disabledBorderColor: Color
disabledUncheckedBorderColor: Color
disabledIndeterminateBorderColor: Color
equals ( other )
Signature
open operator override fun equals(other: Any?): Boolean
Parameters
other: Any?
Returns
Boolean
hashCode ()
Signature
open override fun hashCode(): Int
Returns
Int