pub struct BlurEffect {
pub radius: Option<PositiveCoordinate>,
pub grow: Option<bool>,
}Expand description
This element specifies a blur effect that is applied to the entire shape, including its fill. All color channels, including alpha, are affected.
Fields§
§radius: Option<PositiveCoordinate>Specifies the radius of blur.
Defaults to 0
grow: Option<bool>Specifies whether the bounds of the object should be grown as a result of the blurring. True indicates the bounds are grown while false indicates that they are not.
With grow set to false, the blur effect does not extend beyond the original bounds of the object
With grow set to true, the blur effect can extend beyond the original bounds of the object
Defaults to true
Implementations§
Source§impl BlurEffect
impl BlurEffect
pub fn from_xml_element(xml_node: &XmlNode) -> Result<Self>
Trait Implementations§
Source§impl Clone for BlurEffect
impl Clone for BlurEffect
Source§fn clone(&self) -> BlurEffect
fn clone(&self) -> BlurEffect
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 BlurEffect
impl Debug for BlurEffect
Source§impl Default for BlurEffect
impl Default for BlurEffect
Source§fn default() -> BlurEffect
fn default() -> BlurEffect
Returns the “default value” for a type. Read more
Source§impl PartialEq for BlurEffect
impl PartialEq for BlurEffect
Source§fn eq(&self, other: &BlurEffect) -> bool
fn eq(&self, other: &BlurEffect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlurEffect
Auto Trait Implementations§
impl Freeze for BlurEffect
impl RefUnwindSafe for BlurEffect
impl Send for BlurEffect
impl Sync for BlurEffect
impl Unpin for BlurEffect
impl UnsafeUnpin for BlurEffect
impl UnwindSafe for BlurEffect
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