summaryrefslogtreecommitdiffstats
path: root/core/src/shadow.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-20 13:29:25 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-20 13:29:25 +0100
commit25f182f933ea6b7c112c8f9a450a98dc9b9eebdd (patch)
treefdc498d705f033d3c432e6a06b8cd223dfd82633 /core/src/shadow.rs
parent4d502012b3e3ed9d9ef80f21078d53d182cdaa1b (diff)
downloadiced-25f182f933ea6b7c112c8f9a450a98dc9b9eebdd.tar.gz
iced-25f182f933ea6b7c112c8f9a450a98dc9b9eebdd.tar.bz2
iced-25f182f933ea6b7c112c8f9a450a98dc9b9eebdd.zip
Introduce `Border` struct analogous to `Shadow`
Diffstat (limited to 'core/src/shadow.rs')
-rw-r--r--core/src/shadow.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/core/src/shadow.rs b/core/src/shadow.rs
index de8ce1c3..803101ed 100644
--- a/core/src/shadow.rs
+++ b/core/src/shadow.rs
@@ -1,15 +1,14 @@
-//! Shadow
use crate::{Color, Vector};
-/// A shadow
-#[derive(Debug, Clone, Copy, PartialEq)]
+/// A shadow.
+#[derive(Debug, Clone, Copy, PartialEq, Default)]
pub struct Shadow {
- /// The color of the shadow
+ /// The color of the shadow.
pub color: Color,
- /// The offset of the shadow
+ /// The offset of the shadow.
pub offset: Vector,
- /// The blur radius of the shadow
+ /// The blur radius of the shadow.
pub blur_radius: f32,
}