diff options
| author | 2019-09-15 18:53:13 +0200 | |
|---|---|---|
| committer | 2019-09-15 18:53:13 +0200 | |
| commit | 655978f480c32bc696f0d5fe2fff834bfbf238ea (patch) | |
| tree | ee9af0e0e802c7f85004fd28d3854dbb8bfcb4f5 /src/widget/checkbox.rs | |
| parent | 8834772fa70850559f7bd82cc8432394e3fd9db7 (diff) | |
| download | iced-655978f480c32bc696f0d5fe2fff834bfbf238ea.tar.gz iced-655978f480c32bc696f0d5fe2fff834bfbf238ea.tar.bz2 iced-655978f480c32bc696f0d5fe2fff834bfbf238ea.zip | |
Draft nodes for missing widgets
Diffstat (limited to '')
| -rw-r--r-- | src/widget/checkbox.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/widget/checkbox.rs b/src/widget/checkbox.rs index c60807fd..4ae167ad 100644 --- a/src/widget/checkbox.rs +++ b/src/widget/checkbox.rs @@ -38,9 +38,12 @@ use crate::{ /// ///  pub struct Checkbox<Color, Message> { - is_checked: bool, - on_toggle: Box<dyn Fn(bool) -> Message>, - label: String, + /// Whether the checkbox is checked or not + pub is_checked: bool, + /// Toggle message to fire + pub on_toggle: Box<dyn Fn(bool) -> Message>, + /// The label of the checkbox + pub label: String, label_color: Option<Color>, } |
