summaryrefslogtreecommitdiffstats
path: root/core/src/background.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-18 07:16:19 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-18 07:16:19 +0100
commitd3553adf278e5b616fbd885f321faa83a4d24b56 (patch)
tree5bbfba3b45fd34d9c9604f28bcbb80e9856873a3 /core/src/background.rs
parent63dbf078fefea444073813e834c2d35fa25eb3a7 (diff)
downloadiced-d3553adf278e5b616fbd885f321faa83a4d24b56.tar.gz
iced-d3553adf278e5b616fbd885f321faa83a4d24b56.tar.bz2
iced-d3553adf278e5b616fbd885f321faa83a4d24b56.zip
Write documentation for `iced_core`
Diffstat (limited to 'core/src/background.rs')
-rw-r--r--core/src/background.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/background.rs b/core/src/background.rs
index 59b67a2c..98047172 100644
--- a/core/src/background.rs
+++ b/core/src/background.rs
@@ -1,7 +1,9 @@
use crate::Color;
+/// The background of some element.
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Background {
+ /// A solid color
Color(Color),
// TODO: Add gradient and image variants
}