1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/// Native cursor shown while the pointer is over an element.
///
/// The variants mirror GPUI's cursor vocabulary and map directly to the corresponding
/// platform cursor. Use [`crate::Element::cursor`] for the typed API or one of its
/// Tailwind-compatible cursor helpers.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum CursorStyle {
/// The platform's default arrow cursor (`default`).
#[default]
Arrow,
/// The horizontal text-selection cursor (`text`).
IBeam,
/// A crosshair cursor (`crosshair`).
Crosshair,
/// A closed hand (`grabbing`).
ClosedHand,
/// An open hand (`grab`).
OpenHand,
/// A pointing hand (`pointer`).
PointingHand,
/// A west-edge resize cursor (`w-resize`).
ResizeLeft,
/// An east-edge resize cursor (`e-resize`).
ResizeRight,
/// A horizontal resize cursor (`ew-resize`).
ResizeLeftRight,
/// A north-edge resize cursor (`n-resize`).
ResizeUp,
/// A south-edge resize cursor (`s-resize`).
ResizeDown,
/// A vertical resize cursor (`ns-resize`).
ResizeUpDown,
/// A north-west/south-east resize cursor (`nwse-resize`).
ResizeUpLeftDownRight,
/// A north-east/south-west resize cursor (`nesw-resize`).
ResizeUpRightDownLeft,
/// A column resize cursor (`col-resize`).
ResizeColumn,
/// A row resize cursor (`row-resize`).
ResizeRow,
/// The vertical text-selection cursor (`vertical-text`).
IBeamCursorForVerticalLayout,
/// A cursor indicating that an operation is unavailable (`not-allowed`).
OperationNotAllowed,
/// A cursor indicating that a drag will create an alias (`alias`).
DragLink,
/// A cursor indicating that a drag will copy its payload (`copy`).
DragCopy,
/// A cursor indicating that a context menu is available (`context-menu`).
ContextualMenu,
}