diff options
Diffstat (limited to '')
| -rw-r--r-- | graphics/src/compositor.rs | 2 | ||||
| -rw-r--r-- | graphics/src/geometry/fill.rs | 4 | ||||
| -rw-r--r-- | graphics/src/geometry/stroke.rs | 4 | ||||
| -rw-r--r-- | graphics/src/gradient.rs | 7 | 
4 files changed, 8 insertions, 9 deletions
| diff --git a/graphics/src/compositor.rs b/graphics/src/compositor.rs index f7b86045..7173ffa7 100644 --- a/graphics/src/compositor.rs +++ b/graphics/src/compositor.rs @@ -63,7 +63,7 @@ pub trait Compositor: Sized {      /// Screenshots the current [`Renderer`] primitives to an offscreen texture, and returns the bytes of      /// the texture ordered as `RGBA` in the sRGB color space.      /// -    /// [`Renderer`]: Self::Renderer; +    /// [`Renderer`]: Self::Renderer      fn screenshot<T: AsRef<str>>(          &mut self,          renderer: &mut Self::Renderer, diff --git a/graphics/src/geometry/fill.rs b/graphics/src/geometry/fill.rs index b773c99b..670fbc12 100644 --- a/graphics/src/geometry/fill.rs +++ b/graphics/src/geometry/fill.rs @@ -1,4 +1,6 @@ -//! Fill [crate::widget::canvas::Geometry] with a certain style. +//! Fill [`Geometry`] with a certain style. +//! +//! [`Geometry`]: super::Renderer::Geometry  pub use crate::geometry::Style;  use crate::core::Color; diff --git a/graphics/src/geometry/stroke.rs b/graphics/src/geometry/stroke.rs index 69a76e1c..aff49ab3 100644 --- a/graphics/src/geometry/stroke.rs +++ b/graphics/src/geometry/stroke.rs @@ -1,4 +1,6 @@ -//! Create lines from a [crate::widget::canvas::Path] and assigns them various attributes/styles. +//! Create lines from a [`Path`] and assigns them various attributes/styles. +//! +//! [`Path`]: super::Path  pub use crate::geometry::Style;  use iced_core::Color; diff --git a/graphics/src/gradient.rs b/graphics/src/gradient.rs index f5f5f8b4..b274ec86 100644 --- a/graphics/src/gradient.rs +++ b/graphics/src/gradient.rs @@ -1,8 +1,6 @@  //! A gradient that can be used as a fill for some geometry.  //!  //! For a gradient that you can use as a background variant for a widget, see [`Gradient`]. -//! -//! [`Gradient`]: crate::core::Gradient;  use crate::color;  use crate::core::gradient::ColorStop;  use crate::core::{self, Color, Point, Rectangle}; @@ -36,10 +34,7 @@ impl Gradient {      }  } -/// A linear gradient that can be used in the style of [`Fill`] or [`Stroke`]. -/// -/// [`Fill`]: crate::geometry::Fill; -/// [`Stroke`]: crate::geometry::Stroke; +/// A linear gradient.  #[derive(Debug, Clone, Copy, PartialEq)]  pub struct Linear {      /// The absolute starting position of the gradient. | 
