summaryrefslogtreecommitdiffstats
path: root/native/src/widget/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/widget/text.rs')
-rw-r--r--native/src/widget/text.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/native/src/widget/text.rs b/native/src/widget/text.rs
index cf0701b9..cf9c9565 100644
--- a/native/src/widget/text.rs
+++ b/native/src/widget/text.rs
@@ -12,10 +12,13 @@ use std::hash::Hash;
///
/// ```
/// # use iced_native::Text;
-///
+/// #
/// Text::new("I <3 iced!")
+/// .color([0.0, 0.0, 1.0])
/// .size(40);
/// ```
+///
+/// ![Text drawn by `iced_wgpu`](https://github.com/hecrj/iced/blob/7760618fb112074bc40b148944521f312152012a/docs/images/text.png?raw=true)
#[derive(Debug, Clone)]
pub struct Text {
content: String,