ailloli_ui_core/style/
cursor.rs

1//! Platform cursor hints selected by interactive widget regions.
2
3/// Platform cursor hint for hover regions.
4///
5/// Values cover automatic/default, text, pointer, grab/grabbing, and horizontal
6/// or vertical resize cursors.
7///
8/// # Examples
9///
10/// ```
11/// use ailloli_ui_core::style::CursorStyle;
12/// assert_eq!(CursorStyle::default(), CursorStyle::Auto);
13/// ```
14#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
15pub enum CursorStyle {
16    /// Let the host choose from context; this is the default.
17    #[default]
18    Auto,
19    /// Platform default arrow cursor.
20    Default,
21    /// Text insertion cursor.
22    Text,
23    /// Pointing-hand cursor for links and activatable regions.
24    Pointer,
25    /// Open-hand cursor for a draggable region.
26    Grab,
27    /// Closed-hand cursor while a drag is active.
28    Grabbing,
29    /// Horizontal resize cursor.
30    ResizeX,
31    /// Vertical resize cursor.
32    ResizeY,
33}