pub struct Shadow {
pub color: Option<Color>,
pub blur_radius: Option<u32>,
pub distance: Option<u32>,
pub angle: Option<i32>,
pub offset_x: Option<i64>,
pub offset_y: Option<i64>,
}Expand description
Shadow effect
Fields§
§color: Option<Color>§blur_radius: Option<u32>§distance: Option<u32>§angle: Option<i32>§offset_x: Option<i64>§offset_y: Option<i64>Implementations§
Source§impl Shadow
impl Shadow
pub fn new() -> Self
pub fn with_color(self, color: Color) -> Self
pub fn with_blur(self, radius: u32) -> Self
pub fn with_distance(self, distance: u32) -> Self
pub fn with_angle(self, degrees: i32) -> Self
pub fn with_offset(self, x: i64, y: i64) -> Self
pub fn to_xml(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shadow
impl RefUnwindSafe for Shadow
impl Send for Shadow
impl Sync for Shadow
impl Unpin for Shadow
impl UnwindSafe for Shadow
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