summaryrefslogtreecommitdiffstats
path: root/src/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-08-24 03:55:07 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-08-24 03:55:07 +0200
commit36d18d979ffe713328de901005c8a5a78075357d (patch)
treed6724bf489e346d0506a8fe58d4464479ae2cd7f /src/widget
parentec66e3fc1b6cc0d40025bf94d86263716d18657b (diff)
downloadiced-36d18d979ffe713328de901005c8a5a78075357d.tar.gz
iced-36d18d979ffe713328de901005c8a5a78075357d.tar.bz2
iced-36d18d979ffe713328de901005c8a5a78075357d.zip
Fix details in documentation
Diffstat (limited to 'src/widget')
-rw-r--r--src/widget/button.rs2
-rw-r--r--src/widget/column.rs2
-rw-r--r--src/widget/radio.rs2
-rw-r--r--src/widget/row.rs2
-rw-r--r--src/widget/text.rs9
5 files changed, 9 insertions, 8 deletions
diff --git a/src/widget/button.rs b/src/widget/button.rs
index 35fa6ca8..04573bd0 100644
--- a/src/widget/button.rs
+++ b/src/widget/button.rs
@@ -218,7 +218,7 @@ impl State {
/// The type of a [`Button`].
///
-/// ![Different buttons drawn by the built-in renderer](https://github.com/hecrj/coffee/blob/bda9818f823dfcb8a7ad0ff4940b4d4b387b5208/images/ui/button_classes.png?raw=true)
+/// ![Different buttons drawn by the built-in renderer in Coffee](https://github.com/hecrj/coffee/blob/bda9818f823dfcb8a7ad0ff4940b4d4b387b5208/images/ui/button_classes.png?raw=true)
///
/// [`Button`]: struct.Button.html
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
diff --git a/src/widget/column.rs b/src/widget/column.rs
index 18a68f60..291019b2 100644
--- a/src/widget/column.rs
+++ b/src/widget/column.rs
@@ -43,7 +43,7 @@ impl<'a, Message, Renderer> Column<'a, Message, Renderer> {
/// Sets the vertical spacing _between_ elements in pixels.
///
- /// Custom margins per element do not exist in Coffee. You should use this
+ /// Custom margins per element do not exist in Iced. You should use this
/// method instead! While less flexible, it helps you keep spacing between
/// elements consistent.
pub fn spacing(mut self, px: u16) -> Self {
diff --git a/src/widget/radio.rs b/src/widget/radio.rs
index 8a678ec8..75ddd35d 100644
--- a/src/widget/radio.rs
+++ b/src/widget/radio.rs
@@ -49,7 +49,7 @@ use std::hash::Hash;
/// .label_color(Color::Black);
/// ```
///
-/// ![Checkbox drawn by the built-in renderer](https://github.com/hecrj/coffee/blob/bda9818f823dfcb8a7ad0ff4940b4d4b387b5208/images/ui/radio.png?raw=true)
+/// ![Checkbox drawn by the built-in renderer in Coffee](https://github.com/hecrj/coffee/blob/bda9818f823dfcb8a7ad0ff4940b4d4b387b5208/images/ui/radio.png?raw=true)
pub struct Radio<Color, Message> {
is_selected: bool,
on_click: Message,
diff --git a/src/widget/row.rs b/src/widget/row.rs
index 9e0f9d4c..6265739a 100644
--- a/src/widget/row.rs
+++ b/src/widget/row.rs
@@ -40,7 +40,7 @@ impl<'a, Message, Renderer> Row<'a, Message, Renderer> {
/// Sets the horizontal spacing _between_ elements in pixels.
///
- /// Custom margins per element do not exist in Coffee. You should use this
+ /// Custom margins per element do not exist in Iced. You should use this
/// method instead! While less flexible, it helps you keep spacing between
/// elements consistent.
pub fn spacing(mut self, px: u16) -> Self {
diff --git a/src/widget/text.rs b/src/widget/text.rs
index e1ce8b16..bf5c1624 100644
--- a/src/widget/text.rs
+++ b/src/widget/text.rs
@@ -141,13 +141,14 @@ where
}
}
-/// The renderer of a [`Text`] fragment.
+/// The renderer of a [`Text`] fragment with a generic `Color`.
///
-/// Your [`core::Renderer`] will need to implement this trait before being
-/// able to use a [`Text`] in your user interface.
+/// Your [`Renderer`] will need to implement this trait before being
+/// able to use [`Text`] in your [`UserInterface`].
///
/// [`Text`]: struct.Text.html
-/// [`core::Renderer`]: ../../core/trait.Renderer.html
+/// [`Renderer`]: ../../trait.Renderer.html
+/// [`UserInterface`]: ../../struct.UserInterface.html
pub trait Renderer<Color> {
/// Creates a [`Node`] with the given [`Style`] for the provided [`Text`]
/// contents and size.