iced-yoda/native/src/mouse_cursor.rs

31 lines
657 B
Rust
Raw Normal View History

2019-07-20 19:12:31 +02:00
/// The state of the mouse cursor.
2019-10-11 23:30:53 +02:00
#[derive(Debug, Eq, PartialEq, Clone, Copy, PartialOrd, Ord)]
2019-07-20 19:12:31 +02:00
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,
/// The cursor is over a text widget.
Text,
2019-07-20 19:12:31 +02:00
}
2019-12-30 19:16:46 +01:00
impl Default for MouseCursor {
fn default() -> MouseCursor {
MouseCursor::OutOfBounds
}
}