diff options
author | 2024-04-25 06:05:00 +0200 | |
---|---|---|
committer | 2024-04-25 06:05:37 +0200 | |
commit | 4cd45643d7d2aa83212162f17a9b28ddae4a9340 (patch) | |
tree | fbddb2c21c41a4d76c10ee0695dd5e1fd9669f14 /core/src | |
parent | 9492da11d90893b396e8dfdae47cc54c6ab42411 (diff) | |
download | iced-4cd45643d7d2aa83212162f17a9b28ddae4a9340.tar.gz iced-4cd45643d7d2aa83212162f17a9b28ddae4a9340.tar.bz2 iced-4cd45643d7d2aa83212162f17a9b28ddae4a9340.zip |
Introduce `opaque` widget helper
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/mouse/interaction.rs | 1 | ||||
-rw-r--r-- | core/src/overlay.rs | 2 | ||||
-rw-r--r-- | core/src/widget.rs | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/core/src/mouse/interaction.rs b/core/src/mouse/interaction.rs index 6ad66229..065eb8e7 100644 --- a/core/src/mouse/interaction.rs +++ b/core/src/mouse/interaction.rs @@ -3,6 +3,7 @@ #[allow(missing_docs)] pub enum Interaction { #[default] + None, Idle, Pointer, Grab, diff --git a/core/src/overlay.rs b/core/src/overlay.rs index 03076a30..3a57fe16 100644 --- a/core/src/overlay.rs +++ b/core/src/overlay.rs @@ -79,7 +79,7 @@ where _viewport: &Rectangle, _renderer: &Renderer, ) -> mouse::Interaction { - mouse::Interaction::Idle + mouse::Interaction::None } /// Returns true if the cursor is over the [`Overlay`]. diff --git a/core/src/widget.rs b/core/src/widget.rs index 58a9f19b..b02e3a4f 100644 --- a/core/src/widget.rs +++ b/core/src/widget.rs @@ -137,7 +137,7 @@ where _viewport: &Rectangle, _renderer: &Renderer, ) -> mouse::Interaction { - mouse::Interaction::Idle + mouse::Interaction::None } /// Returns the overlay of the [`Widget`], if there is any. |