From 2b7ad3d50eae48b1963aa8e866e184c41133ca3d Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 20 Jul 2019 19:12:31 +0200 Subject: Decouple `iced` from `coffee` --- src/mouse_cursor.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/mouse_cursor.rs (limited to 'src/mouse_cursor.rs') diff --git a/src/mouse_cursor.rs b/src/mouse_cursor.rs new file mode 100644 index 00000000..f6a68c54 --- /dev/null +++ b/src/mouse_cursor.rs @@ -0,0 +1,21 @@ +/// The state of the mouse cursor. +#[derive(Debug, Eq, PartialEq, Clone, Copy)] +pub enum MouseCursor { + /// The cursor is out of the bounds of the user interface. + OutOfBounds, + + /// The cursor is over a non-interactive widget. + Idle, + + /// The cursor is over a clickable widget. + Pointer, + + /// The cursor is over a busy widget. + Working, + + /// The cursor is over a grabbable widget. + Grab, + + /// The cursor is grabbing a widget. + Grabbing, +} -- cgit