Draft nodes for missing widgets

This commit is contained in:
Héctor Ramón Jiménez 2019-09-15 18:53:13 +02:00
parent 8834772fa7
commit 655978f480
16 changed files with 191 additions and 36 deletions

View file

@ -38,9 +38,12 @@ use crate::{
///
/// ![Checkbox drawn by Coffee's renderer](https://github.com/hecrj/coffee/blob/bda9818f823dfcb8a7ad0ff4940b4d4b387b5208/images/ui/checkbox.png?raw=true)
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>,
}