pub struct Shadow { /* private fields */ }Expand description
Box drop-shadow specification.
Implementations§
Source§impl Shadow
Exact fixed-point alpha scaling and visibility helpers for Shadow.
impl Shadow
Exact fixed-point alpha scaling and visibility helpers for Shadow.
Sourcepub fn with_opacity(&self, opacity: f32) -> Self
pub fn with_opacity(&self, opacity: f32) -> Self
Sourcepub const fn with_alpha_u8(&self, alpha_scale: u8) -> Self
pub const fn with_alpha_u8(&self, alpha_scale: u8) -> Self
Sourcepub const fn is_visible(&self) -> bool
pub const fn is_visible(&self) -> bool
Source§impl Shadow
impl Shadow
pub fn get_offset_x(&self) -> f32
pub fn get_mut_offset_x(&mut self) -> &mut f32
pub fn set_offset_x(&mut self, val: f32) -> &mut Self
pub fn get_offset_y(&self) -> f32
pub fn get_mut_offset_y(&mut self) -> &mut f32
pub fn set_offset_y(&mut self, val: f32) -> &mut Self
pub fn get_blur_radius(&self) -> f32
pub fn get_mut_blur_radius(&mut self) -> &mut f32
pub fn set_blur_radius(&mut self, val: f32) -> &mut Self
pub fn get_spread_radius(&self) -> f32
pub fn get_mut_spread_radius(&mut self) -> &mut f32
pub fn set_spread_radius(&mut self, val: f32) -> &mut Self
pub fn get_color(&self) -> Color
pub fn get_mut_color(&mut self) -> &mut Color
pub fn set_color(&mut self, val: Color) -> &mut Self
Trait Implementations§
impl Copy for Shadow
impl StructuralPartialEq for Shadow
Auto Trait Implementations§
impl Forget for Shadow
impl Freeze for Shadow
impl Move for Shadow
impl RefUnwindSafe for Shadow
impl Send for Shadow
impl Sync for Shadow
impl Unpin for Shadow
impl UnsafeUnpin 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