Scripting API
Scripting API
UiStates
Enum in Abyss.Core, from Abyss.Core.
The states an element of a UI document can be held in on its canvas, as a browser's tools hold one, so what its sheets say for each is seen: a bit each, as the engine numbers them.
public enum UiStates : uintValues
| Name | Value | Description |
|---|---|---|
None | 0 | None: as it is. |
Hover | 1 | :hover, as the pointer is over it. |
Focus | 2 | :focus and :focus-visible, as the keyboard or a gamepad has it. |
Active | 4 | :active, as it is pressed. |
Checked | 8 | :checked, as a toggle that is on. |
Open | 16 | A dropdown open: its list shown where it opens, with its classes, to be styled. |
Phone | 32 | On the document's top: as on a phone, the top given the class touch, and a dropdown that opens as the screen suits opening in the middle of it. |
