diff options
author | 2019-08-31 04:08:28 +0200 | |
---|---|---|
committer | 2019-08-31 04:08:28 +0200 | |
commit | 343cafa1ee0b6d29d6e739dfebb13ebe3656a9aa (patch) | |
tree | f71aaf9581a64f1773b072e923a97e07d745c736 /src/widget/checkbox.rs | |
parent | 1e3a415379e574983e767141e43ce495a1a8fbe4 (diff) | |
download | iced-343cafa1ee0b6d29d6e739dfebb13ebe3656a9aa.tar.gz iced-343cafa1ee0b6d29d6e739dfebb13ebe3656a9aa.tar.bz2 iced-343cafa1ee0b6d29d6e739dfebb13ebe3656a9aa.zip |
Address documentation feedback
- Fix broken links
- Mention generic `Color` in some widgets
- Clarify meaning of renderer-agnostic in usage/overview example
Diffstat (limited to 'src/widget/checkbox.rs')
-rw-r--r-- | src/widget/checkbox.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/widget/checkbox.rs b/src/widget/checkbox.rs index 75add65c..b8a20d2c 100644 --- a/src/widget/checkbox.rs +++ b/src/widget/checkbox.rs @@ -8,7 +8,7 @@ use crate::{ Widget, }; -/// A box that can be checked. +/// A box that can be checked, with a generic text `Color`. /// /// It implements [`Widget`] when the associated `Renderer` implements the /// [`checkbox::Renderer`] trait. @@ -80,9 +80,8 @@ impl<Color, Message> Checkbox<Color, Message> { } } - /// Sets the [`Color`] of the label of the [`Checkbox`]. + /// Sets the `Color` of the label of the [`Checkbox`]. /// - /// [`Color`]: ../../../../graphics/struct.Color.html /// [`Checkbox`]: struct.Checkbox.html pub fn label_color(mut self, color: Color) -> Self { self.label_color = Some(color); @@ -165,11 +164,11 @@ where /// The renderer of a [`Checkbox`]. /// -/// Your [`core::Renderer`] will need to implement this trait before being +/// Your [renderer] will need to implement this trait before being /// able to use a [`Checkbox`] in your user interface. /// /// [`Checkbox`]: struct.Checkbox.html -/// [`core::Renderer`]: ../../core/trait.Renderer.html +/// [renderer]: ../../renderer/index.html pub trait Renderer { /// Draws a [`Checkbox`]. /// |