diff options
author | 2020-11-25 07:11:27 +0100 | |
---|---|---|
committer | 2020-11-26 02:05:43 +0100 | |
commit | 01322f69a406eee76014f5e2834336e2295ad80e (patch) | |
tree | 380d9224b81537e460ea7f9fe84c0c912d3f4cbf /graphics/src/widget/canvas.rs | |
parent | d612bf56784b41346f18ad9eda4f6d54d699dcb5 (diff) | |
download | iced-01322f69a406eee76014f5e2834336e2295ad80e.tar.gz iced-01322f69a406eee76014f5e2834336e2295ad80e.tar.bz2 iced-01322f69a406eee76014f5e2834336e2295ad80e.zip |
Use recently stabilized intra-doc links
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
Diffstat (limited to '')
-rw-r--r-- | graphics/src/widget/canvas.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/graphics/src/widget/canvas.rs b/graphics/src/widget/canvas.rs index ae0d87a4..95ede50f 100644 --- a/graphics/src/widget/canvas.rs +++ b/graphics/src/widget/canvas.rs @@ -3,9 +3,6 @@ //! A [`Canvas`] widget can be used to draw different kinds of 2D shapes in a //! [`Frame`]. It can be used for animation, data visualization, game graphics, //! and more! -//! -//! [`Canvas`]: struct.Canvas.html -//! [`Frame`]: struct.Frame.html use crate::{Backend, Defaults, Primitive, Renderer}; use iced_native::layout; use iced_native::mouse; @@ -41,8 +38,6 @@ pub use text::Text; /// A widget capable of drawing 2D graphics. /// -/// [`Canvas`]: struct.Canvas.html -/// /// # Examples /// The repository has a couple of [examples] showcasing how to use a /// [`Canvas`]: @@ -108,8 +103,6 @@ impl<Message, P: Program<Message>> Canvas<Message, P> { const DEFAULT_SIZE: u16 = 100; /// Creates a new [`Canvas`]. - /// - /// [`Canvas`]: struct.Canvas.html pub fn new(program: P) -> Self { Canvas { width: Length::Units(Self::DEFAULT_SIZE), @@ -120,16 +113,12 @@ impl<Message, P: Program<Message>> Canvas<Message, P> { } /// Sets the width of the [`Canvas`]. - /// - /// [`Canvas`]: struct.Canvas.html pub fn width(mut self, width: Length) -> Self { self.width = width; self } /// Sets the height of the [`Canvas`]. - /// - /// [`Canvas`]: struct.Canvas.html pub fn height(mut self, height: Length) -> Self { self.height = height; self |