diff options
author | 2023-03-17 20:17:23 +0100 | |
---|---|---|
committer | 2023-03-17 20:17:23 +0100 | |
commit | d1dc62ebcdab6ec57605d276a02d6dae1e97c30d (patch) | |
tree | 66ab2733d426b887731ba32b32c03a0f1ba43451 /core/src/mouse | |
parent | ea50ec8df1431c9c6aa8077cd1578c4698dc0314 (diff) | |
parent | d7fffaa801423ae989fa7693f5b1cb424194e1ff (diff) | |
download | iced-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.rs | 9 |
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 - } -} |