summaryrefslogtreecommitdiffstats
path: root/src/input/mouse/button.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-08-29 01:35:37 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-08-29 01:35:37 +0200
commita14b8bffc0037cc14f55b361b9591cf2657e6348 (patch)
tree765cc8924bc1276df46834db868852788297e112 /src/input/mouse/button.rs
parentfafad2dfcab3b6bb11a705af61faf54e07e29773 (diff)
downloadiced-a14b8bffc0037cc14f55b361b9591cf2657e6348.tar.gz
iced-a14b8bffc0037cc14f55b361b9591cf2657e6348.tar.bz2
iced-a14b8bffc0037cc14f55b361b9591cf2657e6348.zip
Write documentation for `input`
Diffstat (limited to '')
-rw-r--r--src/input/mouse/button.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/input/mouse/button.rs b/src/input/mouse/button.rs
index c51bedfc..aeb8a55d 100644
--- a/src/input/mouse/button.rs
+++ b/src/input/mouse/button.rs
@@ -1,7 +1,15 @@
+/// The button of a mouse.
#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
pub enum Button {
+ /// The left mouse button.
Left,
+
+ /// The right mouse button.
Right,
+
+ /// The middle (wheel) button.
Middle,
+
+ /// Some other button.
Other(u8),
}