Add example images to widget docs
This commit is contained in:
parent
23d4d20e57
commit
e84e0b876c
5 changed files with 25 additions and 24 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue