summaryrefslogtreecommitdiff
path: root/src/geom/paint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/geom/paint.rs')
-rw-r--r--src/geom/paint.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/geom/paint.rs b/src/geom/paint.rs
deleted file mode 100644
index 10fa9fde..00000000
--- a/src/geom/paint.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-use super::*;
-
-/// How a fill or stroke should be painted.
-#[derive(Clone, Eq, PartialEq, Hash)]
-pub enum Paint {
- /// A solid color.
- Solid(Color),
-}
-
-impl<T: Into<Color>> From<T> for Paint {
- fn from(t: T) -> Self {
- Self::Solid(t.into())
- }
-}
-
-impl Debug for Paint {
- fn fmt(&self, f: &mut Formatter) -> fmt::Result {
- match self {
- Self::Solid(color) => color.fmt(f),
- }
- }
-}
-
-cast! {
- Paint,
- self => match self {
- Self::Solid(color) => Value::Color(color),
- },
- color: Color => Self::Solid(color),
-}