summaryrefslogtreecommitdiffstats
path: root/native/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-30 19:16:46 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-30 19:16:46 +0100
commitbf74e6e7d47a012a9c592a9da044f8d3bf9efbce (patch)
tree553b2465c3ccc2a5fa2db8ff243e4f4729e10ab1 /native/src
parent4b86c2ff987e334c3454540828c6f8d16d27c670 (diff)
downloadiced-bf74e6e7d47a012a9c592a9da044f8d3bf9efbce.tar.gz
iced-bf74e6e7d47a012a9c592a9da044f8d3bf9efbce.tar.bz2
iced-bf74e6e7d47a012a9c592a9da044f8d3bf9efbce.zip
Implement `Default` for `MouseCursor`
Diffstat (limited to 'native/src')
-rw-r--r--native/src/mouse_cursor.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/native/src/mouse_cursor.rs b/native/src/mouse_cursor.rs
index a4740a27..c7297e0e 100644
--- a/native/src/mouse_cursor.rs
+++ b/native/src/mouse_cursor.rs
@@ -22,3 +22,9 @@ pub enum MouseCursor {
/// The cursor is over a text widget.
Text,
}
+
+impl Default for MouseCursor {
+ fn default() -> MouseCursor {
+ MouseCursor::OutOfBounds
+ }
+}