diff options
author | 2023-09-09 12:24:47 +0200 | |
---|---|---|
committer | 2023-09-09 18:59:17 +0200 | |
commit | 89d9f1d7d2202029028a487df1dd11b0665a7517 (patch) | |
tree | ff3f998798c9d0b1d334989d941c90b0b1012ee4 /graphics | |
parent | 89d9c45d25e9bf89e48858b135bc7a2d41c757a8 (diff) | |
download | iced-89d9f1d7d2202029028a487df1dd11b0665a7517.tar.gz iced-89d9f1d7d2202029028a487df1dd11b0665a7517.tar.bz2 iced-89d9f1d7d2202029028a487df1dd11b0665a7517.zip |
Fix majority of unresolved documentation links
Diffstat (limited to '')
-rw-r--r-- | graphics/src/geometry.rs | 4 | ||||
-rw-r--r-- | graphics/src/gradient.rs | 4 | ||||
-rw-r--r-- | graphics/src/mesh.rs | 2 |
3 files changed, 5 insertions, 5 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/gradient.rs b/graphics/src/gradient.rs index 4db565d8..f5f5f8b4 100644 --- a/graphics/src/gradient.rs +++ b/graphics/src/gradient.rs @@ -1,4 +1,4 @@ -//! A gradient that can be used as a [`Fill`] for some geometry. +//! 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`]. //! @@ -53,7 +53,7 @@ pub struct Linear { } impl Linear { - /// Creates a new [`Builder`]. + /// Creates a new [`Linear`] builder. pub fn new(start: Point, end: Point) -> Self { Self { start, diff --git a/graphics/src/mesh.rs b/graphics/src/mesh.rs index cfb5a60f..041986cf 100644 --- a/graphics/src/mesh.rs +++ b/graphics/src/mesh.rs @@ -41,7 +41,7 @@ impl Damage for Mesh { } } -/// A set of [`Vertex2D`] and indices representing a list of triangles. +/// A set of vertices and indices representing a list of triangles. #[derive(Clone, Debug, PartialEq, Eq)] pub struct Indexed<T> { /// The vertices of the mesh |