diff options
author | 2019-09-05 09:59:38 +0200 | |
---|---|---|
committer | 2019-09-05 09:59:38 +0200 | |
commit | c48739029b36e4380409cdb15594e415afce6371 (patch) | |
tree | 129d2834819570a75db5f970daa6e1ee5c1587e4 /src/input/mouse | |
parent | 3fb06f66661b5f4f0a76553164597f7ce0cbd79c (diff) | |
download | iced-c48739029b36e4380409cdb15594e415afce6371.tar.gz iced-c48739029b36e4380409cdb15594e415afce6371.tar.bz2 iced-c48739029b36e4380409cdb15594e415afce6371.zip |
Ask users to share use cases
Diffstat (limited to '')
-rw-r--r-- | src/input/mouse/button.rs | 5 | ||||
-rw-r--r-- | src/input/mouse/event.rs | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/input/mouse/button.rs b/src/input/mouse/button.rs index e552af5a..6320d701 100644 --- a/src/input/mouse/button.rs +++ b/src/input/mouse/button.rs @@ -1,4 +1,9 @@ /// The button of a mouse. +/// +/// If you are using [`winit`], consider enabling the `winit` feature to get +/// conversion implementations for free! +/// +/// [`winit`]: https://docs.rs/winit/0.20.0-alpha3/winit/ #[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)] pub enum Button { /// The left mouse button. diff --git a/src/input/mouse/event.rs b/src/input/mouse/event.rs index 1f7a1547..7b68208f 100644 --- a/src/input/mouse/event.rs +++ b/src/input/mouse/event.rs @@ -2,6 +2,11 @@ use super::Button; use crate::input::ButtonState; /// A mouse event. +/// +/// _**Note:** This type is largely incomplete! If you need to track +/// additional events, feel free to [open an issue] and share your use case!_ +/// +/// [open an issue]: https://github.com/hecrj/iced/issues #[derive(Debug, Clone, Copy, PartialEq)] pub enum Event { /// The mouse cursor entered the window. |