Skip to content

TextureStates

object TextureStates

Constant keys used to look up ThemeState entries within a ComposableTheme's state map.

Composables use these keys to select the correct texture variant based on their current interactive state (e.g. hovered, pressed, disabled).

Properties

CLICKED

const val CLICKED: String

Used when the composable has been activated/checked/clicked (toggle state).

CLICKED_AND_HOVERED

Used when the composable is both activated and hovered simultaneously.

DEFAULT

const val DEFAULT: String

The default idle state used when no other state applies.

DISABLED

const val DISABLED: String

Used when the composable is disabled and cannot be interacted with.

HOVERED

const val HOVERED: String

Used when the mouse cursor is hovering over the composable.