diff options
author | 2022-10-06 19:41:00 -0700 | |
---|---|---|
committer | 2022-10-06 19:41:00 -0700 | |
commit | f9a6efcaa03728f43aaa105af8936c1ed4778388 (patch) | |
tree | f3a4e90a94afc20d300e25a96fdc74c9c9c34c95 /graphics | |
parent | 72feba51bed41db0bc04b43167d5d3b43007fd44 (diff) | |
download | iced-f9a6efcaa03728f43aaa105af8936c1ed4778388.tar.gz iced-f9a6efcaa03728f43aaa105af8936c1ed4778388.tar.bz2 iced-f9a6efcaa03728f43aaa105af8936c1ed4778388.zip |
Fixed some more imports/documentation.
Diffstat (limited to '')
-rw-r--r-- | graphics/src/gradient.rs | 3 | ||||
-rw-r--r-- | graphics/src/widget/canvas/fill.rs | 2 | ||||
-rw-r--r-- | graphics/src/widget/canvas/stroke.rs | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/graphics/src/gradient.rs b/graphics/src/gradient.rs index 683a7413..d785fb2a 100644 --- a/graphics/src/gradient.rs +++ b/graphics/src/gradient.rs @@ -3,8 +3,7 @@ mod linear; pub use crate::gradient::linear::Linear; use crate::widget::canvas::frame::Transform; -use crate::Point; -use iced_native::Color; +use crate::{Point, Color}; #[derive(Debug, Clone, PartialEq)] /// A fill which transitions colors progressively along a direction, either linearly, radially (TBD), diff --git a/graphics/src/widget/canvas/fill.rs b/graphics/src/widget/canvas/fill.rs index 768c2b9c..cd56aa9e 100644 --- a/graphics/src/widget/canvas/fill.rs +++ b/graphics/src/widget/canvas/fill.rs @@ -42,7 +42,7 @@ impl<'a> From<Color> for Fill<'a> { } } -/// The color or gradient of a [`Fill`]. +/// The style of a [`Fill`]. #[derive(Debug, Clone)] pub enum Style<'a> { /// A solid color diff --git a/graphics/src/widget/canvas/stroke.rs b/graphics/src/widget/canvas/stroke.rs index aaac15bb..5cb63a91 100644 --- a/graphics/src/widget/canvas/stroke.rs +++ b/graphics/src/widget/canvas/stroke.rs @@ -1,4 +1,4 @@ -//! Create lines from a [crate::widget::canvas::Path] and render with various attributes/styles. +//! Create lines from a [crate::widget::canvas::Path] and assigns them various attributes/styles. use iced_native::Color; use crate::gradient::Gradient; @@ -60,7 +60,7 @@ impl<'a> Default for Stroke<'a> { } } -/// The color or gradient of a [`Stroke`]. +/// The style of a [`Stroke`]. #[derive(Debug, Clone, Copy)] pub enum Style<'a> { /// A solid color |