diff options
author | 2019-08-30 01:42:22 +0200 | |
---|---|---|
committer | 2019-08-30 01:42:22 +0200 | |
commit | e84e0b876c3c9547f5758c72f1cb971fdba71483 (patch) | |
tree | e3de4f1579417a6d589674f931414c57978b0513 /src/widget/text.rs | |
parent | 23d4d20e575f337ebeed083a4f874e67c5b5e516 (diff) | |
download | iced-e84e0b876c3c9547f5758c72f1cb971fdba71483.tar.gz iced-e84e0b876c3c9547f5758c72f1cb971fdba71483.tar.bz2 iced-e84e0b876c3c9547f5758c72f1cb971fdba71483.zip |
Add example images to widget docs
Diffstat (limited to '')
-rw-r--r-- | src/widget/text.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/widget/text.rs b/src/widget/text.rs index ac629b4e..858488d3 100644 --- a/src/widget/text.rs +++ b/src/widget/text.rs @@ -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> { |