diff options
Diffstat (limited to '')
| -rw-r--r-- | graphics/src/geometry.rs | 4 | ||||
| -rw-r--r-- | graphics/src/geometry/fill.rs | 4 | ||||
| -rw-r--r-- | graphics/src/geometry/stroke.rs | 4 | 
3 files changed, 8 insertions, 4 deletions
| diff --git a/graphics/src/geometry.rs b/graphics/src/geometry.rs index 7cd3dd3a..d7d6a0aa 100644 --- a/graphics/src/geometry.rs +++ b/graphics/src/geometry.rs @@ -14,11 +14,11 @@ pub use text::Text;  pub use crate::gradient::{self, Gradient}; -/// A renderer capable of drawing some [`Geometry`]. +/// A renderer capable of drawing some [`Self::Geometry`].  pub trait Renderer: crate::core::Renderer {      /// The kind of geometry this renderer can draw.      type Geometry; -    /// Draws the given layers of [`Geometry`]. +    /// Draws the given layers of [`Self::Geometry`].      fn draw(&mut self, layers: Vec<Self::Geometry>);  } 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; | 
