pub enum Outline {
Rounded(Rect, [f64; 4]),
Ellipse(Rect),
}Expand description
The shape a shadow blurs: a rounded rectangle — each corner’s radius as kurbo clamps it — or an ellipse.
Variants§
Rounded(Rect, [f64; 4])
A rounded rectangle and its radii, [top-left, top-right, bottom-right, bottom-left], each as kurbo clamps it.
Ellipse(Rect)
The ellipse that fills a rectangle; never a circle, which is
Rounded.
Implementations§
Source§impl Outline
impl Outline
Sourcepub fn rounded(rect: Rect, radii: [f64; 4]) -> Outline
pub fn rounded(rect: Rect, radii: [f64; 4]) -> Outline
A rounded rectangle with radii [top-left, top-right, bottom-right, bottom-left], or a circle as one with every radius half its side.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Outline
impl Freeze for Outline
impl RefUnwindSafe for Outline
impl Send for Outline
impl Sync for Outline
impl Unpin for Outline
impl UnsafeUnpin for Outline
impl UnwindSafe for Outline
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