pub struct ShadowQuad {
pub screen: [f32; 4],
pub color: [f32; 4],
pub corner_radii: [f32; 4],
pub shape_rect: [f32; 4],
pub blur_radius: f32,
pub spread: f32,
}Expand description
A shadow rendered behind a shape using a separate GPU pipeline with Gaussian blur.
Fields§
§screen: [f32; 4]Shadow bounding box (expanded by blur + spread + offset): [x, y, width, height].
color: [f32; 4]Shadow color: [r, g, b, a].
corner_radii: [f32; 4]Corner radii matching the shape: [top_left, top_right, bottom_right, bottom_left].
shape_rect: [f32; 4]The original shape rect (before offset/spread): [x, y, width, height].
blur_radius: f32Gaussian blur radius.
spread: f32Shadow spread amount.
Trait Implementations§
Source§impl Clone for ShadowQuad
impl Clone for ShadowQuad
Source§fn clone(&self) -> ShadowQuad
fn clone(&self) -> ShadowQuad
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShadowQuad
impl Debug for ShadowQuad
Source§impl PartialEq for ShadowQuad
impl PartialEq for ShadowQuad
impl StructuralPartialEq for ShadowQuad
Auto Trait Implementations§
impl Freeze for ShadowQuad
impl RefUnwindSafe for ShadowQuad
impl Send for ShadowQuad
impl Sync for ShadowQuad
impl Unpin for ShadowQuad
impl UnsafeUnpin for ShadowQuad
impl UnwindSafe for ShadowQuad
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more