Draft web runtime and widgets
This commit is contained in:
parent
a97401aed2
commit
27ac85a9d9
16 changed files with 321 additions and 29 deletions
14
web/src/widget/checkbox.rs
Normal file
14
web/src/widget/checkbox.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use crate::{Color, Element, Widget};
|
||||
|
||||
pub type Checkbox<Message> = iced::Checkbox<Color, Message>;
|
||||
|
||||
impl<Message> Widget<Message> for Checkbox<Message> {}
|
||||
|
||||
impl<'a, Message> From<Checkbox<Message>> for Element<'a, Message>
|
||||
where
|
||||
Message: 'static,
|
||||
{
|
||||
fn from(checkbox: Checkbox<Message>) -> Element<'a, Message> {
|
||||
Element::new(checkbox)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue