summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-05 09:59:38 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-05 09:59:38 +0200
commitc48739029b36e4380409cdb15594e415afce6371 (patch)
tree129d2834819570a75db5f970daa6e1ee5c1587e4 /src
parent3fb06f66661b5f4f0a76553164597f7ce0cbd79c (diff)
downloadiced-c48739029b36e4380409cdb15594e415afce6371.tar.gz
iced-c48739029b36e4380409cdb15594e415afce6371.tar.bz2
iced-c48739029b36e4380409cdb15594e415afce6371.zip
Ask users to share use cases
Diffstat (limited to 'src')
-rw-r--r--src/event.rs5
-rw-r--r--src/input/button_state.rs5
-rw-r--r--src/input/keyboard/event.rs5
-rw-r--r--src/input/keyboard/key_code.rs9
-rw-r--r--src/input/mouse/button.rs5
-rw-r--r--src/input/mouse/event.rs5
6 files changed, 31 insertions, 3 deletions
diff --git a/src/event.rs b/src/event.rs
index fea0e462..71f06006 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -1,6 +1,11 @@
use crate::input::{keyboard, mouse};
/// A user interface 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(PartialEq, Clone, Copy, Debug)]
pub enum Event {
/// A keyboard event
diff --git a/src/input/button_state.rs b/src/input/button_state.rs
index 3a3472fb..e9dc05d7 100644
--- a/src/input/button_state.rs
+++ b/src/input/button_state.rs
@@ -1,4 +1,9 @@
/// The state of a button.
+///
+/// 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, Ord, PartialOrd, PartialEq, Eq, Clone, Copy)]
pub enum ButtonState {
/// The button is pressed.
diff --git a/src/input/keyboard/event.rs b/src/input/keyboard/event.rs
index 5acd46c0..8118f112 100644
--- a/src/input/keyboard/event.rs
+++ b/src/input/keyboard/event.rs
@@ -3,6 +3,11 @@ use crate::input::ButtonState;
#[derive(Debug, Clone, Copy, PartialEq)]
/// A keyboard 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
pub enum Event {
/// A keyboard key was pressed or released.
Input {
diff --git a/src/input/keyboard/key_code.rs b/src/input/keyboard/key_code.rs
index 9b449735..207ddeac 100644
--- a/src/input/keyboard/key_code.rs
+++ b/src/input/keyboard/key_code.rs
@@ -1,8 +1,11 @@
/// The symbolic name of a keyboard key.
///
-/// This is mostly the `KeyCode` type found in `winit`. If you are using
-/// `winit`, consider enabling the `winit` feature to get conversion
-/// implementations for free!
+/// This is mostly the `KeyCode` type found in [`winit`].
+///
+/// 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, Ord, PartialOrd, PartialEq, Eq, Clone, Copy)]
#[repr(u32)]
#[allow(missing_docs)]
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.