Draft web runtime and widgets

This commit is contained in:
Héctor Ramón Jiménez 2019-09-14 20:54:50 +02:00
parent a97401aed2
commit 27ac85a9d9
16 changed files with 321 additions and 29 deletions

13
web/src/widget/text.rs Normal file
View file

@ -0,0 +1,13 @@
use crate::{Color, Element, Widget};
pub use iced::text::HorizontalAlignment;
pub type Text = iced::Text<Color>;
impl<'a, Message> Widget<Message> for Text {}
impl<'a, Message> From<Text> for Element<'a, Message> {
fn from(text: Text) -> Element<'a, Message> {
Element::new(text)
}
}