|
1 |
| -/// The icon to display for a window's cursor |
| 1 | +/// The icon to display for a window's cursor. |
| 2 | +/// |
| 3 | +/// Examples of all of these cursors can be found [here](https://www.w3schools.com/cssref/playit.asp?filename=playcss_cursor). |
| 4 | +/// This `enum` is simply a copy of a similar `enum` found in [`winit`](https://docs.rs/winit/latest/winit/window/enum.CursorIcon.html). |
| 5 | +/// `winit`, in turn, mostly copied cursor types avilable in the browser. |
2 | 6 | #[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
|
3 | 7 | pub enum CursorIcon {
|
| 8 | + /// The platform-dependent default cursor. |
4 | 9 | Default,
|
| 10 | + /// A simple crosshair. |
5 | 11 | Crosshair,
|
| 12 | + /// A hand (often used to indicate links in web browsers). |
6 | 13 | Hand,
|
| 14 | + /// An arrow. This is the default cursor on most systems. |
7 | 15 | Arrow,
|
| 16 | + /// Indicates something is to be moved. |
8 | 17 | Move,
|
| 18 | + /// Indicates text that may be selected or edited. |
9 | 19 | Text,
|
| 20 | + /// Program busy indicator. |
10 | 21 | Wait,
|
| 22 | + /// Help indicator (often rendered as a "?") |
11 | 23 | Help,
|
| 24 | + /// Progress indicator. Shows that processing is being done. |
| 25 | + /// |
| 26 | + /// But in contrast with "Wait" the user may still interact with the program. |
| 27 | + /// Often rendered as a spinning beach ball, or an arrow with a watch or hourglass. |
12 | 28 | Progress,
|
| 29 | + /// Cursor showing that something cannot be done. |
13 | 30 | NotAllowed,
|
| 31 | + /// Indicates that a context menu is available. |
14 | 32 | ContextMenu,
|
| 33 | + /// Indicates that a cell (or set of cells) may be selected. |
15 | 34 | Cell,
|
| 35 | + /// Indicates vertical text that may be selected or edited. |
16 | 36 | VerticalText,
|
| 37 | + /// Indicates that an alias of something is to be created. |
17 | 38 | Alias,
|
| 39 | + /// Indicates something is to be copied. |
18 | 40 | Copy,
|
| 41 | + /// Indicates that the dragged item cannot be dropped here. |
19 | 42 | NoDrop,
|
| 43 | + /// Indicates that something can be grabbed. |
20 | 44 | Grab,
|
| 45 | + /// Indicates that something is grabbed. |
21 | 46 | Grabbing,
|
| 47 | + /// Indicates that the user can scroll by dragging the mouse. |
22 | 48 | AllScroll,
|
| 49 | + /// Indicates that the user can zoom in. |
23 | 50 | ZoomIn,
|
| 51 | + /// Indicates that the user can zoom out. |
24 | 52 | ZoomOut,
|
| 53 | + /// Indicates that an edge of a box is to be moved right (east). |
25 | 54 | EResize,
|
| 55 | + /// Indicates that an edge of a box is to be moved up (north). |
26 | 56 | NResize,
|
| 57 | + /// Indicates that an edge of a box is to be moved up and right (north/east). |
27 | 58 | NeResize,
|
| 59 | + /// indicates that an edge of a box is to be moved up and left (north/west). |
28 | 60 | NwResize,
|
| 61 | + /// Indicates that an edge of a box is to be moved down (south). |
29 | 62 | SResize,
|
| 63 | + /// The cursor indicates that an edge of a box is to be moved down and right (south/east). |
30 | 64 | SeResize,
|
| 65 | + /// The cursor indicates that an edge of a box is to be moved down and left (south/west). |
31 | 66 | SwResize,
|
| 67 | + /// Indicates that an edge of a box is to be moved left (west). |
32 | 68 | WResize,
|
| 69 | + /// Indicates a bidirectional resize cursor. |
33 | 70 | EwResize,
|
| 71 | + /// Indicates a bidirectional resize cursor. |
34 | 72 | NsResize,
|
| 73 | + /// Indicates a bidirectional resize cursor. |
35 | 74 | NeswResize,
|
| 75 | + /// Indicates a bidirectional resize cursor. |
36 | 76 | NwseResize,
|
| 77 | + /// Indicates that a column can be resized horizontally. |
37 | 78 | ColResize,
|
| 79 | + /// Indicates that the row can be resized vertically. |
38 | 80 | RowResize,
|
39 | 81 | }
|
0 commit comments