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)]
8#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
9pub enum SystemMouseCursorKind {
10    None,
11    Basic,
12    Click,
13    Forbidden,
14    Wait,
15    Progress,
16    ContextMenu,
17    Help,
18    Text,
19    VerticalText,
20    Cell,
21    Precise,
22    Move,
23    Grab,
24    Grabbing,
25    NoDrop,
26    Alias,
27    Copy,
28    Disappearing,
29    AllScroll,
30    ResizeLeftRight,
31    ResizeUpDown,
32    ResizeUpLeftDownRight,
33    ResizeUpRightDownLeft,
34    ResizeUp,
35    ResizeDown,
36    ResizeLeft,
37    ResizeRight,
38    ResizeUpLeft,
39    ResizeUpRight,
40    ResizeDownLeft,
41    ResizeDownRight,
42    ResizeColumn,
43    ResizeRow,
44    ZoomIn,
45    ZoomOut,
46}