summaryrefslogtreecommitdiffstats
path: root/src/widget/button.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-15 17:43:15 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-15 17:43:15 +0200
commit8834772fa70850559f7bd82cc8432394e3fd9db7 (patch)
tree84522dca905c8a3803dc728726975c7095c06557 /src/widget/button.rs
parent27ac85a9d98474904c422a891e54888376dec00a (diff)
downloadiced-8834772fa70850559f7bd82cc8432394e3fd9db7.tar.gz
iced-8834772fa70850559f7bd82cc8432394e3fd9db7.tar.bz2
iced-8834772fa70850559f7bd82cc8432394e3fd9db7.zip
Draft widget nodes and wire interaction
Diffstat (limited to 'src/widget/button.rs')
-rw-r--r--src/widget/button.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widget/button.rs b/src/widget/button.rs
index abcdbfeb..6f5d9908 100644
--- a/src/widget/button.rs
+++ b/src/widget/button.rs
@@ -40,9 +40,11 @@ use std::hash::Hash;
/// ![Button drawn by Coffee's renderer](https://github.com/hecrj/coffee/blob/bda9818f823dfcb8a7ad0ff4940b4d4b387b5208/images/ui/button.png?raw=true)
pub struct Button<'a, Message> {
state: &'a mut State,
- label: String,
+ /// The label of the button.
+ pub label: String,
class: Class,
- on_press: Option<Message>,
+ /// The message to produce when the button is pressed
+ pub on_press: Option<Message>,
style: Style,
}