pub struct BlurredRoundedRectangle {
pub rect: Rect,
pub color: AlphaColor<Srgb>,
pub radius: f32,
pub std_dev: f32,
}
Expand description
A blurred, rounded rectangle.
Fields§
§rect: Rect
The base rectangle to use for the blur effect.
color: AlphaColor<Srgb>
The color of the blurred rectangle.
radius: f32
The radius of the blur effect.
std_dev: f32
The standard deviation of the blur effect.
Trait Implementations§
Source§impl Debug for BlurredRoundedRectangle
impl Debug for BlurredRoundedRectangle
Source§impl EncodeExt for BlurredRoundedRectangle
impl EncodeExt for BlurredRoundedRectangle
Source§fn encode_into(
&self,
paints: &mut Vec<EncodedPaint>,
transform: Affine,
) -> Paint
fn encode_into( &self, paints: &mut Vec<EncodedPaint>, transform: Affine, ) -> Paint
Encode the gradient and push it into a vector of encoded paints, returning
the corresponding paint in the process. This will also validate the gradient.
impl Sealed for BlurredRoundedRectangle
Auto Trait Implementations§
impl Freeze for BlurredRoundedRectangle
impl RefUnwindSafe for BlurredRoundedRectangle
impl Send for BlurredRoundedRectangle
impl Sync for BlurredRoundedRectangle
impl Unpin for BlurredRoundedRectangle
impl UnwindSafe for BlurredRoundedRectangle
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