summaryrefslogtreecommitdiffstats
path: root/graphics/src/widget/canvas/gradient.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/widget/canvas/gradient.rs')
-rw-r--r--graphics/src/widget/canvas/gradient.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/graphics/src/widget/canvas/gradient.rs b/graphics/src/widget/canvas/gradient.rs
deleted file mode 100644
index 7d2daabc..00000000
--- a/graphics/src/widget/canvas/gradient.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-//! Define a color gradient.
-use iced_native::Point;
-
-pub mod linear;
-
-pub use linear::Linear;
-
-/// A gradient that can be used in the style of [`super::Fill`] or [`super::Stroke`].
-#[derive(Debug, Clone)]
-pub enum Gradient {
- /// A linear gradient
- Linear(Linear),
- //TODO: radial, conical
-}
-
-impl Gradient {
- /// Creates a new linear [`linear::Builder`].
- pub fn linear(start: Point, end: Point) -> linear::Builder {
- linear::Builder::new(start, end)
- }
-} \ No newline at end of file