Skip to main content

euv_core/style/paint_prop/
enum.rs

1/// Cursor icon hint unified across desktop and iPadOS pointer platforms.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
3pub enum CursorIcon {
4    /// Standard platform arrow cursor.
5    #[default]
6    Default,
7    /// Interactive hand pointer.
8    Pointer,
9    /// Text selection I-beam.
10    Text,
11    /// Crosshair precision cursor.
12    Crosshair,
13    /// Move / drag cursor.
14    Move,
15    /// Forbidden / disabled cursor.
16    NotAllowed,
17    /// Horizontal resize cursor.
18    EwResize,
19    /// Vertical resize cursor.
20    NsResize,
21    /// Grab hand cursor.
22    Grab,
23    /// Active grabbing hand cursor.
24    Grabbing,
25}
26
27/// Pointer hit-testing participation policy.
28#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
29pub enum PointerEvents {
30    /// Node receives pointer events normally.
31    #[default]
32    Auto,
33    /// Node is transparent to pointer hit-testing.
34    None,
35}