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¶
Used when the composable has been activated/checked/clicked (toggle state).
CLICKED_AND_FOCUSED¶
const val CLICKED_AND_FOCUSED: String
Used when the composable is both activated and focused simultaneously.
DEFAULT¶
The default idle state used when no other state applies.
DISABLED¶
Used when the composable is disabled and cannot be interacted with.
FOCUSED¶
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¶
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).