Fixed some more imports/documentation.
This commit is contained in:
parent
72feba51be
commit
f9a6efcaa0
12 changed files with 28 additions and 26 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue