Fixed some more imports/documentation.

This commit is contained in:
shan 2022-10-06 19:41:00 -07:00
parent 72feba51be
commit f9a6efcaa0
12 changed files with 28 additions and 26 deletions

View file

@ -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),

View file

@ -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

View file

@ -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