diff options
author | 2023-11-08 19:12:53 -0800 | |
---|---|---|
committer | 2024-01-20 11:59:37 +0100 | |
commit | cc906c83cdf896d94b7ccf91258466714be631f6 (patch) | |
tree | ad873e88cb711d4f186cb0c83497329903c200c3 /core/src/renderer.rs | |
parent | b3e3f6e3c9fc6879e6681810f54d7eaa7c0f3d30 (diff) | |
download | iced-cc906c83cdf896d94b7ccf91258466714be631f6.tar.gz iced-cc906c83cdf896d94b7ccf91258466714be631f6.tar.bz2 iced-cc906c83cdf896d94b7ccf91258466714be631f6.zip |
feat: quad shadows
Diffstat (limited to 'core/src/renderer.rs')
-rw-r--r-- | core/src/renderer.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/renderer.rs b/core/src/renderer.rs index 1b327e56..481048b0 100644 --- a/core/src/renderer.rs +++ b/core/src/renderer.rs @@ -5,7 +5,7 @@ mod null; #[cfg(debug_assertions)] pub use null::Null; -use crate::{Background, BorderRadius, Color, Rectangle, Vector}; +use crate::{Background, BorderRadius, Color, Rectangle, Shadow, Vector}; /// A component that can be used by widgets to draw themselves on a screen. pub trait Renderer: Sized { @@ -45,6 +45,9 @@ pub struct Quad { /// The border color of the [`Quad`]. pub border_color: Color, + + /// The shadow of the [`Quad`]. + pub shadow: Shadow, } /// The styling attributes of a [`Renderer`]. |