ComponentState

enum ComponentState : Enum<ComponentState>

Represents the states a Component can be in.

Entries

DEFAULT
Link copied to clipboard
common
Used when the component doesn't have focus and it is not being interacted.
HIGHLIGHTED
Link copied to clipboard
common
The component is highlighted (the mouse is over it for example).
FOCUSED
Link copied to clipboard
common
This component has focus.
DISABLED
Link copied to clipboard
common
This component is inactive, its features are disabled.
ACTIVE
Link copied to clipboard
common
The component is active (for example if a Button is being pressed).

Functions

compareTo
Link copied to clipboard
common
operator override fun compareTo(other: ComponentState): Int
equals
Link copied to clipboard
common
operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

name
Link copied to clipboard
common
val name: String
ordinal
Link copied to clipboard
common
val ordinal: Int

Sources

(source)
Link copied to clipboard