Add example images to widget docs

This commit is contained in:
Héctor Ramón Jiménez 2019-08-30 01:42:22 +02:00
parent 23d4d20e57
commit e84e0b876c
5 changed files with 25 additions and 24 deletions

View file

@ -18,9 +18,14 @@ use std::hash::Hash;
/// ```
/// use iced::Text;
///
/// Text::<(f32, f32, f32)>::new("I <3 iced!")
/// #[derive(Debug, Clone, Copy)]
/// pub enum Color {
/// Black,
/// }
///
/// Text::new("I <3 iced!")
/// .size(40)
/// .color((0.0, 0.0, 1.0));
/// .color(Color::Black);
/// ```
#[derive(Debug, Clone)]
pub struct Text<Color> {