pub struct ShadowStyle {
pub offset_x: f64,
pub offset_y: f64,
pub blur: f64,
pub color: ColorValue,
}Expand description
Shadow style definition.
Fields§
§offset_x: f64Horizontal offset in pixels.
offset_y: f64Vertical offset in pixels.
blur: f64Blur radius in pixels.
color: ColorValueShadow color as RGBA.
Trait Implementations§
Source§impl Clone for ShadowStyle
impl Clone for ShadowStyle
Source§fn clone(&self) -> ShadowStyle
fn clone(&self) -> ShadowStyle
Returns a duplicate 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 ShadowStyle
impl Debug for ShadowStyle
Source§impl<'de> Deserialize<'de> for ShadowStyle
impl<'de> Deserialize<'de> for ShadowStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ShadowStyle
impl PartialEq for ShadowStyle
Source§impl Serialize for ShadowStyle
impl Serialize for ShadowStyle
impl StructuralPartialEq for ShadowStyle
Auto Trait Implementations§
impl Freeze for ShadowStyle
impl RefUnwindSafe for ShadowStyle
impl Send for ShadowStyle
impl Sync for ShadowStyle
impl Unpin for ShadowStyle
impl UnwindSafe for ShadowStyle
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