Files
rio/rio/cursor_style.py
T
2024-09-04 18:24:33 +02:00

35 lines
820 B
Python

import enum
__all__ = ["CursorStyle"]
class CursorStyle(enum.Enum):
"""
Enumeration of all available cursor styles. Use these to indicate which
kinds of action a user can perform while hovering over a component.
## Example
```python
rio.Rectangle(
fill=rio.Color.WHITE,
cursor=rio.CursorStyle.POINTER,
)
```
"""
DEFAULT = enum.auto()
NONE = enum.auto()
HELP = enum.auto()
POINTER = enum.auto()
LOADING = enum.auto() # "wait" in CSS
BACKGROUND_LOADING = enum.auto() # "progress" in CSS
CROSSHAIR = enum.auto()
TEXT = enum.auto()
MOVE = enum.auto()
NOT_ALLOWED = enum.auto()
CAN_GRAB = enum.auto() # "grab" in CSS
IS_GRABBED = enum.auto() # "grabbing" in CSS
ZOOM_IN = enum.auto()
ZOOM_OUT = enum.auto()