summaryrefslogtreecommitdiffstats
path: root/src/widget/radio.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-15 18:53:13 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-15 18:53:13 +0200
commit655978f480c32bc696f0d5fe2fff834bfbf238ea (patch)
treeee9af0e0e802c7f85004fd28d3854dbb8bfcb4f5 /src/widget/radio.rs
parent8834772fa70850559f7bd82cc8432394e3fd9db7 (diff)
downloadiced-655978f480c32bc696f0d5fe2fff834bfbf238ea.tar.gz
iced-655978f480c32bc696f0d5fe2fff834bfbf238ea.tar.bz2
iced-655978f480c32bc696f0d5fe2fff834bfbf238ea.zip
Draft nodes for missing widgets
Diffstat (limited to 'src/widget/radio.rs')
-rw-r--r--src/widget/radio.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/widget/radio.rs b/src/widget/radio.rs
index 28353ef4..27c0ff17 100644
--- a/src/widget/radio.rs
+++ b/src/widget/radio.rs
@@ -47,9 +47,12 @@ use std::hash::Hash;
///
/// ![Radio buttons drawn by Coffee's renderer](https://github.com/hecrj/coffee/blob/bda9818f823dfcb8a7ad0ff4940b4d4b387b5208/images/ui/radio.png?raw=true)
pub struct Radio<Color, Message> {
- is_selected: bool,
- on_click: Message,
- label: String,
+ /// Whether the radio button is selected or not
+ pub is_selected: bool,
+ /// The message to produce when the radio button is clicked
+ pub on_click: Message,
+ /// The label of the radio button
+ pub label: String,
label_color: Option<Color>,
}