Skip to main content

inset_embedder/
mouse_cursor.rs

1//! The system cursors a host can show. Flutter's engine receives these as `kind` strings on
2//! `SystemChannels.mouseCursor` (`services/mouse_cursor.dart`); there is no channel here, so
3//! the kind is an enum.
4
5/// A system cursor kind (`SystemMouseCursor.kind`). The host maps each to its native cursor and
6/// shows the basic arrow for one it lacks; [`None`](Self::None) hides the cursor.
7#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
8pub enum SystemMouseCursorKind {
9    None,
10    Basic,
11    Click,
12    Forbidden,
13    Wait,
14    Progress,
15    ContextMenu,
16    Help,
17    Text,
18    VerticalText,
19    Cell,
20    Precise,
21    Move,
22    Grab,
23    Grabbing,
24    NoDrop,
25    Alias,
26    Copy,
27    Disappearing,
28    AllScroll,
29    ResizeLeftRight,
30    ResizeUpDown,
31    ResizeUpLeftDownRight,
32    ResizeUpRightDownLeft,
33    ResizeUp,
34    ResizeDown,
35    ResizeLeft,
36    ResizeRight,
37    ResizeUpLeft,
38    ResizeUpRight,
39    ResizeDownLeft,
40    ResizeDownRight,
41    ResizeColumn,
42    ResizeRow,
43    ZoomIn,
44    ZoomOut,
45}