pub struct DrawBoxShadow {
pub rect: Rect,
pub radius: Radius,
pub shadow: BoxShadow,
}Expand description
Paint-only shadow associated with a rounded source rectangle.
§Examples
use ailloli_ui_core::{BoxShadow, Radius, Rect};
use ailloli_ui_runtime::scene::DrawBoxShadow;
let draw = DrawBoxShadow {
rect: Rect::new(0.0, 0.0, 40.0, 20.0),
radius: Radius::uniform(2.0),
shadow: BoxShadow::sm(),
};
assert_eq!(draw.shadow.blur_radius, 2.0);Fields§
§rect: RectSource box in window-space logical pixels.
radius: RadiusSource-box corner radii in logical pixels.
shadow: BoxShadowShadow offset, blur, spread, color, and inset flag.
Trait Implementations§
Source§impl Clone for DrawBoxShadow
impl Clone for DrawBoxShadow
Source§fn clone(&self) -> DrawBoxShadow
fn clone(&self) -> DrawBoxShadow
Returns a copy of the value. Read more
1.0.0 · 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 DrawBoxShadow
impl Debug for DrawBoxShadow
Source§impl PartialEq for DrawBoxShadow
impl PartialEq for DrawBoxShadow
impl Copy for DrawBoxShadow
impl StructuralPartialEq for DrawBoxShadow
Auto Trait Implementations§
impl Freeze for DrawBoxShadow
impl RefUnwindSafe for DrawBoxShadow
impl Send for DrawBoxShadow
impl Sync for DrawBoxShadow
impl Unpin for DrawBoxShadow
impl UnwindSafe for DrawBoxShadow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.