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. focused, pressed, disabled).

Properties

CLICKED

const val CLICKED: String

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

CLICKED_AND_FOCUSED

Used when the composable is both activated and focused 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.

FOCUSED

const val FOCUSED: String

Used when the composable is highlighted - the mouse cursor is hovering over it, or (see WidgetState.focused) it holds vanilla keyboard/controller focus. Both count as the same texture state: there's one "this is the thing about to be interacted with" visual, regardless of which input method put it there.

OBTAINED

const val OBTAINED: String

Used when the composable represents progress that's been completed.

UNOBTAINED

const val UNOBTAINED: String

Used when the composable represents progress not yet completed (e.g. net.kernelpanicsoft.archie.gui.composables.containers.NodeFrame's own idle state).