summaryrefslogtreecommitdiffstats
path: root/core/src/mouse
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-03-17 20:17:23 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-03-17 20:17:23 +0100
commitd1dc62ebcdab6ec57605d276a02d6dae1e97c30d (patch)
tree66ab2733d426b887731ba32b32c03a0f1ba43451 /core/src/mouse
parentea50ec8df1431c9c6aa8077cd1578c4698dc0314 (diff)
parentd7fffaa801423ae989fa7693f5b1cb424194e1ff (diff)
downloadiced-d1dc62ebcdab6ec57605d276a02d6dae1e97c30d.tar.gz
iced-d1dc62ebcdab6ec57605d276a02d6dae1e97c30d.tar.bz2
iced-d1dc62ebcdab6ec57605d276a02d6dae1e97c30d.zip
Merge branch 'master' into advanced-text
Diffstat (limited to 'core/src/mouse')
-rw-r--r--core/src/mouse/interaction.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/core/src/mouse/interaction.rs b/core/src/mouse/interaction.rs
index 664147a7..57da93fe 100644
--- a/core/src/mouse/interaction.rs
+++ b/core/src/mouse/interaction.rs
@@ -1,7 +1,8 @@
/// The interaction of a mouse cursor.
-#[derive(Debug, Eq, PartialEq, Clone, Copy, PartialOrd, Ord)]
+#[derive(Debug, Eq, PartialEq, Clone, Copy, PartialOrd, Ord, Default)]
#[allow(missing_docs)]
pub enum Interaction {
+ #[default]
Idle,
Pointer,
Grab,
@@ -12,9 +13,3 @@ pub enum Interaction {
ResizingHorizontally,
ResizingVertically,
}
-
-impl Default for Interaction {
- fn default() -> Interaction {
- Interaction::Idle
- }
-}